[Mimedefang] Adding support for learning our addresses

David F. Skoll dfs at roaringpenguin.com
Tue Jan 31 13:41:35 EST 2006


Philip Prindeville wrote:
> Damrose, Mark wrote:

>> If you are using NAT, then in order to accept mail to
>> postmaster@[ip.add.re.ss] (see RFC1123 Section 5.2.17), you'll need to
>> include [ip.add.re.ss] in /etc/mail/local-host-names.  Why not read
>> that file?

> Gak.  Then we're relying on its format staying the same, and second that
> we need to be able to parse the file.

Or how about parsing the output of:

   echo '$=w' | sendmail -bt

At least that format is likely to stay the same, and you can be guaranteed
that your filter and Sendmail will both agree on the meaning of "local".

Regards,

David.



More information about the MIMEDefang mailing list