R
R
Roman Molchanov2017-06-02 11:38:29
Mail server
Roman Molchanov, 2017-06-02 11:38:29

Mail forwarding problem. How to fix?

Good afternoon.
For the mailbox on the Postfix server, I configured incoming mail redirection according to the scheme
[email protected] -> [email protected] -> [email protected]
It works, but if domain1.com=domain2.com, i.e. it turns out
[email protected] -> [email protected] -> [email protected] ,
then delivery to [email protected] is not performed, and [email protected] receives an authorization error from the MYDOMAIN.com server on the domain1 server. com . Why does he ask for authorization - I do not understand.
I use system:
CentOS Linux release 7.3.1611 (Core)
MySQL: Mariadb-server 5.5.52
web-server: Nginx 1.10.2
iRedMail-0.9.6 MARIADB edition
iRedAdmin-Pro-SQL-2.6.0

Already tried to configure redirection through:
1) iRedAdmin-Pro in the Forwarding section;
2) iRedAdmin-Pro in the BCC section;
3) in the mailbox client interface;

4) via SQL server, adding/editing the vmail.alias table yandex), then the redirect works, but if it's a private or corporate mail server, then it doesn't.
What could be the problem?
PS: I have been working with postfix and iredmail quite recently, I will be grateful for any hints.
For a forwarded email that was additionally stored in the forwarding mailbox, the following events are recorded in the /var/log/maillog log:
Jun 2 10:50:51 relay postfix/10025/smtpd[43894]: connect from host.mydomain.com[127.0. 0.1]
Jun 2 10:50:51 relay postfix/10025/smtpd[43894]: 80BA87C91B: client=host.mydomain.com[127.0.0.1]
Jun 2 10:50:51 relay postfix/cleanup[43896]: 80BA87C91B: message-id=
Jun 2 10:50:51 relay postfix/10025/smtpd[44007]: connect from host.mydomain.com[127.0.0.1]
Jun 2 10:50:51 relay postfix/10025/smtpd[44007]: 922F97C91C: client=host.mydomain.com[127.0.0.1]
Jun 2 10:50:51 relay postfix/qmgr[11920]: 80BA87C91B: from=, size=1781, nrcpt=1 (queue active)
Jun 2 10:50:51 relay postfix/10025/smtpd[43894]: disconnect from host.mydomain.com[127.0.0.1]
Jun 2 10:50:51 relay postfix/cleanup[43884]: 922F97C91C: message-id=
Jun 2 10:50:51 relay amavis[42726]: (42726-16) Passed CLEAN {RelayedInternal}, MYNETS LOCAL [192.168.100.99]:53389 -> , Queue-ID: 3C2797C91A, Message-ID: , mail_id: J4eJG3toE1_j , Hits: -, size: 1275, queued_as: 80BA87C91B, 266 ms
Jun 2 10:50:51 relay postfix/smtp-amavis/smtp[43936]: 3C2797C91A: to=, relay=127.0.0.1[127.0.0.1]: 10024, delay=0.45, delays=0.13/0/0.01/0.31, 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 80BA87C91B)
Jun 2 10:50:51 relay postfix/10025/smtpd[44007]: disconnect from host.mydomain.com[127.0.0.1]
Jun 2 10:50:51 relay postfix/qmgr[11920]: 922F97C91C: from=, size=1793, nrcpt=1 (queue active)
Jun 2 10:50:51 relay amavis[42703]: (42703-15) Passed CLEAN {RelayedInternal}, MYNETS LOCAL [192.168.100.99]:53389 -> , Queue-ID: 3C2797C91A, Message-ID: , mail_id: 0YLgWnii95xu, Hits: -, size: 1275, queued_as: 922F97C91C, 354 ms
Jun 2 10: 50:51 relay postfix/smtp-amavis/smtp[44003]: 3C2797C91A: to=, relay=127.0.0.1[127.0.0.1]:10024, delay=0.57, delays=0.13/0.04/0.01/0.4, 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 922F97C91C)
Jun 2 10:50:51 relay postfix/qmgr[11920]: 3C2797C91A: removed
Jun 2 10:50:51 relay postfix/smtp[44008]: Untrusted TLS connection established to MYDOMAIN.com[192.168.100.99]:25: TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)
Jun 2 10 :50:51 relay postfix/smtp[44008]: 80BA87C91B: to=, relay=MYDOMAIN.com[192.168.100.99]:25, delay=0.32, delays=0.08/0.04/0.19/0.01, dsn=5.7.1, status=bounced (host MYDOMAIN.com[192.168.100.99] said:
530 id=<[email protected]>
Jun 2 10:50:52 relay postfix/qmgr[11920]: ED26E7C91A: from=<>, size=3923, nrcpt=1 (queue active)
Jun 2 10: 50:52 relay postfix/bounce[44010]: 80BA87C91B: sender non-delivery notification: ED26E7C91A
Jun 2 10:50:52 relay postfix/qmgr[11920]: 80BA87C91B: removed
Jun 2 10:50:52 relay postfix/pipe[43898]: 922F97C91C: to=, relay=dovecot, delay=0.47, delays=0.13/ 0.01/0/0.33, dsn=2.0.0, status=sent (delivered via dovecot service)
Jun 2 10:50:52 relay postfix/qmgr[11920]: 922F97C91C: removed
Jun 2 10:50:52 relay postfix/smtp [44008]: Untrusted TLS connection established to MYDOMAIN.com[192.168.100.99]:25: TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)
Jun 2 10:50:52 relay postfix/smtp[44008] : ED26E7C91A: to=, relay=MYDOMAIN.com[192.168.100.99]:25, delay=0.31, delays=0.07/0.01/0.19/0.04, dsn=2.0.0, status=sent (250 2.0.0 Message accepted for delivery (4086 octets. id: FC167DCC80F3477C962C12629E9CFBF1)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey K, 2018-10-19
@AndreyVKo

In order for everything to work, you need to change the domain1.com settings In the message header, the server sees the sender, sees that he is his, that is, from domain1.com and therefore requires authorization. Is there an error "Recipient address rejected: Policy rejection not logged in" ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question