Hi all.
There have been a number of posts about problems with Sendmail when a
new domain is created. See
http://bluequartz.org/ml/archive/coba-e/6100/6167.html
I got caught out by the bug today, so felt adventurous and thought I
should try and fix this problem.
I noticed the following code in
/usr/sausalito/handlers/base/email/restart.pl
Sauce::Service::service_run_init('sendmail', 'stop') if $obj->{enableSMTP};
Sauce::Service::service_send_signal('sendmail', '9') if $obj->{enableSMTP};
Sauce::Service::service_run_init('sendmail', 'start') if $obj->{enableSMTP};
As far as I can tell, this is doing exactly what was suggested by a
number of people to fix this problem. Eg: Stop sendmail, kill rogue
processes if any, and restart it.
Am I looking at the right piece of code? If I am, what's wrong. Do we
need to sleep for a few moments before restarting sendmail to allow the
existing processes to die?
Regards,
Greg