Topic: In some cases Postfix connect to a wrong MX server
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.8
- Linux/BSD distribution name and version: FreeBSD 11.2-RELEASE
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro? no
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Aug 29 11:16:44 mail postfix/submission/smtpd[51944]: connect from localhost[127.0.0.1]
Aug 29 11:16:44 mail postfix/submission/smtpd[51944]: Anonymous TLS connection established from localhost[127.0.0.1]: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
Aug 29 11:16:44 mail postfix/submission/smtpd[51944]: A63FC4842B2: client=localhost[127.0.0.1], sasl_method=LOGIN, sasl_username=admin@mydomain.com
Aug 29 11:16:44 mail postfix/cleanup[23687]: A63FC4842B2: message-id=<10596323b12d42bb4f84513336dc1d28@mydomain.com>
Aug 29 11:16:44 mail postfix/qmgr[49472]: A63FC4842B2: from=<admin@mydomain.com>, size=511, nrcpt=1 (queue active)
Aug 29 11:16:44 mail roundcube: <15fpqtfi> User admin@mydomain.com [XXX.XXX.XXX.XXX]; Message for tomailbox@gmail.com; 250: 2.0.0 Ok: queued as A63FC4842B2
Aug 29 11:16:44 mail postfix/submission/smtpd[51944]: disconnect from localhost[127.0.0.1] ehlo=2 starttls=1 auth=1 mail=1 rcpt=1 data=1 quit=1 commands=8
Aug 29 11:16:54 mail postfix/10025/smtpd[28383]: connect from localhost[127.0.0.1]
Aug 29 11:16:54 mail postfix/10025/smtpd[28383]: 8BD7C4842B3: client=localhost[127.0.0.1]
Aug 29 11:16:54 mail postfix/cleanup[23687]: 8BD7C4842B3: message-id=<10596323b12d42bb4f84513336dc1d28@mydomain.com>
Aug 29 11:16:54 mail postfix/10025/smtpd[28383]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Aug 29 11:16:54 mail postfix/qmgr[49472]: 8BD7C4842B3: from=<admin@mydomain.com>, size=1796, nrcpt=1 (queue active)
Aug 29 11:16:54 mail amavis[64675]: (64675-18) Passed CLEAN {RelayedInternal}, ORIGINATING/MYNETS LOCAL [127.0.0.1]:12543 <admin@mydomain.com> -> <tomailbox@gmail.com>, Queue-ID: A63FC4842B2, Message-ID: <10596323b12d42bb4f84513336dc1d28@mydomain.com>, mail_id: vbvD9xqEANot, Hits: 2.198, size: 511, queued_as: 8BD7C4842B3, dkim_new=dkim:mydomain.com, 9788 ms, Tests: [ALL_TRUSTED=-1,PYZOR_CHECK=1.985,TVD_RCVD_SINGLE=1.213]
Aug 29 11:16:54 mail amavis[64675]: (64675-18) Passed CLEAN, <admin@mydomain.com> -> <tomailbox@gmail.com>, Hits: 2.198, tag=2, tag2=6.2, kill=6.9, queued_as: 8BD7C4842B3, L/Y/0/0
Aug 29 11:16:54 mail postfix/amavis/smtp[23973]: A63FC4842B2: to=<tomailbox@gmail.com>, relay=127.0.0.1[127.0.0.1]:10026, delay=10, delays=0.21/0/0/9.8, 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 8BD7C4842B3)
Aug 29 11:16:54 mail postfix/qmgr[49472]: A63FC4842B2: removed
Aug 29 11:16:55 mail postfix/smtp[62417]: Untrusted TLS connection established to mx1.WRONGMX.net[XXX.XXX.XXX.XXX]:25: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
Aug 29 11:16:55 mail postfix/smtp[62417]: 8BD7C4842B3: to=<tomailbox@gmail.com>, relay=mx1.WRONGMX.net[XXX.XXX.XXX.XXX]:25, delay=0.86, delays=0/0.01/0.66/0.19, dsn=5.0.0, status=bounced (host mx1.WRONGMX.net[XXX.XXX.XXX.XXX] said: 550-46.1 mx1.WRONGMX.net is not primary MX for gmail.com or not using SMTP 550 AUTH. (in reply to RCPT TO command))
Aug 29 11:16:55 mail postfix/cleanup[23687]: 692794842B5: message-id=<20180829081655.692794842B5@mail.mydomain.com>
Aug 29 11:16:55 mail postfix/bounce[62935]: 8BD7C4842B3: sender non-delivery notification: 692794842B5
Aug 29 11:16:55 mail postfix/qmgr[49472]: 692794842B5: from=<>, size=3847, nrcpt=1 (queue active)
Aug 29 11:16:55 mail postfix/qmgr[49472]: 8BD7C4842B3: removed
Aug 29 11:16:55 mail postfix/pipe[30193]: 692794842B5: to=<admin@mydomain.com>, relay=dovecot, delay=0.02, delays=0/0/0/0.02, dsn=2.0.0, status=sent (delivered via dovecot service)
Aug 29 11:16:55 mail postfix/qmgr[49472]: 692794842B5: removed
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.