View previous topic :: View next topic |
Author |
Message |
kg4ysy Apprentice


Joined: 08 Jul 2006 Posts: 183 Location: North Carolina
|
Posted: Thu May 31, 2007 3:35 pm Post subject: postfix keeps sending emails randomly |
|
|
Postfix has been in the habit lately to send an email that I sent out more than 2 months ago at random. The problem is that it was a mailing list and every time this happens, I get a bunch of pissed off people. If I shut off postfix it stops, but I can't just leave postfix off. The script that I used to send the email is no longer running, and the machine has even been restarted since I originally sent out the email.
This leads me to believe that these emails are locked up in postfix's queue or something. I have no idea what to do. Any ideas anyone?
thx |
|
Back to top |
|
 |
magic919 Advocate

Joined: 17 Jun 2005 Posts: 2182 Location: Berkshire, UK
|
Posted: Thu May 31, 2007 4:22 pm Post subject: |
|
|
mailq
postqueue -p |
|
Back to top |
|
 |
kg4ysy Apprentice


Joined: 08 Jul 2006 Posts: 183 Location: North Carolina
|
Posted: Thu May 31, 2007 5:42 pm Post subject: |
|
|
I ran both and it listed 4 messages in queue, but they were spaced an hour apart so that leads me to believe that they are cron messages. |
|
Back to top |
|
 |
magic919 Advocate

Joined: 17 Jun 2005 Posts: 2182 Location: Berkshire, UK
|
Posted: Thu May 31, 2007 6:37 pm Post subject: |
|
|
Ok. So you now have some clues. Bear in mind that stopping Postfix doesn't prevent more messages being added to the queue. The queue is just that and they will be added by any commands using the sendmail command (part of Postfix) and will just get fired off when you wake Postfix up.
Have a look at the postsuper command to nuke them from the queue if that's your plan.
And have a good look at your logs for the cron stuff. |
|
Back to top |
|
 |
|