Index: [Article Count Order] [Thread]

Date:  Wed, 31 Oct 2007 22:09:01 +1100
From:  Greg Kuhnert <greg.kuhnert (at mark) theanchoragesylvania.com>
Subject:  [coba-e:11022] sendmail relaying denied...
To:  coba-e (at mark) bluequartz.org
Message-Id:  <4728624D.7050603 (at mark) theanchoragesylvania.com>
X-Mail-Count: 11022

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