16 messages in net.sourceforge.lists.courier-users[courier-users] Re: courier-mta and d...
FromSent OnAttachments
Michelle KonzackSep 30, 2003 4:12 pm 
Jeff JansenOct 1, 2003 2:02 am 
Michelle KonzackOct 1, 2003 5:09 pm 
Sam VarshavchikOct 1, 2003 7:35 pm 
Michelle KonzackOct 2, 2003 1:38 am 
Anand BuddhdevOct 2, 2003 3:32 am 
Jeff JansenOct 2, 2003 3:42 am 
Jeff JansenOct 2, 2003 4:11 am 
Anand BuddhdevOct 2, 2003 5:44 am 
Jon NelsonOct 2, 2003 6:52 am 
Gordon MessmerOct 2, 2003 9:14 am 
Jeff JansenOct 2, 2003 10:29 am 
Michelle KonzackOct 3, 2003 3:37 am 
Michelle KonzackOct 3, 2003 4:09 am 
Jeff JansenOct 3, 2003 7:08 am 
Michelle KonzackOct 3, 2003 10:39 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[courier-users] Re: courier-mta and dialupActions...
From:Anand Buddhdev (ar@anand.org)
Date:Oct 2, 2003 5:44:42 am
List:net.sourceforge.lists.courier-users

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.

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".