Comments on: Building the mail server http://switch.richard5.net How to build your Mac into a internet server using open source software Tue, 17 Jun 2008 18:25:42 +0000 hourly 1 http://wordpress.org/?v=3.2.1 By: Stefan http://switch.richard5.net/isp-in-a-box-using-a-mac-mini/building-a-proper-mail-server/comment-page-1/#comment-2332 Stefan Thu, 10 Aug 2006 20:21:31 +0000 http://switch.richard5.net/isp-in-a-box-using-a-mac-mini/building-a-proper-mail-server/#comment-2332 just FYI, successfully completed this page with cyrus-sasl-2.1.22, postfix-2.3.2, courier-authlib-0.58 and courier-imap-4.1.1. 10.4.7, Xcode 2.0. No issues, but will they all run without incident?!? More later on the ensuing pages... FWIW I did everything on this page with sudo, so I submit that enabling root is optional. just FYI, successfully completed this page with cyrus-sasl-2.1.22, postfix-2.3.2, courier-authlib-0.58 and courier-imap-4.1.1. 10.4.7, Xcode 2.0. No issues, but will they all run without incident?!? More later on the ensuing pages…

FWIW I did everything on this page with sudo, so I submit that enabling root is optional.

]]>
By: Stefan http://switch.richard5.net/isp-in-a-box-using-a-mac-mini/building-a-proper-mail-server/comment-page-1/#comment-2328 Stefan Thu, 10 Aug 2006 18:28:06 +0000 http://switch.richard5.net/isp-in-a-box-using-a-mac-mini/building-a-proper-mail-server/#comment-2328 I note that cyrus-sasl-2.1.18 is no longer on CMU's site, although .19-22 seem to be. .19 indeed fails to build/link properly, but before I went down that path I just tried .22 and found that it seems to build and install fine (haven't finished so I can't test it yet!) [Tiger 10.4.7, Xcode 2.0). I note that cyrus-sasl-2.1.18 is no longer on CMU’s site, although .19-22 seem to be. .19 indeed fails to build/link properly, but before I went down that path I just tried .22 and found that it seems to build and install fine (haven’t finished so I can’t test it yet!) [Tiger 10.4.7, Xcode 2.0).

]]>
By: Johnnie Wilcox http://switch.richard5.net/isp-in-a-box-using-a-mac-mini/building-a-proper-mail-server/comment-page-1/#comment-1906 Johnnie Wilcox Wed, 26 Jul 2006 19:48:31 +0000 http://switch.richard5.net/isp-in-a-box-using-a-mac-mini/building-a-proper-mail-server/#comment-1906 I\\\'d like to use your instructions but I do not want to decouple authentication from OS X\\\'s user database. That is, I\\\'d like to set up Postfix with SASL and TLS support and NOT use MySQL as the user database. Do you have the time and inclination to suggest how I might modify the above directions to achieve this? Thanks for the instructions you\\\'ve provided so far. JW I\\\’d like to use your instructions but I do not want to decouple authentication from OS X\\\’s user database. That is, I\\\’d like to set up Postfix with SASL and TLS support and NOT use MySQL as the user database.

Do you have the time and inclination to suggest how I might modify the above directions to achieve this?

Thanks for the instructions you\\\’ve provided so far.

