[Mimedefang] Determine MTA or MSA port: consult the {daemon_*} macros

Steffen Kaiser skmimedefang at smail.inf.fh-bonn-rhein-sieg.de
Wed Feb 4 05:52:01 EST 2004


On Tue, 3 Feb 2004, Jeremy Mates wrote:

> > clients connect to the server directly - like in my case. Is there a
> > way to determine, if the message came in through sendmail's MTA (Port
> > 25) or MSA (Port 587) channel?
>
> Sendmail knows what port is being used, and this information is made
> available as macros. To see what macros are passed to MIMEDefang, use

> Then send a few test messages, which should reveal the {daemon_name}
> macro being passed to MIMEDefang. This macro can be used to translate

Hey, I simply missed this nifty info in the info logs!

BTW: I'm logging the MIMEDefang info for all my own mails with the
Data::Dumper->Dump() method into a file. Works great for debugging and
has a readable output of all the variables; e.g.:

Bye,

-- 
Steffen Kaiser



More information about the MIMEDefang mailing list