[Postfix] : Message Queue Delay
Raggajohnjohn
Posted messages
8
Status
Membre
-
Raggajohnjohn Posted messages 8 Status Membre -
Raggajohnjohn Posted messages 8 Status Membre -
Mail delivery system , PostmasterCopy : Undelivered mail
Hello everyone.
I am having a problem with my postfix.
Indeed, there is a correspondence between postmaster & root and I have made one between root and my user "john".
This means that all emails directed to root and postmaster go to john's box, so far so good.
The problem is that when an email that attempted to be sent fails to be sent (e.g., spammers trying during hours!!), this email is placed in the "message queue".
And in this "queue", it attempts to resend the emails that could not be sent before in a loop.
The issue is that the resend rate is way too immediate, which leads to a sequence like:
1° An email is attempted to be sent => it doesn't work, so a warning "Mail delivery system , PostmasterCopy : Undelivered mail" is sent to postmaster, and this same email is forwarded to john's box.
2° The unsent message is placed in the queue where it is instantly resent, triggering another copy of the error email to postmaster and so on.
Thus from Monday night to Tuesday morning I have more than 23,000 emails in my "john" box, which is unmanageable.
I have several dozen warning emails for non-delivery for the same sender/recipient within a minute...
There is a solution that isn’t a solution, which is to specify the type of error we want to send to postmaster (I partially use Webmin for configuration), so we can disable them but that doesn't interest me.
Also, I would like to know what parameter to add/modify to inform postfix that an email that could not be sent should be placed in the message queue and that a duration of 5 minutes, let’s say, passes before a new sending attempt.
Thank you very much!
Hello everyone.
I am having a problem with my postfix.
Indeed, there is a correspondence between postmaster & root and I have made one between root and my user "john".
This means that all emails directed to root and postmaster go to john's box, so far so good.
The problem is that when an email that attempted to be sent fails to be sent (e.g., spammers trying during hours!!), this email is placed in the "message queue".
And in this "queue", it attempts to resend the emails that could not be sent before in a loop.
The issue is that the resend rate is way too immediate, which leads to a sequence like:
1° An email is attempted to be sent => it doesn't work, so a warning "Mail delivery system , PostmasterCopy : Undelivered mail" is sent to postmaster, and this same email is forwarded to john's box.
2° The unsent message is placed in the queue where it is instantly resent, triggering another copy of the error email to postmaster and so on.
Thus from Monday night to Tuesday morning I have more than 23,000 emails in my "john" box, which is unmanageable.
I have several dozen warning emails for non-delivery for the same sender/recipient within a minute...
There is a solution that isn’t a solution, which is to specify the type of error we want to send to postmaster (I partially use Webmin for configuration), so we can disable them but that doesn't interest me.
Also, I would like to know what parameter to add/modify to inform postfix that an email that could not be sent should be placed in the message queue and that a duration of 5 minutes, let’s say, passes before a new sending attempt.
Thank you very much!