I’m still very busy and I haven’t had time to rewrite the documentation to reflect all the changes needed to install the mailserver components on a Leopard based Mac.
But here is a quick instruction set on how to get every item compiled on Leopard. Use the documentation set for all the other instructions, here are only the differences in use for Leopard.
As a first you don’t need to install SASL anymore, it all works without it.
Postfix:
CFLAGS=’-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk’ \
CCARGS=’-DUSE_TLS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL \
-I/usr/include/sasl \
-DHAS_PCRE -I/usr/local/include \
-DHAS_SSL -I/usr/include/openssl \
-DHAS_MYSQL -I/usr/local/mysql/include/mysql’ \
AUXLIBS=’-L/usr/lib -lldap -lsasl2 -L/usr/lib -llber -L/usr/local/lib \
-L/usr/local/lib -lpcre \
-lssl -L/usr/local/mysql/lib/mysql \
-lmysqlclient -lz -lm’
Courier Auth:
./configure --with-authmysql \
--without-authpam \
--with-mysql-libs=/usr/local/mysql/lib/mysql \
--with-mysql-includes=/usr/local/mysql/include/mysql
Courier Imap:
--with-authpwd=YES \
--without-authcram \
COURIERAUTHCONFIG=/usr/local/bin/courierauthconfig
Create the vmail user:
sudo dscl . -create /Users/_vmail UserShell /usr/bin/false
sudo dscl . -create /Users/_vmail UniqueID 102
sudo dscl . -create /Users/_vmail PrimaryGroupID 102
sudo dscl . -create /Users/_vmail NFSHomeDirectory /var/empty
sudo dscl . -passwd /Users/_vmail ”
Create the dspam user:
sudo dscl . -create /Users/_dspam UserShell /usr/bin/false
sudo dscl . -create /Users/_dspam UniqueID 101
sudo dscl . -create /Users/_dspam PrimaryGroupID 101
sudo dscl . -create /Users/_dspam NFSHomeDirectory /usr/local/var/dspam
sudo dscl . -passwd /Users/_dspam ”
DSpam:
--with-storage-driver=mysql_drv \
--with-mysql-includes=/usr/local/mysql/include/mysql \
--with-mysql-libraries=/usr/local/mysql/lib/mysql \
--enable-preferences-extension \
--with-dspam-home-owner=_dspam \
--with-dspam-home-group=_postfix \
--with-dspam-home=/usr/local/var/dspam \
--enable-long-usernames \
--with-dspam-group=postfix \
--enable-mysql4-initialization \
--enable-domain-scale \
--enable-virtual-users \
--enable-debug \
--enable-verbose-debug
Maildrop:
flags=DRhu user=_vmail argv=/usr/local/bin/maildrop /etc/maildroprc -d ${user}@${nexthop} ${extension} ${recipient} ${user} ${nexthop} ${sender}
Some of the changes are minor but they are required. I’m still testing most of the setup, sorry that it takes so much time to update the documentation. If someone knows a way to edit WordPress pages offline in an easy way I would like to hear about it.



Comments
2:53 pm
You may try Qumana, http://www.qumana.com/overview.htm , for editing WordPress pages offline. (Qumana is a lesser-known alternative to ecto & MarsEdit.)
3:09 pm
Frank, thanks. I gave it a try but it only works with blog posts as far a I can tell by installing it and trying it out. No pages where loaded and no reference to pages are found anywhere in the documentation.
5:32 pm
Well, there is a Firefox add-on called ScribeFire that supports editing WordPress pages (offline?), http://en.forums.wordpress.com/topic.php?id=1170 . And ecto3 lets you (easily?) create & edit WordPress pages as well, http://arstechnica.com/journals/apple.ars/2008/02/05/new-ecto3-beta-edits-wordpress-pages .
Cheers,
frank
7:47 pm
Ok, it looks like ecto does as promised. Still trying scribefire… Thanks!
11:23 am
Richard, thanks for your great works~
Hope you will have time to make a docs about running DNS on mac~
11:29 am
It’s on the todo list, but it’s not that easy…
2:28 am
Just want to say that I’ve used parts of your posting to get my system up and running. If you would like I can give you the steps and configure params for each program I had compiled.
My system is PowerPC G5 Dual 2.0, MacOS X 10.5.2
My setup is a little different than defaults in some cases (usually only data file/directory paths).
Let me know via email if you’d like me to clean up my install notes and post them or send them to you for eval.
Programs I used for my installation/setup are as follows:
fink — several programs
UW-IMAP (used only for PHP build)
Apache2 2.2.6 (2.2.8 also works but I needed to drop back to 2.2.6 for dotmac patch compatibility)
MySQL 5.1.23
PHP 5.25
Courier-Authlib (using MySQL for authentication)
Courier-IMAP (and SSL)
Courier-Maildrop
Postfix 2.5.0 (using MySQL for virtual user lookups)
PureFTP
dotmac (http://code.google.com/p/dotmac/)
5:21 am
The email is send to Chris. I’d love to know more about his setup and to see where I can improve and add more features.