Sendmail not sending mails immediately

  • Follow


Hello,

We've got a Solaris 9 x86 box which sends notification mails and we 
would like those mails to be sent immediately. Currently there are 
sitting in the queue a few minutes and then they get sent. I didn't 
configure anything differently no that box. And sendmail is running as 
the following:

  root   282     1  0   Dec 21 ?        0:01 /usr/lib/sendmail -bd -q15m
    smmsp   283     1  0   Dec 21 ?        0:00 /usr/lib/sendmail -Ac -q15m

My question now is: how do I configure sendmail to send immediately mails ?

Regards

0
Reply Syn 12/23/2003 1:14:40 PM

>   root   282     1  0   Dec 21 ?        0:01 /usr/lib/sendmail -bd -q15m
>   smmsp   283     1  0   Dec 21 ?        0:00 /usr/lib/sendmail -Ac -q15m


Replace -q15m with -q1s


Sincerely,
  Francesco



-- 
To contact me remove the "NOSPAM" part from my e-mail address.


0
Reply Francesco 12/23/2003 5:46:50 PM


I should add that -q1s implies that sendmail will process the mail queue
every single second... so it's unnecessary overhead. I suggest you try
with -q1m so it's once every minute... it's not too bad, but it could
still be too much overhead for your system. Try to find a compromise
between response times and overhead.

I suggest you read the sendmail manual page for further information about
the command line options...

 
 
Sincerely,
  Francesco


-- 
To contact me remove the "NOSPAM" part from my e-mail address.


0
Reply Francesco 12/23/2003 5:52:31 PM

Syn <syn_NOSPAM_uw@hotmail.com> writes:
>We've got a Solaris 9 x86 box which sends notification mails and we 
>would like those mails to be sent immediately. Currently there are 
>sitting in the queue a few minutes and then they get sent. I didn't 
>configure anything differently no that box. And sendmail is running as 
>the following:
>My question now is: how do I configure sendmail to send immediately mails ?

Is the load average high?  If the load average is within a certain range
sendmail will queue the mail rather than attempt to deliver immediately.

The range is defined in the sendmail.cf file.

Good luck

Mark Hittinger
bugs@pu.net
0
Reply bugs 12/23/2003 10:16:03 PM

Syn <syn_NOSPAM_uw@hotmail.com> wrote in message news:<3FE83FC0.7040405@hotmail.com>...
> Hello,
> 
> We've got a Solaris 9 x86 box which sends notification mails and we 
> would like those mails to be sent immediately. Currently there are 
> sitting in the queue a few minutes and then they get sent. I didn't 
> configure anything differently no that box. And sendmail is running as 
> the following:
> 
>   root   282     1  0   Dec 21 ?        0:01 /usr/lib/sendmail -bd -q15m
>     smmsp   283     1  0   Dec 21 ?        0:00 /usr/lib/sendmail -Ac -q15m
> 
> My question now is: how do I configure sendmail to send immediately mails ?
> 
> Regards

Unless your notification system puts mail on the sendmail queue with the flag
for queue mode only  " -Odq " , your mail delivery should be attempted 
immediately .  Try to increase the LogLevel in /etc/mail/sendmail.cf 
to determine if you first delivery attempt is rejected and the mail sits in 
the queue for that reason.

   increase  LogLevel to  LogLevel=15  and study the /var/adm/messages 
   or /var/log/syslog  file ( where ever you have configured syslog to 
   dump the sendmail messages )  and try to see  why the initial delivery 
   attempt fails.

  //Lars
0
Reply lars 12/23/2003 10:40:03 PM

4 Replies
868 Views

(page loaded in 0.002 seconds)

Similiar Articles:













7/22/2012 5:17:45 PM


Reply: