[Mimedefang] Accessing the source/destination port #'s at filter_relay
Philip Prindeville
philipp_subx at redfish-solutions.com
Sun May 2 20:25:05 EDT 2010
On 4/30/10 9:51 AM, Philip A. Prindeville wrote:
> Not necessarily... I might be running several servers locally on a
> single machine (each chroot'd) with port forwarding, etc.
>
> I can also be listening on 25, 465, and 587 all at the same time... even
> without multiple instances.
>
> If we can pass the source address, why not just pass the 4-tuple?
>
Ok, so I can grab the remote port # out of insa->sin_port in
mfconnect(), but how do I access the local port?
It's available as {daemon_port} later on (in filter_sender()), but not
sure how to get at it earlier.
-Philip
More information about the MIMEDefang
mailing list