1 (edited by Tony-admincujae 2016-11-24 22:23:51)

Topic: Deferred messages notifications to users

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: Ubuntu 14.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP using AD
- Web server (Apache or Nginx):Apache
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====

Since I install the Iredmail server I'm having the issue that the emails that any users sends and gets bounced for any reason (the recipient doesn't exist for example) are being notified to the senders multiple times (every time that the email, wich is in the deferred queue, is  sent again). I would like that this only happens one time. What option of postfix should I try?? Any ideas??

Best regards

----

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

2 (edited by Tony-admincujae 2016-11-25 00:10:57)

Re: Deferred messages notifications to users

Anybody?? Let me try to explain it again.

When a user sends an email  to a recipient that doesn't exists (local or remote recipient) postfix does what it's supossed to do: takes that email and put's it on the deferred queue, and notifies the sender that tha email couldn't be sended (an email like: "Undelivered Mail Returned to Sender" and the reason why the emai wasn't delivered). So far so good.

The problem comes when the queue manager scans deferred queue and tries to send that email again. Every time that this happens a new email like "Undelivered Mail Returned to Sender" is sent to the user again.

Why this happens? How do I change it? I think that the correct way would be that the user only gets 1 notification, even if the queue manager fails to deliver the email a second or third or infinite times before the email is deleted from the queue permanently.

Ideas??

3

Re: Deferred messages notifications to users

Please show us full mail body of this "Undelivered Mail Returned to Sender" email. We need the technical info in this email for troubleshooting.

4

Re: Deferred messages notifications to users

ZhangHuangbin wrote:

Please show us full mail body of this "Undelivered Mail Returned to Sender" email. We need the technical info in this email for troubleshooting.

Ok, here's the mail. Please note that I purposely sent it to an address that didn't exist and I received multiple copies of it until I decided to delete the mail from the queue using webmin.

This is the mail system at host myserver.mydomain.co.cu.

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

<tonydiaz1231231231312@gmail.com>: host
    gmail-smtp-in.l.google.com[74.125.70.26] said: 550-5.1.1 The email account
    that you tried to reach does not exist. Please try 550-5.1.1
    double-checking the recipient's email address for typos or 550-5.1.1
    unnecessary spaces. Learn more at 550 5.1.1
    https://support.google.com/mail/?p=NoSuchUser c133si3287182itc.1 - gsmtp
    (in reply to RCPT TO command)
Reporting-MTA: dns; myserver.mydomain.co.cu
X-Postfix-Queue-ID: 2BEE6340D7D
X-Postfix-Sender: rfc822; tony@mydomain.co.cu
Arrival-Date: Wed, 23 Nov 2016 20:11:43 +0000 (UTC)

Final-Recipient: rfc822; tonydiaz1231231231312@gmail.com
Original-Recipient: rfc822;tonydiaz1231231231312@gmail.com
Action: failed
Status: 5.1.1
Remote-MTA: dns; gmail-smtp-in.l.google.com
Diagnostic-Code: smtp; 550-5.1.1 The email account that you tried to reach does
    not exist. Please try 550-5.1.1 double-checking the recipient's email
    address for typos or 550-5.1.1 unnecessary spaces. Learn more at 550 5.1.1
    https://support.google.com/mail/?p=NoSuchUser c133si3287182itc.1 - gsmtp
Subject     Test
From     Tony Alvarez <tony@mydomain.co.cu>
To     tonydiaz1231231231312@gmail.com
Date     Wed 15:11
This is a test

--