JW

]]>
By: Brent http://switch.richard5.net/isp-in-a-box-using-a-mac-mini/building-a-proper-mail-server/comment-page-1/#comment-256 Brent Thu, 06 Apr 2006 16:34:42 +0000 http://switch.richard5.net/isp-in-a-box-using-a-mac-mini/building-a-proper-mail-server/#comment-256 Hi, I've gotten to the part where I'm trying to run "make install" for Postfix. It is failing at the following point: cc -DUSE_TLS -DUSE_SASL_AUTH -I/usr/local/include/sasl -DHAS_SSL -I/usr/include/openssl -DHAS_MYSQL -I/sw/include/mysql -DDEF_HTML_DIR=\"/Library/WebServer/Documents/PostfixDocs\" -DBIND_8_COMPAT -DNO_NETINFO -DHAS_PCRE -I/usr/local/include -g -O -I. -I../../include -DMACOSX -o master master.o master_conf.o master_ent.o master_sig.o master_avail.o master_spawn.o master_service.o master_status.o master_listen.o master_vars.o master_wakeup.o master_flow.o ../../lib/libglobal.a ../../lib/libutil.a -L/usr/lib -lldap -L/usr/lib -llber -L/usr/local/lib -lssl -lsasl2 -L/sw/lib/mysql -lmysqlclient -lz -lm -L/usr/local/lib -lpcre -flat_namespace ld: Undefined symbols: _db_create _db_version make: *** [master] Error 1 make: *** [update] Error 1 Here is some additional information that might be useful: * I'm installing on an OSX 10.3.9 system. * I don't have a full MySql installation on the system that I'm setting up as the mail server (MySql is running on a different server). However, I do have the MySql libraries installed on the system I'm working with. That's why when I ran 'make' for Postfix, I changed the path '/Library/MySQL/include/mysql' to '/sw/include/mysql' and '/Library/MySQL/lib/mysql' to '/sw/lib/mysql'. * I wasn't sure if this is the root of the problem or not, but my '/sw/lib/mysql' directory doesn't contain a file named 'lmysqlclient'. It does contain many similarly named files, such as 'libmysqlclient.dylib', 'libmysqlclient.a', and 'libmysqlclient.la', among others. Can you help me overcome this problem? If it comes to it, I could always install MySql on the system I'm setting up as the mail server, but I'd like to avoid that if possible. The system in question is already acting as a web server, and some of the sites are already accessing the copy of MySql that is running on another one of our servers, and I was hoping to use that installation of MySql for the mail databases as well. Thanks, Brent <em> <strong>Richard5</strong>: The issue was solved, the erorr was caused by having more than one old install of MySQL on the system which weren't expected.</em> Hi,

I’ve gotten to the part where I’m trying to run “make install” for Postfix. It is failing at the following point:

cc -DUSE_TLS -DUSE_SASL_AUTH -I/usr/local/include/sasl
-DHAS_SSL -I/usr/include/openssl -DHAS_MYSQL
-I/sw/include/mysql
-DDEF_HTML_DIR=\”/Library/WebServer/Documents/PostfixDocs\”
-DBIND_8_COMPAT -DNO_NETINFO -DHAS_PCRE
-I/usr/local/include -g -O -I. -I../../include
-DMACOSX -o master master.o master_conf.o master_ent.o
master_sig.o master_avail.o master_spawn.o
master_service.o master_status.o master_listen.o
master_vars.o master_wakeup.o master_flow.o
../../lib/libglobal.a ../../lib/libutil.a -L/usr/lib
-lldap -L/usr/lib -llber -L/usr/local/lib -lssl
-lsasl2 -L/sw/lib/mysql -lmysqlclient -lz -lm
-L/usr/local/lib -lpcre -flat_namespace
ld: Undefined symbols:
_db_create
_db_version
make: *** [master] Error 1
make: *** [update] Error 1

Here is some additional information that might be useful:
* I’m installing on an OSX 10.3.9 system.
* I don’t have a full MySql installation on the system that I’m setting up as the mail server (MySql is running on a different server). However, I do have the MySql libraries installed on the system I’m working with. That’s why when I ran ‘make’ for Postfix, I changed the path ‘/Library/MySQL/include/mysql’ to ‘/sw/include/mysql’ and ‘/Library/MySQL/lib/mysql’ to ‘/sw/lib/mysql’.
* I wasn’t sure if this is the root of the problem or not, but my ‘/sw/lib/mysql’ directory doesn’t contain a file named ‘lmysqlclient’. It does contain many similarly named files, such as ‘libmysqlclient.dylib’, ‘libmysqlclient.a’, and ‘libmysqlclient.la’, among others.

Can you help me overcome this problem? If it comes to it, I could always install MySql on the system I’m setting up as the mail server, but I’d like to avoid that if possible. The system in question is already acting as a web server, and some of the sites are already accessing the copy of MySql that is running on another one of our servers, and I was hoping to use that installation of MySql for the mail databases as well.

Thanks,
Brent


