On Thu, 2 Oct 2003, Anand Buddhdev wrote: > Jeff Jansen writes: > > > 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.
As a friendly suggestion -- consider looking into nullmailer -- it's *very* small and smarthost-delivery only. Depending on how you use nullmailer-send, it will just queue stuff up until you issue nullmailer-send. I use courier-mta myself, but I use nullmailer on "dummy" hosts that don't need the complexity and power of courier-mta (or exim, or postfix, or....). I mean sheesh, nullmailer is *7* files (sans docs and manpages): usr/bin/mailq usr/bin/nullmailer-inject usr/sbin/nullmailer-queue usr/sbin/nullmailer-send usr/sbin/sendmail usr/libexec/nullmailer/smtp usr/libexec/nullmailer/qmqp -- Democracy is two wolves and a sheep voting on what to have for dinner. Liberty is two wolves attempting to have a sheep for dinner and finding a well-informed, well-armed sheep. Jon Nelson <[EMAIL PROTECTED]> C and Python Code Gardener ------------------------------------------------------- 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
