Control Web Panel

WebPanel => Postfix => Topic started by: danilo on May 13, 2016, 10:08:06 PM

Title: Emails are staying in postfix queue
Post by: danilo on May 13, 2016, 10:08:06 PM
Hi, my php script is using php mail () function to send notifications, verifications, newsletters and more...
I have a php script which is run in a special time and it is sending the newsletter to around 400 addresses every day. once a week it is sending a newsletter to 8000 addresses.
problem is appearing after this weekly newsletter, some messages around 3-4000 is staying in the postfix queue. and because of that all the other emails (notifications, verifications, password reset) are not arrive, or arrive late, which is bad for my site functionality.

Only when I delete the queue, everything continues to function normally , until the next weekly newsletter.

Do you have any ideas what can be the cause of this problem?
Title: Re: Emails are staying in postfix queue
Post by: Jae on May 13, 2016, 11:04:21 PM
from queue manager, you can find reason for every sinngle mail being deffered...  post it here
Title: Re: Emails are staying in postfix queue
Post by: Sandeep on May 14, 2016, 04:39:34 AM
jae was right without log how the members will help you.
Title: Re: Emails are staying in postfix queue
Post by: danilo on May 16, 2016, 10:27:38 PM
These errors occur:

(http://s32.postimg.org/801vztdch/imagezjea.jpg) (http://postimg.org/image/801vztdch/)

(http://s19.postimg.org/4o0ik5yy7/asdasd.jpg) (http://postimg.org/image/4o0ik5yy7/)

Support told me to add relayhost= 109.201... to main.cf.
Title: Re: Emails are staying in postfix queue
Post by: Jae on May 17, 2016, 03:35:09 AM
Follow this link http://steam.io/2013/04/01/postfix-rate-limiting/

you must limit sending email to yahoo, hotmail and google groups, including any domain hosted to them...
Title: Re: Emails are staying in postfix queue
Post by: danilo on May 18, 2016, 02:10:51 PM
I added these lines to main.cf

Code: [Select]
smtp_destination_concurrency_limit = 2
smtp_destination_rate_delay = 1s
smtp_extra_recipient_limit = 10

Is this ok?
Now i have errors:
(http://s32.postimg.org/swximzldx/errar.png)
and
(http://s32.postimg.org/9amzwtxxh/errar1.png)

when i restart postfix it send 20-30 mails and then stops and shows these errors.
Sorry for bad english.