1 (edited by tony_ph 2018-02-11 14:05:06)

Topic: 2 on 3 domains bounce my email

==== Required information ====
- iRedMail version: 0.9.7 MARIADB edition.
- Linux/BSD distribution name and version: Centos 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MYSQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? NO
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

I got this error when i try to send email from any@mydomain1{ or 2 or 3}.com to any@mydomain4.com or any@mydomain5.com
but work fine if i send to any@mydomain6.com.

I have 2 servers identical centos 7, iredmail 0.9.7 mariadb apache no pro.
But i think is important i tell what i've  done to let you help me.

******************************************************************************
STORYLINE
******************************************************************************
2 days ago i had only 1 Server hosting 1iredmail installation with all 6 domains hostname: mail.mydomain1.com:
@mydomain1,2,3,4,5,6 with only 1 webmail access:
mail.mydomain1.com{/mail}{/iredadmin} and everything work fine.

For internal issue, company ask me to split domains1,2,3 on a server and 4,5,6 on another,
here the steps i follow:
1. so yesterday i bought a new server and install again iredmail
2. now i have Server1 where i changed hostname into mail.mydomain2.com because before use mail.mydomain1.com but i
     need it on the new server.
3. set server 2 hostname: mail.mydomain1.com, this because mydomain1 have only 3 @domains small so i move less data.
4. i backup the whole DB from server 1 and restore in server 2 but not mysql and not amavisd,
5. i uninstall awstats on server 1, note i didnt install on server 2, cause i saw it and i didnt liked.
6. i copy the related 3 folders in /var/vmail/vmail1/domain1,2,3 from server 1 to server 2
7. i delete domains 1,2,3 from iredadmin on server 1
8. i delete domains 4,5,6 from iredadmin on server 2 cause it was imported all togheter.
9. i regenerate the amavisd keys for server 2 i use only 1 mail.mydomain1.com
10. on server 1 i generate 3 cause they want to access via: mail.mydomain4.com, mail.mydomain5.com,
      mail.mydomain6.com
11. i edited DNS mail ip and dkim for domains 4,5,6.
12. i edit DNS and dkim for domains 1,2,3 all ip point to same and all dkim use mydomain1, cause i have only 1 amavisd
      key.
13. i regenerate SSL letsencrypt for server 1 for mydomain4,5,6 and i delete the previous cause it was mydomain1.
14. i generate new SSL letsencrypt for server2 with only mydomain1
15. tested all keys with amavisd on both servers and all >pass
16. tested all SSL via www.ssllabs.com i got A for all

and the bug is if i try to send a mail msg from any@mydomain1,2,3  (on new server 2)
to
any@mydomain4,5  (on old server 1)  it give the following error
but
work fine from any@mydomain1,2,3 >>> TO >>> any@mydomain6
i tried to remove  "greylisting", "amavisd_wblist" from
/opt/iredapd/settings.py on both servers but nothing change.

*******************************************************************************
This is the email i receive after i try to send:
*******************************************************************************
This is the mail system at host mail.mydomain1.com.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                   The mail system

<tony@mydomain4.com>: mail for mydomain4.com loops back to myself

Reporting-MTA: dns; mail.mydomain1.com
X-Postfix-Queue-ID: 9AAC5127DA7
X-Postfix-Sender: rfc822; tony@mydomain1.com
Arrival-Date: Sun, 11 Feb 2018 13:10:30 +0800 (+08)

Final-Recipient: rfc822; tony@mydomain4.com
Original-Recipient: rfc822;tony@mydomain4.com
Action: failed
Status: 5.4.6
Diagnostic-Code: X-Postfix; mail for mydomain4.com loops back to myself

****************************************************
Log error from /var/log/maillog:
****************************************************
Feb 11 13:22:54 mail postfix/submission/smtpd[26545]: connect from unknown[203.177.144.16]
Feb 11 13:22:54 mail postfix/submission/smtpd[26545]: Anonymous TLS connection established from unknown[203.177.144.16]: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
Feb 11 13:22:55 mail postfix/submission/smtpd[26545]: 0BAFE127DA7: client=unknown[203.177.144.16], sasl_method=PLAIN, sasl_username=tony@mydomain1.com
Feb 11 13:22:55 mail postfix/cleanup[26572]: 0BAFE127DA7: message-id=<772f55b0-b237-5da0-0286-bf785bba1eef@mydomain1.com>
Feb 11 13:22:55 mail postfix/qmgr[3360]: 0BAFE127DA7: from=<tony@mydomain1.com>, size=616, nrcpt=1 (queue active)
Feb 11 13:22:55 mail postfix/submission/smtpd[26545]: disconnect from unknown[203.177.144.16]
Feb 11 13:22:55 mail postfix/10025/smtpd[26580]: connect from localhost[127.0.0.1]
Feb 11 13:22:55 mail postfix/10025/smtpd[26580]: D66B2127DB1: client=localhost[127.0.0.1]
Feb 11 13:22:55 mail postfix/cleanup[26572]: D66B2127DB1: message-id=<772f55b0-b237-5da0-0286-bf785bba1eef@mydomain1.com>
Feb 11 13:22:55 mail postfix/qmgr[3360]: D66B2127DB1: from=<tony@mydomain1.com>, size=1753, nrcpt=1 (queue active)
Feb 11 13:22:55 mail postfix/10025/smtpd[26580]: disconnect from localhost[127.0.0.1]
Feb 11 13:22:55 mail amavis[12910]: (12910-20) Passed CLEAN {RelayedInternal}, ORIGINATING LOCAL [203.177.144.16]:50029 [203.177.144.16] <tony@mydomain1.com> -> <tony@mydomain4.com>, Queue-ID: 0BAFE127DA7, Message-ID: <772f55b0-b237-5da0-0286-bf785bba1eef@mydomain1.com>, mail_id: X5g3Dcm7mZca, Hits: -1, size: 616, queued_as: D66B2127DB1, dkim_new=dkim:mydomain1.com, 749 ms, Tests: [ALL_TRUSTED=-1]
Feb 11 13:22:55 mail postfix/amavis/smtp[26577]: 0BAFE127DA7: to=<tony@mydomain4.com>, relay=127.0.0.1[127.0.0.1]:10026, delay=1.1, delays=0.33/0/0.01/0.75, 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 D66B2127DB1)
Feb 11 13:22:55 mail postfix/qmgr[3360]: 0BAFE127DA7: removed
Feb 11 13:22:55 mail postfix/smtp[26581]: D66B2127DB1: to=<tony@mydomain4.com>, relay=none, delay=0.09, delays=0.01/0/0.08/0, dsn=5.4.6, status=bounced (mail for mydomain4.com loops back to myself)
Feb 11 13:22:55 mail postfix/cleanup[26572]: EF125127DA7: message-id=<20180211052255.EF125127DA7@mail.mydomain1.com>
Feb 11 13:22:55 mail postfix/bounce[26617]: D66B2127DB1: sender non-delivery notification: EF125127DA7
Feb 11 13:22:55 mail postfix/qmgr[3360]: EF125127DA7: from=<>, size=3693, nrcpt=1 (queue active)
Feb 11 13:22:55 mail postfix/qmgr[3360]: D66B2127DB1: removed
Feb 11 13:22:56 mail postfix/pipe[26618]: EF125127DA7: to=<tony@mydomain1.com>, relay=dovecot, delay=0.05, delays=0/0.02/0/0.03, dsn=2.0.0, status=sent (delivered via dovecot service)
Feb 11 13:22:56 mail postfix/qmgr[3360]: EF125127DA7: removed

I hope i explain clearly and i hope someone can help me.
Tnx

----

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