Archive for April 28th, 2007

Damned Nation

It seems, so I have been informed, that the Rock Night at Leicester University students union, namely Damned Nation is back! Not only is it back, but it’s on tonight.

I remember Nation back in the day, I couldn’t believe it when it was cancelled, it was always a kick ass night. I suppose I better pack away for the evening and see if the night can live up to my expectations - and boy, are my expectations high!

Postfix TLS Quick and dirty

I wrote an internal document how to a while ago about how to set up POP3 Secure and SMTP Auth with postfix using CentOS 4. I thought I’d post it here so that others may find it useful.

Before you begin
Make sure CentOS 4 has been installed as a server (with no graphical interface). Set up RPM to allow installation from the CentOS yum repositories.


Install the required programs

# yum install cyrus-sasl
# yum install cyrus-sasl-devel
# yum install cyrus-sasl-gssapi
# yum install cyrus-sasl-plain
# yum install cyrus-sasl-crammd5
# yum install cyrus-sasl-digestmd5
# yum install cyrus-sasl-otp
# yum install cyrus-sasl-saslauthd


Make the directory structure and start services

# chkconfig -add saslauthd
# /etc/init.d/saslauthd start
# mkdir /etc/postfix/ssl
# cd /etc/postfix/ssl


Generate the security keys
Type these commands exactly as shown

# openssl genrsa -des3 -rand /etc/hosts -out smtpd.key 1024
# chmod 600 smtpd.key# openssl req -new -key smtpd.key -out smtpd.csr
# openssl x509 -req -days -3650 -in smtpd.csr -signkey smtpd.key -out smtpd.crt
# openssl rsa -in smtpd.key -out smtpd.key.unencrypted
# mv smptd.key.unencrypted smtpd.key
# openssl req -new -x509 -extensions v3_ca -keyout cakey.pem -out cacert.pem -days 3650


Editing /etc/postfix/main.cf
Add these lines at the bottom of your main.cf

smtpd_sasl_localdomain
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_reciepient_restrictions = permit_sasl_authenticated,
				permit_mynetworks,
				check_relay_domains
smtpd_tls_auth_only = no
smtpd_use_tls = yes
smtpd_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem

smtpd_tls_loglevel = 1
smtpd_tls_receive_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom


Dovecot and POP3Secure
If you want Dovecot to run your POP3/IMAP POP3s/IMAPs services, then it might be worthwile adding the following configuration options to /etc/dovecot.conf

ssl_cert_file = /etc/postfix/ssl/smtpd.crt
ssl_key_file = /etc/postfix/ssl/smtpd.key

You will find that any users of Windows will receive messages about the certificate not being signed by a valid certificate authority. This is easily solved by adding the certificate manually to their cache of acceptible CAs.

In Internet Explorer visit the following address:

https://servername:995/

When the dialog box appears asking you to accept the certificate file, click on View Certificate - then select the Install Certificate button. Outlook and Outlook express will no longer ask you to accept the certificate when checking your email.


Potential Problems
If the key still has a passphrase associated with it, then postfix won’t know what to do with it. Unprotect the key as follows

# openssl rsa -in cakey.pem -text
# openssl rsa -in cackey.pem -out key_unprotected.pem
# mv cakey.pem key_protected.pem# mv key_unprotected.pem cakey.pem


Finally
All that is now required, is to restart postfix

# /etc/init.d/postfix restart

Digital Photography

I’ve just ordered a Sony Cyber-shot N2 digital camera, and can’t wait for it to arrive - along with its 4Gb memory card. I’m hoping that I will be able to take some decent quality photos as I am not a photographer.

I’ll be at Glastonbury 2007, and I shall be blogging from there, so long as I can find an adequate internet connection and sustainable power. We shall see the quality of my photographs then :). In the mean time, enjoy the specs.

Display Screen 3″ TFT Colour LCD Touch Screen 230 Kilopixels
Effective Resolution 10.1 Megapixels
Aspect Ratio 16:9
Image Resolution
  • 3264 x 2448
  • 2592 x 1944
  • 2048 x 1536
  • 1632 x 1224
  • 640 x 480
  • Video Resolution
  • 640 x 480 @ 30 fps MPEG-1
  • 640 x 480 @ 16.6 fps MPEG-1
  • 160 x 112 @ 8.3 fps MPEG-1
  • Image Formats JPEG
    Video Formats MPEG-1
    Lens
    Lens Type Carl Zeiss Vario-Tessar Lens:

  • Focal Length: 7.9 - 23.7mm (35mm Equivalent: 38 - 114mm)
  • Optical Zoom 3x
    Digital Zoom 2x
    Focus Modes
  • Single Auto Focus
  • Auto Focus - Monitoring, Multi Point, Centre weighted,Flexible Spot
  • Exposure
    Shutter Speed 1/8 to 1/2000 Second(s)
    Flash
    Flash Modes
  • Auto Flash
  • Forced On/Off
  • Slow Sync
  • Flash OFF
  • Red-eye Reduction
  • Viewfinder
    Viewfinder Type LCD
    Storage
    Internal Memory 25MB
    Storage Media
  • 1 x Memory Stick Duo Supported
  • 1 x Memory Stick PRO Duo Supported
  • Controls/Indicators
    Camera Modes Scene Modes:

  • Twilight
  • Twilight Portrait
  • Soft Snap
  • Landscape
  • Snow
  • Beach
  • Fireworks
  • Interfaces/Ports
    Interfaces/Ports 1 x Multiple Connector
    Software
    Software Included Picture Motion Browser ver.1.1
    Battery Information
    Batteries 1 x Li-Ion Included
    Physical Characteristics
    Dimensions 6.11cm Height x 9.67cm Width x 2.27cm Depth
    Weight 151 g
    Miscellaneous
    Package Contents
  • Cyber-shot DSC-N2 Digital Camera
  • Lithium-ion battery NP-BG1
  • Charger BC-CSG
  • Multi cable (USB, AV, DC-IN)
  • Paint pen
  • Wrist strap
  • Software CD
  • Additional Information
  • Hand Shake Alert
  • Touch Screen Easy Operation
  • Smart Zoom up to 17x (with VGA)
  • Multi-connector Cable:

  • USB
  • Audio/Video Output
  • DC Power Input
  • Sensitivity:

  • Auto
  • ISO 100
  • ISO 200
  • ISO 400
  • ISO 800
  • ISO 1600
  • Menu Languages:

  • English
  • French
  • German
  • Italian
  • Spanish
  • Portuguese
  • Dutch
  • Russian
  • Swedish
  • Norwegian
  • Danish
  • Finnish
  • Polish
  • Hungarian
  • Czech
  • Compatibility
  • PictBridge
  • DPOF
  • Exif Private Tag
  • Print Image Matching
  • PTP (Picture Transfer Protocol)



  • Calendar

    April 2007
    M T W T F S S
    « Sep   May »
     1
    2345678
    9101112131415
    16171819202122
    23242526272829
    30  

    Categories