How to read local Unix mail in Mail.app under Tiger ?
Tuesday, July 18 2006 @ 10:17 AM BST
Contributed by: Admin
How to configure Mail.app under Tiger so that I have access to my Unix account's mailbox ?
Mail.app can connect to 3 types of mailboxes server: .Mac, IMAP and POP.
Mail.app can convert mbox files into .emlx ones but can't use a mbox file or folder as a mail source.
There is no other way than setup a POP (or IMAP) server to run on the local machine.
To do that, you also need to start the Postfix MTA on that machine.
First step, will be to look at what is already installed on your machine.
Indeed, depending on you have upgrade your Tiger box from a Panther installation or you have done a fresh install, you may have some files left installed from previous installation.
Of course, to do all what will be explained here, you need an administrator account (a sudoer…) /etc/hostconfig
In hostconfig, you will add or modify a line: MAILSERVER=-YES-
In main.cf, you need: myhostname = localhost.localdomain
mydomain = localdomain
mynetworks_style = host
sender_canonical_maps = hash:/etc/postfix/canonical
relayhost = YOUR_ISP_RELAY_HOST_ADDRESS
The relayhost entry should be set to your ISP's one because the majority of ISPs don't authorize you to connect directly to other SMPT port to avoid spam propagation…
...but in case your ISP authorizes this you could use relayhost = localhost.
In /etc/postfix/canonical add a line:
Example for John Doe, its user name on the Mac is jdoe and it's email address is firstname.lastname@example.org: jdoe: email@example.com /etc/postfix/smtpd.conf should contain:
It's enough for the local user to be able to read its own local mail. Other scheme could be used if you need more security in your environement.
Then in Terminal.app, you have to rebuild the canonical db: sudo postalias hash:/etc/postfix/canonical
In master.cf, be sure that the smtp line is NOT commented out. (remove the leading #)
By starting the postfix daemon using sudo postfix start in Terminal.app, we are at half way...
You now have to install the plist file to launch the ipop3d daemon at startup:
in /Library/LaunchDaemons (or ~/Library/LaunchDaemons/) under the name pop3.plist
(It would be similar for an IMAP dameon)
You install ipop3d itself in /usr/local/libexec/ (at the same place as specified in the plist file).
And you can start it from Terminal.app, using sudo launchctl load /Library/LaunchDaemons/pop3.plist
Now in Mail.app, you are ready to create a new POP account using "localhost" as your server and your Mac login…
(download here the ipod3d, imapd and .plist files)