[Mimedefang] Grandparent of filter process is fairly unique?

Kelly Jones kelly.terry.jones at gmail.com
Sat Dec 27 14:29:23 EST 2008

On 12/26/08, Andrzej Adam Filip <anfi at onet.eu> wrote:
> "Kelly Jones" <kelly.terry.jones at gmail.com> wrote:
>> [...]
>> Does mimedefang-filter get the remote port number? Could I tweak the
>> code to pass it?
>> [...]
> You can configure sendmail to pass extra variables to milter (mimedefang).
> ${client_addr}
> ${client_port}
> ${daemon_addr}
> ${daemon_port}

That sounds great! What are the sendmail.mc macros to do this?

The client_addr/client_port should be fairly unique, at least for a
period of time, excluding intentionally misconfigured clients.

Can sendmail pass the pid of the sendmail fork that's handling a given
request? I could probably get that from the client_addr/client_port,
but that seems inefficient.

We're just a Bunch Of Regular Guys, a collective group that's trying
to understand and assimilate technology. We feel that resistance to
new ideas and technology is unwise and ultimately futile.

More information about the MIMEDefang mailing list