Greetings James,
James Wilkinson wrote:
Philippe wrote:
So I have an idea. As I am on a dialup connection, when sendmail is launched, I still don't have any DNS set up (they come from my ISP). So could it be the cause of my problem ?
What I can see, but not sure 100%, is after being connected, if I restart sendmail, or if I flush the queue, all the next mails, even hours after, will be sent correctly.
That sounds right. When I was on dial-up, I put sendmail -q into /etc/ppp/ip-up.local (you may have to create this file and make it executable). It's a good place to put fetchmail, too.
By default, Sendmail will keep messages for up to five days, waiting for a chance to send them. But it will send warning messages after only four hours. You may want to modify sendmail's configuration files to lengthen either or both these intervals.
From my sendmail.mc
define(`confTO_QUEUEWARN', `4h')dnl define(`confTO_QUEUERETURN', `5d')dnl
Although it is kind of clear , which is which , the first one is for the queue warnings and the second one is for how long mails remain on the queue .
Unfortunately, I don't have sendmail installed now (I'm on postfix), so I can't guide you throught the exact changes needed to the appropriate m4 files.
It is sendmail.mc that needs to be modified. And then
make -C /etc/mail will pass the modifications to sendmail.cf and then
#service sendmail restart
will do the magic
HTH,
James.
Regards, Kostas