Couldn't start qmail-smtpd without editing...

Started by Jim_Keller, April 13, 2004, 07:41:22 PM

Previous topic - Next topic

Jim_Keller

Hello,
  I just installed (after some minor issues) a mail server with the qmail toaster, IMP (http://www.horde.org/imp" target="_blank">http://www.horde.org/imp), and courier-imap. However, after the install, the /var/qmail/supervise/smtp/run script would give a tcpserver error due to the -S switch. the -S switch isn't mentioned in the man page for tcpserver, so I changed:

exec softlimit -m 35840000  tcpserver -S -H -R -c10 -x /usr/local/vpopmail/etc/tcp.smtp.cdb -u 89 -g 89 0 smtp qmail-smtpd /usr/local/vpopmail/bin/vchkpw /usr/bin/true 2>&1

to

exec softlimit -m 35840000 tcpserver -H -R -c10 -x /usr/local/vpopmail/etc/tcp.smtp.cdb -u 89 -g 89 0 smtp qmail-smtpd /usr/local/vpopmail/bin/vchkpw /usr/bin/true 2>&1

and everything seems to be working. It's probably worth noting that I didn't install the filter stuff, though I don't see why that would effect tcpserver. I'm running FreeBSD 4.9 with a freshly cvsup'd ports tree.

-Jim Keller
http://www.centerfuse.net" target="_blank">http://www.centerfuse.net

davidcl

Sounds like you didn't install the patched ucspi-tcp provided with the toaster.

If you're running toaster-watcher, your edits of the run files will be over-written the next time toaster-watcher runs.  So instead of changing the run file, you should set:

smtpd_use_mysql_relay_table     = 0

...in toaster-watcher.conf

Or just run toaster_setup.pl -s ucspi to install the patched version.

Details on the patch are here:
http://www.tnpi.biz/internet/mail/toaster/patches/tcpserver-mysql.shtml" target="_blank">http://www.tnpi.biz/internet/mail/toaster/patches/tcpserver-mysql.shtml

Jim_Keller

>Sounds like you didn't install the patched ucspi-tcp provided with the toaster.

You are correct, I had installed tcpserver from the port. So, I did a make deinstall in /usr/ports/sysutils/ucspi-tcp, then ran toaster_setup.pl -s ucspi, and put the tcpserver line back to the way it was initially. Things seem to be good, thanks.