Topic: domain relay not working, user relay working
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9 PGSQL edition.
- Deployed with iRedMail Easy or the downloadable installer? Downloadable installer
- Linux/BSD distribution name and version: CentOS Linux release 7.7.1908 (Core)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hi,
we are experiencing an issue with relay settings.
We need to relay all emails of the domain we are using to office 365, so they are not sent internally
Using the global relay (account/domains -> click on domain name -> relay) it does not work.
the relay setup is---> smtp:mydomain-tld.mail.protection.outlook.com:25
the log show
postfix/submission/smtpd[129721]: connect from unknown[IP]
postfix/submission/smtpd[129721]: Anonymous TLS connection established from unknown[IP]: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
postfix/submission/smtpd[129721]: warning: unknown[IP]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
Npostfix/submission/smtpd[129721]: lost connection after AUTH from unknown[IP]
postfix/submission/smtpd[129721]: disconnect from unknown[IP]
Using the single user account relay works:
the log show:
postfix/submission/smtpd[129874]: connect from unknown[IP]
postfix/submission/smtpd[129874]: Anonymous TLS connection established from unknown[IP]: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
postfix/submission/smtpd[129874]: 47GrT60Lv1z7Tm6K: client=unknown[IP], sasl_method=LOGIN, sasl_username=noreply@mydomain.tld
postfix/cleanup[129889]: 47GrT60Lv1z7Tm6K: message-id=<hidjQDfPX3P9qXUjm2iC0080aMVHqumb4I1IU35TkY@myclient.tld>
postfix/qmgr[38234]: 47GrT60Lv1z7Tm6K: from=<noreply@mydomain.tld>, size=1212, nrcpt=1 (queue active)
postfix/submission/smtpd[129874]: disconnect from unknown[IP]
postfix/10025/smtpd[129898]: connect from localhost[127.0.0.1]
postfix/10025/smtpd[129898]: 47GrT64RHCz7Tm6N: client=localhost[127.0.0.1]
postfix/cleanup[129889]: 47GrT64RHCz7Tm6N: message-id=<hidjQDfPX3P9qXUjm2iC0080aMVHqumb4I1IU35TkY@myclient.tld>
postfix/qmgr[38234]: 47GrT64RHCz7Tm6N: from=<noreply@mydomain.tld>, size=2378, nrcpt=1 (queue active)
postfix/10025/smtpd[129898]: disconnect from localhost[127.0.0.1]
amavis[123614]: (123614-01) Passed CLEAN {RelayedInternal}, ORIGINATING LOCAL [IP]:37036 [IP] <noreply@mydomain.tld> -> <testaccount@mydomain.tld>, Queue-ID: 47GrT60Lv1z7Tm6K, Message-ID: <hidjQDfPX3P9qXUjm2iC0080aMVHqumb4I1IU35TkY@myclient.tld>, mail_id: oICWg_SaI2Kp, Hits: -0.999, size: 1250, queued_as: 47GrT64RHCz7Tm6N, dkim_new=dkim:trustsvr.com, 521 ms, Tests: [ALL_TRUSTED=-1,HTML_MESSAGE=0.001]
amavis[123614]: (123614-01) Passed CLEAN, <noreply@mydomain.tld> -> <testaccount@mydomain.tld>, Hits: -0.999, tag=2, tag2=6.2, kill=6.9, queued_as: 47GrT64RHCz7Tm6N, L/0/0/0
postfix/amavis/smtp[129894]: 47GrT60Lv1z7Tm6K: to=<testaccount@mydomain.tld>, relay=127.0.0.1[127.0.0.1]:10026, delay=0.66, delays=0.12/0.01/0.01/0.52, 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 47GrT64RHCz7Tm6N)
postfix/qmgr[38234]: 47GrT60Lv1z7Tm6K: removed
postfix/smtp[129899]: Untrusted TLS connection established to mydomain-tld.mail.protection.outlook.com[104.47.10.36]:25: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
postfix/smtp[129899]: 47GrT64RHCz7Tm6N: to=<testaccount@mydomain.tld>, relay=mydomain-tld.mail.protection.outlook.com[104.47.10.36]:25, delay=1.7, delays=0.01/0.01/0.68/1, dsn=2.6.0, status=sent (250 2.6.0 <hidjQDfPX3P9qXUjm2iC0080aMVHqumb4I1IU35TkY@myclient.tld> [InternalId=1894080578723, Hostname=AM6PR02MB5560.eurprd02.prod.outlook.com] 11321 bytes in 0.293, 37.689 KB/sec Queued mail for delivery)
postfix/qmgr[38234]: 47GrT64RHCz7Tm6N: removed
the system used to send the email is the same for both test.
I think that if it works per user it should work globally.
Thanks for your support.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.