1

Topic: forwarded mail being rejected by external smtp

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):  1.8.0
- Deployed with iRedMail Easy or the downloadable installer? easy
- Linux/BSD distribution name and version:  ubuntu
- 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.
====

mail works great, I can send mail out while using any client

The issue I run into is once I set up a forward, or even try to use mlmmj. my external smtp relay rejects the emails saying


aid: 535 Authorization failed: Envelope From address <update+bounces-7-someemail=gmail.com@m.mine.xyz> not authorized (in reply to MAIL FROM command))

I use oracles smtp if that helps,  Let me know if you would like me to provide any specific log

----

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

2

Re: forwarded mail being rejected by external smtp

Please show us the FULL Postfix log lines related to this issue.

3

Re: forwarded mail being rejected by external smtp

root@mx:/var/log# tail mail.log
Nov 14 03:41:45 mx postfix/pipe[899514]: 4N9ZqY1TxHz46Kt: to=<update+bounces-8-cell=gmail.com@m.mine.xyz>, relay=mlmmj, delay=0.02, delays=0.01/0/0/0.01, dsn=2.0.0, status=sent (delivered via mlmmj service)
Nov 14 03:41:45 mx postfix/qmgr[642852]: 4N9ZqY1TxHz46Kt: removed
Nov 14 03:41:45 mx postfix/smtp[899554]: 4N9ZqX6Xmtz46Kv: to=<test-no380rdk1@srv1.mail-tester.com>, relay=smtp.email.us-phoenix-1.oci.oraclecloud.com[147.154.100.67]:587, delay=0.33, delays=0.01/0.02/0.2/0.1, dsn=5.0.0, status=bounced (host smtp.email.us-phoenix-1.oci.oraclecloud.com[147.154.100.67] said: 535 Authorization failed: Envelope From address <update+bounces-8-test-no380rdk1=srv1.mail-tester.com@m.mine.xyz> not authorized (in reply to MAIL FROM command))
Nov 14 03:41:45 mx postfix/cleanup[899508]: 4N9ZqY23jLz46Kt: message-id=<4N9ZqY23jLz46Kt@mx.frost.com>
Nov 14 03:41:45 mx postfix/qmgr[642852]: 4N9ZqY23jLz46Kt: from=<>, size=7369, nrcpt=1 (queue active)
Nov 14 03:41:45 mx postfix/bounce[899532]: 4N9ZqX6Xmtz46Kv: sender non-delivery notification: 4N9ZqY23jLz46Kt
Nov 14 03:41:45 mx postfix/qmgr[642852]: 4N9ZqX6Xmtz46Kv: removed


that should be all of it

now if i send an email directly to the same email without using the mailinglist it work

4

Re: forwarded mail being rejected by external smtp

eidde wrote:

Nov 14 03:41:45 mx postfix/smtp[899554]: 4N9ZqX6Xmtz46Kv: to=<test-no380rdk1@srv1.mail-tester.com>, relay=smtp.email.us-phoenix-1.oci.oraclecloud.com[147.154.100.67]:587, delay=0.33, delays=0.01/0.02/0.2/0.1, dsn=5.0.0, status=bounced (host smtp.email.us-phoenix-1.oci.oraclecloud.com[147.154.100.67] said: 535 Authorization failed: Envelope From address <update+bounces-8-test-no380rdk1=srv1.mail-tester.com@m.mine.xyz> not authorized (in reply to MAIL FROM command))

It says "not authorized", seems you have some kind of access control and rejected it?

5

Re: forwarded mail being rejected by external smtp

ZhangHuangbin wrote:
eidde wrote:

Nov 14 03:41:45 mx postfix/smtp[899554]: 4N9ZqX6Xmtz46Kv: to=<test-no380rdk1@srv1.mail-tester.com>, relay=smtp.email.us-phoenix-1.oci.oraclecloud.com[147.154.100.67]:587, delay=0.33, delays=0.01/0.02/0.2/0.1, dsn=5.0.0, status=bounced (host smtp.email.us-phoenix-1.oci.oraclecloud.com[147.154.100.67] said: 535 Authorization failed: Envelope From address <update+bounces-8-test-no380rdk1=srv1.mail-tester.com@m.mine.xyz> not authorized (in reply to MAIL FROM command))

It says "not authorized", seems you have some kind of access control and rejected it?


yes, the server is changing the from address to the bounce address which is causing it to fail to authorize, it only does this on forwarding an email or the mailing list. How can I disable this since my external smtp does this automatically