OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: postgrey and postfix

From: /dev/rob0 (rob0gmx.co.uk)
Date: Thu Jul 20 2006 - 01:42:54 CDT


On Tuesday 18 July 2006 07:44, Hement Gopal wrote:
> I'm running postfix postfix 2.2.0 on Fedora Core 5 and want to
> implement postgrey.

> I notice that I cannot telnet to locahost 10023 but I do see this is

Does netstat(8) show postgrey (perl) listening on 10023?

> /var/log/maillog :-
>
> Jul 18 14:54:45 chuck postgrey[12410]: Process Backgrounded
> Jul 18 14:54:45 chuck postgrey[12410]: 2006/07/18-14:54:45 postgrey
> (type Net::Server::Multiplex) starting! pid(12410)
> Jul 18 14:54:45 chuck postgrey[12410]: Binding to TCP port 10023 on
> host localhost

Looks like it. Misguided firewall settings, perhaps?

> When I send a test mail to the server I get the following,
>
(smtpd(8) logs missing)
> Jul 18 14:53:11 chuck postfix/qmgr[12204]: 80FB4390D4A:
> from=<adminwits.ac.za>, size=371, nrcpt=1 (queue active)
> Jul 18 14:53:11 chuck postfix/smtp[12386]: 80FB4390D4A:
> to=<studentmailspam.wits.ac.za>, relay=146.141.15.6[146.141.15.6],
> delay=19, status=sent (250 OK id=1G2ogo-0003gb-2W)

spam.wits.ac.za. 86400 IN MX 0 chuck.wits.ac.za.
chuck.wits.ac.za. 86400 IN A 146.141.77.10

And yet here on chuck we seem to think spam.wits.ac.za. mail should
relay to 146.141.15.6. Sure enough, the Sendmail MTA there accepted
your mail.

> Jul 18 14:53:11 chuck postfix/qmgr[12204]: 80FB4390D4A: removed
> Jul 18 14:53:16 chuck postfix/smtpd[12379]: disconnect from
> artemis.wits.ac.za[146.141.15.6]

So it came from, and was relayed back to, artemis?

> But no mail gets delivered.
>
> Does anyone have any ideas??

Artemis sendmail logs might. Chuck's "postconf -n" might help.

> <html><body><font face = "verdana" size = "0.8" color = "navy">This
> communication is intended for the addressee only. It is confidential.

Grrr, that was silly.
--
    Offlist mail to this address is discarded unless
    "/dev/rob0" or "not-spam" is in Subject: header