1 (edited by Clouseau 2014-11-27 18:02:56)

Topic: Weird issue in mail log

==== Required information ====
- iRedMail version: 0.8.5
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: Debian Wheezy
====

I'm seeing weird entries in my mail.log(sensitive data replaced):

Nov 24 08:36:53 hostname amavis[5816]: (05816-03) Passed CLEAN {RelayedInternal}, LOCAL [209.85.212.179]:45856 [X.X.X.5] <someuser@gmail.com> -> <user@mydomain.com>, Queue-ID: 6C1F920B820E, Message-ID: <5476E008.006.00206B842947.user@mydomain.com>, mail_id: mTRb0SP_6Ik2, Hits: -102.673, size: 355606, queued_as: A22059F6026, dkim_sd=20120113:gmail.com, 3954 ms

My server has multiple ip addresses on one interface. On X.X.X.4 is my mail server and on X.X.X.5 is my DNS server.
The weird part from the above part of the log that I'm starting to notice is this: LOCAL [209.85.212.179]:45856 [X.X.X.5] - the first ip address is the one that sends HELO(I would say gmail smtp) but the second ip adress X.X.X.5 is ip of my DNS server. Shouldn't that be the client ip that is sending the mail? Why is my DNS ip insted there?

This is not a common issue, I see it only occasionally but want to know why is happening because I got an abuse reported of a bad sasl originating from X.X.X.5 ip to blocklist.de postfix server but my mail server is on X.X.X.4.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Weird issue in mail log

Clouseau wrote:

My server has multiple ip addresses on one interface.

Postfix/Dovecot listen on all available IP addresses by default, so mail service is running on both x.x.x.4 and x.x.x.5.

3 (edited by Clouseau 2014-11-27 22:59:51)

Re: Weird issue in mail log

I've checked the configuration,. postfix listens on 127.0.0.1 and X.X.X.4
Dovecto listens on * so it listens on all interfaces. I will map it only on X.X.X.4 and see how it goes...