Richard5: The issue was solved, the erorr was caused by having more than one old install of MySQL on the system which weren’t expected.

]]>
By: Scott Norman http://switch.richard5.net/isp-in-a-box-using-a-mac-mini/building-a-proper-mail-server/comment-page-1/#comment-185 Scott Norman Sun, 12 Mar 2006 12:05:26 +0000 http://switch.richard5.net/isp-in-a-box-using-a-mac-mini/building-a-proper-mail-server/#comment-185 Mac Mini - OS X Server 10.3.9. I'm getting the same error sa Chris and not sure what to do. Error: configure: error: --with-authmysql specified but no mysqlclient.so I used the command ./configure --with-authmysql --with-mysql-libs=/Library/MySQL/lib/mysql --with-mysql-includes=/Library/Mysql/include/mysql <em><strong>Richard5:</strong> Scott had the same problem as Chris, he had multiple installations of MySQL on the same machine.</em> Mac Mini – OS X Server 10.3.9. I’m getting the same error sa Chris and not sure what to do. Error: configure: error: –with-authmysql specified but no mysqlclient.so I used the command ./configure –with-authmysql –with-mysql-libs=/Library/MySQL/lib/mysql –with-mysql-includes=/Library/Mysql/include/mysql

Richard5: Scott had the same problem as Chris, he had multiple installations of MySQL on the same machine.

]]>
By: Chris http://switch.richard5.net/isp-in-a-box-using-a-mac-mini/building-a-proper-mail-server/comment-page-1/#comment-98 Chris Thu, 16 Feb 2006 20:56:41 +0000 http://switch.richard5.net/isp-in-a-box-using-a-mac-mini/building-a-proper-mail-server/#comment-98 Thank you for your efforts in this project. It is appreciated ... and needed. I have installed everything up to the Courier-Auth without a single bit of trouble. However, when configuring Courier-Auth with the following params: ./configure --with-authmysql --with-mysql-libs=/Library/MySQL/lib/mysql --with-mysql-includes=/Library/Mysql/include/mysql I get the error of: configure: error: --with-authmysql specified but no mysqlclient.so I have searched my entire hard drive, and this file does not exist. Was it part of a package that I should have already? Thanks for your help. OS X 10.4.4 <em><strong>Richard5:</strong> Chris had multiple installations of MySQL on the same machine. If you have the same problem you can use the command mysql_config to find out which paths are used for the library and the include files.</em> Thank you for your efforts in this project. It is appreciated … and needed.

I have installed everything up to the Courier-Auth without a single bit of trouble.
However, when configuring Courier-Auth with the following params:

./configure –with-authmysql –with-mysql-libs=/Library/MySQL/lib/mysql –with-mysql-includes=/Library/Mysql/include/mysql

I get the error of:

configure: error: –with-authmysql specified but no mysqlclient.so

I have searched my entire hard drive, and this file does not exist. Was it part of a package that I should have already?
Thanks for your help.

OS X 10.4.4

Richard5: Chris had multiple installations of MySQL on the same machine. If you have the same problem you can use the command mysql_config to find out which paths are used for the library and the include files.

]]>
By: Markis http://switch.richard5.net/isp-in-a-box-using-a-mac-mini/building-a-proper-mail-server/comment-page-1/#comment-73 Markis Wed, 01 Feb 2006 21:17:53 +0000 http://switch.richard5.net/isp-in-a-box-using-a-mac-mini/building-a-proper-mail-server/#comment-73 After command make as admin, I got the following in the last few lines: /usr/local/courier-0.52.2/install-sh -d /usr/local/var/tmp test -w /etc || exit 0; chown bin /usr/local/var/webmail-logincache chown: bin: Invalid argument make[4]: *** [cache-reminder] Error 1 make[3]: *** [install-am] Error 2 make[2]: *** [install-recursive] Error 1 make[1]: *** [install] Error 2 make: *** [install-recursive] Error 1 OS X 10.4.4 PowerMac G4 <em><strong>Richard5:</strong> The problem is solved, Markis tried to compile the complete Courier-MTA distribution instead of just compiling the IMAP server.</em> After command make as admin, I got the following in the last few lines:

