Sendmail milter SPF (was: run levels (priority) and chkconfig --add)

Alexander Dalloz alexander.dalloz at uni-bielefeld.de
Wed Oct 20 22:47:18 UTC 2004


Am Do, den 21.10.2004 schrieb Paul Howarth um 0:34:

> > Oct 17 09:37:47 kjc386 sendmail[2296]: i9HDblkJ002296: Milter 
> > (spf-milter): error connecting to filter: Connection refused by 
> > /var/spf-milter/spf-milter.sock
> > Oct 17 09:37:47 kjc386 sendmail[2296]: i9HDblkJ002296: Milter 
> > (spf-milter): to error state
> > Oct 17 09:37:47 kjc386 sendmail[2296]: i9HDblkJ002296: Milter: 
> > initialization failed, temp failing commands
> > 
> > And the email is then bounced (temporarily) by sendmail.
> > 
> > > Does the socket get created in /var/spf-milter?
> > 
> > Not sure, I haven't looked whilest it was dead.  It certainly exists 
> > after I restart it.
> 
> It shouldn't be there when the milter is dead, but it should be there
> when it's just started, before sendmail is started.

But if the socket is missing when Sendmail comes up there will be an
error warning in the maillog produced by Sendmail.

> Could be an "unsafe socket" problem; make sure that none of the
> directories / /var /var/spf-milter are world-writable.

Then too Sendmail would complain in the maillog.

It could be a problem that an old socket file resides and the SPF milter
server startup does not fully create a new socket file. You could
prevent this situation by writing in the start() function of the SPF
milter init script a line

rm -f /var/spf-milter/spf-milter.sock

right before the daemon line with which the milter is started.

(Wouldn't be a more common location for the socket - and other milter
files - /var/lib/spf-milter/ or /var/spool/spf-milter/?)

> Paul.

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG key 1024D/ED695653 1999-07-13
Fedora GNU/Linux Core 2 (Tettnang) kernel 2.6.8-1.521smp 
Serendipity 00:40:45 up 21:20, 16 users, 0.02, 0.05, 0.13 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20041021/43702d0b/attachment-0001.sig>


More information about the fedora-list mailing list