Setting up SMTP and IMAP services on Mac OS X 10.4.x (Tiger)

Setting up postfix was a little difficult as I am not familiar with the config file, but I got it going with the following options:
#delay_warning_time = 4h

mydomain = obvious
myhostname = obvious
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = domainname_for_outgoing_mail
mydestination = domains_you_accept_mail_for
relayhost = if_you_need_to_relay_via_your_ISPs_mail_host:port
mynetworks = 127.0.0.0/8 192.168.0.0/24 (aka, what you will relay for)
#mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
message_size_limit = 52428800
program_directory = /usr/libexec/postfix/
mydomain_fallback = obvious

I may have some superflous entries, as it took me a while to work out what a couple of errors meant but its working as at today!

I symlinked /etc/aliases to /etc/postfix/aliases and after editing the aliases file you must run newaliases

Setting up UW-IMAP took a little longer:
Step 1: Grab the source from the uni of washington.
Step 2: Modifiy $extracted_source_dir/src/osdep/unix/env_unix.c by changing it to read static char *mailsubdir = "Library/Mail/IMAP_SERVER_STORE"; /* mail subdirec
Step 3: run make ; make install to create the program files (note: development tools will need to be installed for this available from http://developer.apple.com/ or on one of the CD’s that came with your Mac or OS X.
Step 4: Configure xinetd
grasshopper:~/imap-2004e/src/osdep/unix root# cat /etc/xinetd.d/imap
service imap
{
disable = no
socket_type = stream
wait = no
user = root
groups = yes
flags = NOLIBWRAP
server = /usr/local/libexec/imapd
only_from = 192.168.0.0/24 localhost
log_on_success += DURATION USERID
log_on_failure += USERID
}

Step 5: Setup tcpwrapper’s to allow the hosts you will allow to connect by editing /etc/hosts.allow .
Step 6: Restard xinet daemon sudo kill -HUP `cat /var/run/xinetd.pid`
Step 7: Test that it works by telneting to localhost 110