> On May 4, 2018, at 2:33 PM, Proxy <proxy-...@mail.ru> wrote: > > May 4 04:02:03 hostname postfix/smtpd[15310]: connect from > unknown[59.178.65.172] > May 4 04:02:04 hostname postfix/smtpd[15310]: B2DF28EE52: > client=unknown[59.178.65.172] > May 4 04:02:05 hostname postfix/smtpd[15310]: disconnect from > unknown[59.178.65.172]
The message arrives from outside with client IP 59.178.65.172 exactly as logged. > May 4 04:02:05 hostname postfix/cleanup[15957]: B2DF28EE52: > message-id=<5ae3346a.1c39fb81.53a1a.a...@mx.google.com> Your cleanup(8) process probably has header_checks(5) that remove the locally added Received header. > May 4 04:02:05 hostname postfix/qmgr[29522]: B2DF28EE52: > from=<ai...@my.domain.com>, size=492, nrcpt=2 (queue active) The envelope sender is as above. Note that the message has two recipients. > May 4 04:02:07 hostname postfix/smtp[15959]: B2DF28EE52: > to=<gmail.acco...@gmail.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=3, > delays=0.68/0/0/2.3, dsn=2.0.0, status=sent (250 2.0.0 from > MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok:queued as 4B0BC8EE54) Your logging only shows the handling of one of the recipients, where is the other one? The reported recipient is external and handed off to amavis. > May 4 04:02:07 hostname amavis[1030]: (01030-15) Passed CLEAN > {RelayedInbound,RelayedOpenRelay}, [59.178.65.172]:25072 [59.178.65.172] > <ai...@my.domain.com> -> <gmail.acco...@gmail.com>,<soluti...@my.domain.com>, > Queue-ID: B2DF28EE52,Message-ID: > <5ae3346a.1c39fb81.53a1a.a...@mx.google.com>, mail_id: 3MsM13ORuq28, Hits: > -1.9, size: 492, queued_as: 4B0BC8EE54/4EADD8EE55, 2287 ms Amavis logs receiving mail for two recipients: <gmail.acco...@gmail.com> <soluti...@my.domain.com> which it delivers in two separate envelopes: 4B0BC8EE54/4EADD8EE55 > May 4 04:02:07 hostname postfix/smtpd[15980]: connect from > hostname.my.domain.com[127.0.0.1] > May 4 04:02:07 hostname postfix/smtpd[15980]: 4B0BC8EE54: > client=hostname.my.domain.com[127.0.0.1] > May 4 04:02:07 hostname postfix/cleanup[15957]: 4B0BC8EE54: > message-id=<5ae3346a.1c39fb81.53a1a.a...@mx.google.com> > May 4 04:02:07 hostname postfix/smtpd[15980]: disconnect from > hostname.my.domain.com[127.0.0.1] > May 4 04:02:07 hostname postfix/qmgr[29522]: 4B0BC8EE54: > from=<ai...@my.domain.com>, size=869, nrcpt=1 (queue active) > May 4 04:02:07 hostname postfix/smtpd[15980]: connect from > hostname.my.domain.com[127.0.0.1] > May 4 04:02:07 hostname postfix/smtpd[15980]: 4EADD8EE55: > client=hostname.my.domain.com[127.0.0.1] > May 4 04:02:07 hostname postfix/cleanup[15957]: 4EADD8EE55: > message-id=<5ae3346a.1c39fb81.53a1a.a...@mx.google.com> > May 4 04:02:07 hostname postfix/smtp[15590]: connect to > gmail-smtp-in.l.google.com[2607:f8b0:400e:c00::1a]:25: Network is unreachable > May 4 04:02:07 hostname postfix/smtpd[15980]: disconnect from > hostname.my.domain.com[127.0.0.1] > May 4 04:02:07 hostname postfix/qmgr[29522]: 4EADD8EE55: > from=<ai...@my.domain.com>, size=1139, nrcpt=2 (queue active) Some of the logging (again incomplete) of the downstream processing. For actual help: http://www.postfix.org/DEBUG_README.html#mail -- Viktor.