Sendmail Queuing Time Setting
Posted: Wed Jul 07, 2010 8:29 pm
Since the queuing and retrying of sending email from sendmail is causing the ADSL slowness, I decide to change back the queuing time from 5 minutes back to 15 minutes.
From:
To:
In order to do so, the following line in /lib/svc/method/smtp-sendmail has to be changed:
default="5m" needs to be changed to default="15m"
After the change, sendmail needs to be stopped first:
Wait until spawn processes also disappeared, then restart:
The following lines can be seen in /var/log/syslog:
The new processes have 15-minute queuing time now:
From:
Code: Select all
/usr/lib/sendmail -Ac -q5m
Code: Select all
/usr/lib/sendmail -Ac -q15m
Code: Select all
check_queue_interval_syntax()
{
default="5m"
if [ $# -lt 1 ]; then
answer=$default
return
fi
if echo $1 | egrep '^([0-9]*[1-9][0-9]*[smhdw])+$' >/dev/null 2>&1; then
answer=$1
else
answer=$default
fi
}
After the change, sendmail needs to be stopped first:
Code: Select all
/etc/init.d/sendmail stop
Code: Select all
/etc/init.d/sendmail start
Code: Select all
Jul 7 20:19:43 solaris sendmail[19734]: [ID 702911 mail.info] starting daemon (8.14.4): SMTP+queueing@00:15:00
Jul 7 20:19:43 solaris sendmail[19737]: [ID 702911 mail.info] starting daemon (8.14.4): queueing@00:15:00
Code: Select all
root 19734 1 0 20:19:43 ? 0:00 /usr/lib/sendmail -bd -q15m
root 19735 19734 0 20:19:43 ? 0:01 /usr/lib/sendmail -bd -q15m
smmsp 19737 1 0 20:19:43 ? 0:00 /usr/lib/sendmail -Ac -q15m