Topic: banned email not returned to sender with "user unknown"
==== Required information ====
- iRedMail version (check /etc/iredmail-release): v0.9.6
- Linux/BSD distribution name and version: debian 8.8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Web server (Apache or Nginx): apache
- Manage mail accounts with iRedAdmin-Pro? yes v2.6.0 (MySQL)
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
If have configured amavis to inform the sender if his email is banned.
Then sender sends the email, using one of his alias, postfix is unable to inform him of the banned email, because somehow the alias is not recognized.
Jun 2 13:36:22 mail postfix/submission/smtpd[31970]: connect from client.gr [XXXXXXXXX]
Jun 2 13:36:22 mail postfix/submission/smtpd[31970]: Anonymous TLS connection established from client.gr [XXXXXXXXX]: TLSv1.2 with cipher XXX-RSA-XX-GCM-XXX (128/128 bits)
Jun 2 13:36:22 mail postfix/submission/smtpd[31970]: C27C21CC0076: client=client.gr [XXXXXXXXX], sasl_method=PLAIN, sasl_username=full.name@myserver.gr
Jun 2 13:36:22 mail postfix/cleanup[29877]: C27C21CC0076: message-id=<d10c14d5-e755-f08a-6b25-5296a3116000@myserver.gr>
Jun 2 13:36:22 mail postfix/qmgr[29796]: C27C21CC0076: from=<alias.for-full.name@myserver.gr>, size=13114, nrcpt=1 (queue active)
Jun 2 13:36:22 mail amavis[30397]: (!)loading policy bank "ORIGINATING": unknown field "warnbannedrecip"
Jun 2 13:36:22 mail amavis[30397]: (30397-08) (!)loading policy bank "MYNETS": unknown field "warnbannedrecip"
Jun 2 13:36:22 mail postfix/submission/smtpd[31970]: disconnect from client.gr [XXXXXXXXX]
Jun 2 13:36:23 mail postfix/10025/smtpd[31679]: 06BDD1CC0078: client=localhost[127.0.0.1]
Jun 2 13:36:23 mail postfix/cleanup[30599]: 06BDD1CC0078: message-id=<VAtPIILRLmi7-P@mail.myserver.gr>
Jun 2 13:36:23 mail postfix/qmgr[29796]: 06BDD1CC0078: from=<postmaster@myserver.gr>, size=2861, nrcpt=1 (queue active)
Jun 2 13:36:23 mail postfix/10025/smtpd[31679]: disconnect from localhost[127.0.0.1]
Jun 2 13:36:23 mail postfix/10025/smtpd[31660]: connect from localhost[127.0.0.1]
Jun 2 13:36:23 mail postfix/10025/smtpd[31660]: 109DC1CC0079: client=localhost[127.0.0.1]
Jun 2 13:36:23 mail postfix/pipe[31620]: 06BDD1CC0078: to=<postmaster@myserver.gr>, relay=dovecot, delay=0.05, delays=0.01/0/0/0.04, dsn=2.0.0, status=sent (delivered via dovecot service)
Jun 2 13:36:23 mail postfix/qmgr[29796]: 06BDD1CC0078: removed
Jun 2 13:36:23 mail postfix/cleanup[29877]: 109DC1CC0079: message-id=<VStPIILRLmi7-P@mail.myserver.gr>
Jun 2 13:36:23 mail postfix/10025/smtpd[31660]: disconnect from localhost[127.0.0.1]
Jun 2 13:36:23 mail postfix/qmgr[29796]: 109DC1CC0079: from=<>, size=4576, nrcpt=1 (queue active)
Jun 2 13:36:23 mail amavis[30397]: (30397-08) Blocked BANNED (text/plain,.exe,game.py) {BouncedInternal}, ORIGINATING/MYNETS LOCAL [147.102.5.180]:14578 [147.102.5.180] <alias.for-full.name@myserver.gr> -> , Queue-ID: C27C21CC0076, Message-ID: <d10c14d5-e755-f08a-6b25-5296a3116000@myserver.gr>, mail_id: tPIILRLmi7-P, Hits: -, size: 13114, 281 ms
Jun 2 13:36:23 mail postfix/smtp-amavis/smtp[31647]: C27C21CC0076: to=<recipient-of-mail@myserver.gr>, relay=127.0.0.1[127.0.0.1]:10026, delay=0.32, delays=0.02/0/0.01/0.29, dsn=2.5.0, status=sent (250 2.5.0 Ok, id=30397-08, BOUNCE)
Jun 2 13:36:23 mail postfix/qmgr[29796]: C27C21CC0076: removed
Jun 2 13:36:23 mail postfix/pipe[31620]: 109DC1CC0079: to=<alias.for-full.name@myserver.gr>, relay=dovecot, delay=0.05, delays=0.01/0/0/0.04, dsn=5.1.1, status=bounced (user unknown)
Jun 2 13:36:23 mail postfix/qmgr[29796]: 109DC1CC0079: removed
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.