Re: [exim] Logging IPv4 port numbers

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Mike Cardwell
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] Logging IPv4 port numbers
On 27/01/2011 11:10, Jethro R Binks wrote:

>>> http://www.exim.org/exim-html-current/doc/html/spec_html/ch49.html#SECTlogselector
>>
>> My Exim installation already logs the source port:
>>
>> 2011-01-27 10:55:53 1PiPW5-0005aa-6F <=
>> exim-users-bounces+lists.grepular.com@??? H=tahini.csx.cam.ac.uk
>> [2001:630:200:8080:204:23ff:fed6:b664]:46199
>> I=[2001:470:1f09:1186::beef]:25 P=esmtp S=4022
>> id=F0D3DBE9D79C910E51F1ABBC@??? T="Re: [exim]
>> Allow STARTTLS after HELO"
>>
>> Source port for that incoming email was 46199...
>
> What you don't get - unless something has changed - is a log of the source
> port for outgoing messages, which I commented on in 2009, and had some
> reason for finding useful.


Right. I see what you mean. You want to log the source port when sending
outgoing mail in case the Exim installation is behind NAT. Surely, if
they're behind NAT, the NAT gateway will change the source port anyway
as far as the destination server can see?

Ie, if two Exim installations behind NAT bind to their local port 1234
at the same time and try to connect to the same IP...

--
Mike Cardwell https://grepular.com/ https://twitter.com/mickeyc
Professional http://cardwellit.com/ http://linkedin.com/in/mikecardwell
PGP.mit.edu 0018461F/35BC AF1D 3AA2 1F84 3DC3 B0CF 70A5 F512 0018 461F