From: Michael Cook [Removed] Sent: Tuesday, June 10, 2003 3:08 AM To: james-user@jakarta.apache.org Subject: James 2.1.3 on OSX Sucessfully installed James 2.1.3 on OSX 10.2.5 (Darwin), and configured it to auto-start and co-exist with sendmail. For those who are interested: 1) The note on the James download site about OSX tar not working is incorrect and can be ignored. 2) James works fine "out-of-the-box" if you kill sendmail first, but I had to make several departures from the James doc. section on using James together with sendmail, since that part of the documentation is based on Linux. First, to get sendmail working at all on OSX, see (for example) my draft article at http://www.skyprod.com/howto/sendmailosx/sendmailosx.html which is in turn based on info at http://www.mail-archive.com/mailman-users@python.org/msg12599.html. Then, after copying /etc/mail/sendmail.cf, follow the instructions provided in the James doc., with a few changes: a) When changing /etc/mail/sendmail.cf, the file used is based on the OSX example. There are a few differences: - re. "Look for the line beginning DS make this line DSesmtp:localhost" -- this instruction can be followed "as is". - re. "Look for the line beginning DR make this line DResmtp:localhost" -- this line doesn't appear, so can be added at the end of the file - re. "Look for the line beginning DH make this line DHesmtp:localhost -- this line doesn't appear, so can be added at the end of the file. b) Since I am also using Webmin, I also changed the "Send outgoing mail via host" entry under Webmin's "Sendmail options" to specify "esmtp:localhost" instead of esmtp:smtp.myisp.net. d) I also added the following lines at the end of sendmail.cf: Mesmtp, P=[IPC], F=kmDFMuXa, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r\n, L=990, T=DNS/RFC822/SMTP, A=TCP $h e) Created a new folder /System/Library/Startupitems/James, set up in the in the usual way (OSX), to start /bin/run.sh automagically. f) Added line James=-YES- to /etc/hostconfig. g) Changed /System/Library/Startupitems/Sendmail/Sendmail to remove -bd, so that the start command for sendmail becomes /usr/sbin/sendmail -q1h. This turns off sendmail's SMTP, but leaves mail queueing running. h) Set up /etc/mail/default-auth-info as directed, adding (for example) somebody@myhost.myisp.net so that sendmail can log in to James' SMTP server to relay queued mail to James. i) Set sendmail.cf to also include : O DefaultAuthInfo=/etc/mail/default-auth-info AND O AuthOptions=A j) Also amended /etc/mail/aliases to forward root's mail to somebody@myhost.myisp.net (for example). This way, all mail gets purged from sendmail's queues into James. k) On restarting /usr/sbin/sendmail -q1h you will see: Warning: Option: AuthMechanisms requires SASL support (-DSASL) Warning: Option: AuthOptions requires SASL support (-DSASL). These messages can be ignored. l) On system restart, James will die unless you add the following line to /bin/run.sh: export JAVA_HOME='/usr' m) On restarting once more, everything works fine, although the system log shows the message "SystemStarter: Waiting for James" repeatedly. I haven't figure out how to resolve that yet. Please send me a note if want more detail or some clarification. Regards, Michael Cook --------------------------------------------------------------------- To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: james-user-help@jakarta.apache.org