On Feb 25, 2014, at 3:44 AM, Eivind Olsen <[email protected]> wrote:
> Hello (or should that be EHLO? :))
>
> It has been a while since I've had a need to change my Postfix
> configuration, so I'm a bit rusty. I have searched, checked the
> configuration, etc. No luck yet.
>
> Is it possible to get Postfix to log the hostname presented to it during
> HELO/EHLO? Any configuration setting I've missed? Or will I have to change
> the sourcecode for this?
>
> [snip]
>
This is trivial to do with MIMEDefang.
Just use the filter_helo() function:
sub filter_helo($$$$$$) {
my ($hostip, $hostname, $helo, $hostport, $serverip, $serverport) = @_;
md_syslog('debug', "helo: $hostname ($hostip:$hostport) said \"helo
$helo\””);
return ('CONTINUE', "OK");
}
and make sure you’re running mimedefang with the -H option (or with
MX_HELO_CHECK=yes for RH Linux).
-Philip