my postfix mailqueue fills up and i cannot flush the mails. Normal mails work via Outlook etc, but mails generated from system like newsletter or other webbased software keep hanging forever. I am pretty sure, it is some Postfix setting, but i can’t see it.
Any idea, which setting this might be and how i can fix it?
Many servers will begin issuing temporary email rejections after receiving so many from your server. It’ll take a few hours before those start flowing again, but if there’s enough of them, it could end up taking quite awhile for them all to go through.
How many emails are currently in your queue?
And what error are you seeing next to your messages when running the command “mailq”?
around 19k are serverintern mails, so from a webservice to me to inform about updates. This mails should have been delivered locally. the rest are servergenerated emails, like ticket system who sends out an email telling that status has changed or notifying me (on the same server) that a new ticket arrived. 250 were created from a newsletter component of my joomla website. If i reboot the server, it will send all mails, but keeping to pile up. In the meanwhile i have another 360 mails in the queue. THere are also systemmails like From: root To: root.
I think, it could be some sort of postfix limitation, why he is stopping delivery. whether i flush or not, no difference. It also shows no error on mailq or on the flush command. I am a little bit … well confused…
i commented them out. I also deleted most of that 20k Mails, and now i am waiting what happens. I will look into it several times over the day and check, whether the queue piles up again.
Can i limit the amount of mails php-scripts can send out at once? I had a severe spam problem last year and would like to use approbiate measures. A friend put his webpage onto my server and brought a spam script with it, which i had a hard time to find. It was a phpfile, which fired around 10k an hour …
i commented them out. I also deleted most of that 20k Mails, and now i am waiting what happens. I will look into it several times over the day and check, whether the queue piles up again.
Can i limit the amount of mails php-scripts can send out at once? I had a severe spam problem last year and would like to use approbiate measures. A friend put his webpage onto my server and brought a spam script with it, which i had a hard time to find. It was a phpfile, which fired around 10k an hour …
Well, you can setup rate limits. That’s available in Email Messages -> Mail Rate Limiting.
However, make sure you don’t have a small rate limit on any domain that’s sending out newsletters, as it’ll cause problems on those domains and cause those messages to get stuck.
The problem is fixed now. Concerning the Mail Rate Limiting:
I have a webpage on the server for someone, whose Mailserver is on a different provider. Therefore i did NOT enable email for that domain. When i tried to send an email i got the reply:
Host or domain name not found
Then i removed the DNS entry for the mail server, which wouldnt fix the problem.
Next try i entered his mailserver information in Bind config, now it tells me:
Am a little out of my wits now. On the other hand, after i disabled the email feature, it does not let me set the Mail Rate limit, because the domain won’t be listed. But the Newsletter software, running on his CMS would work, correct?