Note: These instructions are identical for Leopard and Snow Leopard.
We’ve got everything compiled and configured to its time to try to start everything up and to test if it is working properly. .plist scripts will also have everything start-up automatically after a reboot. Apache and MySQL have been configured already to start after a reboot now it’s time to take care of the mailserver components Postfix and Dovecot.
Postfix
Create a file called ‘com.diymacserver.postfix.plist‘ in the directory ‘/System/Library/LaunchDaemons/‘. The content of the file should look like:
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.diymacserver.postfix</string>
<key>Program</key>
<string>/usr/libexec/postfix/master</string>
<key>ProgramArguments</key>
<array>
<string>master</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>OnDemand</key>
<false/>
</dict>
</plist>
To load and activate the .plist file and to make sure that it is started after a reboot you’ll need to load the plist file by using the command:
You can see if it loaded correctly by using the command:
This will show you all the active plist files.
You can see if everything went correctly by trying to start it using:
Dovecot
The Dovecot server is configured almost the same as Postfix, the difference is in the details.
Create a file called ‘com.diymacserver.dovecot.plist‘ in the directory ‘/System/Library/LaunchDaemons/‘. The content of the file should look like:
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.diymacserver.dovecot</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/sbin/dovecot</string>
<string>-F</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
</dict>
</plist>
To load and activate the .plist file and to make sure that it is started after a reboot you’ll need to load the plist file by using the command:
You can see if it loaded correctly by using the command:
This will show you all the active plist files. Dovecot should have been started now.
If you look at the logfile ‘/var/log/mail.log‘ you could see if all programs started succesfully.



12:11 pm
Nice tutorial….
I have got list like this …
PID Status Label
(snipped)
- 1 org.postfix.master
(snipped)
- 1 com.diymacserver.postfix
(snipped)
can you explain please how can i start now….
Actually I am new here…
Thankx a lot
8:11 pm
@Titas, as you can see it has already started but also that the original postfix is also running and interfering. You need to unload the original org.postfix.master.plist before you can continue safely.
6:58 am
Thanks again for your help…but can you pls guide me step by step that how can I start mailing from where i am now…
I am a beginner to mac and Postfix or somethink like that… I have told u before…
I will be very much thankful to you if you give me the total idea… so that i can start mailing by my local server…
from Titas
9:43 am
@Titas, if you just want to start sending mail you don’t need these instructions. This site is meant for setting up a mailserver. Which is mainly concerned with receiving mail. Sending mail can be done from any computer without much configuration or setup.
10:49 am
Richard,
I Know this…
I want to set my my own smtp server(Mail server)…with snowleopard postfix … thats why i asked you
1:41 pm
Then as I said, this site is not for you. A quick google search will find you information like: http://www.macosxhints.com/article.php?story=20081217161612647