On Thursday 02 October 2003 10:32, Anand Buddhdev wrote:I found another solution to this by experimentation: If I set the MAXDELS in module.esmtp to 0, then the whole system can be running, but courier will make no attemtp to deliver email via ESMTP. A simple script can change this value to some positive number before a dial-up, complete deliveries, and then switch it back to 0 after the dial-up.
Very slick. Does courier have to be restarted before the change takes effect or is it enough to just change the setting?
Unfortunately, yes, the courierd process will need a restart, since it initialises MAXDELS at startup.
/usr/lib/courier/sbin/courier restart
The additional benefit of doing it this way is that courier will not generate any deferral logs, since it will never have tried the deliveries in the first place! I find it easiest to create 2 files, called module.esmtp.on, and module.esmtp.off, with my required MAXDELS values in, and copy them to module.esmtp as required, followed by a courier restart.
Having said all this, I personally much prefer exim for dial-up sites, because exim is simply so configurable. It even provides a handy option called "queue_smtp", which dutifully queues all non-local deliveries until you issue "exim -q" to start a queue run and deliver email.
I've recently setup a site where I use maildrop, courier-imap and sqwebmail for all the front-end user applications, and exim as the MTA. Everything works beautifully, and it needed no patching of any kind. Just works "out of the box".
-- Anand
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