/usr/local/courier-0.52.2/install-sh -d /usr/local/var/tmp
test -w /etc || exit 0; chown bin /usr/local/var/webmail-logincache
chown: bin: Invalid argument
make[4]: *** [cache-reminder] Error 1
make[3]: *** [install-am] Error 2
make[2]: *** [install-recursive] Error 1
make[1]: *** [install] Error 2
make: *** [install-recursive] Error 1

OS X 10.4.4 PowerMac G4

Richard5: The problem is solved, Markis tried to compile the complete Courier-MTA distribution instead of just compiling the IMAP server.

]]>
By: Geva http://switch.richard5.net/isp-in-a-box-using-a-mac-mini/building-a-proper-mail-server/comment-page-1/#comment-48 Geva Sat, 21 Jan 2006 03:33:45 +0000 http://switch.richard5.net/isp-in-a-box-using-a-mac-mini/building-a-proper-mail-server/#comment-48 Using the most recent version of the courier-auth code on OS X 10.4.4, authentication broke until I explicity specified '--with-authmysql' to configure. I'd recommend that others use the following configure command to be on the safe side: <code> ./configure --with-authmysql --with-mysql-libs=/Library/MySQL/lib/mysql --with-mysql-includes=/Library/Mysql/include/mysql </code> (replacing the --with-mysql-* paths with the paths to your mysql install) Using the most recent version of the courier-auth code on OS X 10.4.4, authentication broke until I explicity specified ‘–with-authmysql’ to configure. I’d recommend that others use the following configure command to be on the safe side:


./configure --with-authmysql --with-mysql-libs=/Library/MySQL/lib/mysql --with-mysql-includes=/Library/Mysql/include/mysql

(replacing the –with-mysql-* paths with the paths to your mysql install)

]]>
By: lincoln http://switch.richard5.net/isp-in-a-box-using-a-mac-mini/building-a-proper-mail-server/comment-page-1/#comment-37 lincoln Tue, 27 Dec 2005 01:09:27 +0000 http://switch.richard5.net/isp-in-a-box-using-a-mac-mini/building-a-proper-mail-server/#comment-37 Hello, I am having problems compiling postfix, when I sudo make install I get : /usr/bin/ld: truncated or malformed archive: /usr/local/mysql/lib/libmysqlclient.a (ranlib structures in table of contents extends past the end of the table of contents, can't load from it) collect2: ld returned 1 exit status make: *** [master] Error 1 make: *** [update] Error 1 its is the same if I follow your directions of if i just try to build postfis with only mysql. => http://discussions.apple.com/thread.jspa?messageID=658158&#658158 my hardware is an xserve running 10.4.2 mysql is from mysql.com v5.0.16 all other pacatges are the sorces you have listed. I have tried using the factory supplied mysql as well with the same result. any ideas? <em><strong>Richard5</strong>: It is solved, the problem was related to using the corrrect path to the MySQL include files and libraries.</em> Hello, I am having problems compiling postfix, when I sudo make install I get :

/usr/bin/ld: truncated or malformed archive: /usr/local/mysql/lib/libmysqlclient.a (ranlib structures in table of contents extends past the end of the table of contents, can’t load from it)
collect2: ld returned 1 exit status
make: *** [master] Error 1
make: *** [update] Error 1

its is the same if I follow your directions of if i just try to build postfis with only mysql. => http://discussions.apple.com/thread.jspa?messageID=658158&#658158

my hardware is an xserve running 10.4.2 mysql is from mysql.com v5.0.16 all other pacatges are the sorces you have listed. I have tried using the factory supplied mysql as well with the same result.

any ideas?

Richard5: It is solved, the problem was related to using the corrrect path to the MySQL include files and libraries.

]]>
By: Jeff Stubbs http://switch.richard5.net/isp-in-a-box-using-a-mac-mini/building-a-proper-mail-server/comment-page-1/#comment-31 Jeff Stubbs Sun, 18 Dec 2005 02:42:02 +0000 http://switch.richard5.net/isp-in-a-box-using-a-mac-mini/building-a-proper-mail-server/#comment-31 Ignore that last question. Hands are quicker than the eye. Ignore that last question. Hands are quicker than the eye.

]]>