Koozali.org: home of the SME Server

Purge mail queue

Offline AKn

  • *
  • 19
  • +0/-0
Purge mail queue
« on: February 04, 2010, 09:46:27 AM »
Good day,

Our small office server was set up to only deliver email locally. I checked the admin messages with a local email client. I will be moving and would like to check the admin messages remotely. As a test, I set up the admin email to forward to my @gmail.com account. However, gmail probably doesn't like the messages because they come from an unregistered domain.
Code: [Select]
del  xdelay  reason
  1    4.17  Connected to 208.145.81.17 but sender was rejected./Remote host said: 553 5.3.0 Rejected - listed at spamhaus(see http://spamhaus.org/zen/)/

Now, I've turned email delivery back to local only. However, the previous @gmail.com messages are still in the queue. Will they eventually be purged automatically? Or can I purge them with root privileges?
Code: [Select]
3 Feb 2010 21:02:52 GMT  #3653655  1110   
remote bob@gmail.com
3 Feb 2010 13:05:07 GMT  #1964311  1701   
remote bob@gmail.com
3 Feb 2010 15:05:28 GMT  #1954996  1267   
remote bob@gmail.com
3 Feb 2010 21:05:32 GMT  #1950810  2103   
remote bob@gmail.com

ak

Offline jester

  • *
  • 496
  • +1/-0
Re: Purge mail queue
« Reply #1 on: February 04, 2010, 10:22:28 AM »
Eventually (in a couple of days) you'll receive a "Could not deliver, giving up" notice and they will be deleted from the qeue. If you want to delete them yourself you could install the mail queue manager contrib.

HTH

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Purge mail queue
« Reply #2 on: February 05, 2010, 12:41:51 AM »
Good day,

Our small office server was set up to only deliver email locally. I checked the admin messages with a local email client. I will be moving and would like to check the admin messages remotely. As a test, I set up the admin email to forward to my @gmail.com account. However, gmail probably doesn't like the messages because they come from an unregistered domain.

No, that's not true. They are rejected (by wsfo.org's mail server) because they are coming from an IP address (i.e. your WAN IP address) which is listed in a spamhaus.org blacklist. Did you not read this?

 Rejected - listed at spamhaus(see http://spamhaus.org/zen/)

I don't see anything there about "unregistered domain".

Quote
Will they eventually be purged automatically?

They have already been purged from the queue, because of the 530 status (permanent rejection). As a result, a bounce message has been generated.  It is probably the bounce messages which you see in the queue. If those are also rejected, there will be a new bounce message (a double bounce message) which will be delivered locally.

Quote
Or can I purge them with root privileges?

You could, but it's less likely to cause problems if you just wait until the queue clears.


Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Purge mail queue
« Reply #3 on: February 05, 2010, 12:42:45 AM »
Eventually (in a couple of days) you'll receive a "Could not deliver, giving up" notice...

No, that's for messages which have been deferred (by 4XX status responses). Rejected messages do not stay in the queue.