On Fri, Dec 18, 2009 at 3:25 PM, Carlos Williams <carlosw...@gmail.com> wrote: > I notice from time to time by checking my mail queue that messages get > stuck there because users send to an invalid or non existing domain. > My Postfix server attempts to hold the message in queue for later > delivery assuming the remote server could be experiencing issues right > his moment. My question is can I simply run a command to force a
I think you might be trying to solve the wrong problem. Why queue mail for destinations that don't have MX records (typoed domain part, etc)? Better to return undeliverable to senders I would think. This is different than mail to domains that exist and do have MX records, but postfix cannot reach the MX for some reason. Did you change smtp_defer_if_no_mx_address_found from its default setting of 'no'? Maybe there is a reason to do this, but I don't see it. It will cause the problem you are describing. > delivery failure rather than issuing the 'postsuper -d queue_id'? If I > run the 'postsuper' command, the message is simply deleted from the > queue and vanishes never to be heard from again. I want to force > Postfix to return the message with a delivery failure to the sender. > Is this possible? > > I searched man postsuper & Google and could not find anything I was looking > for. > > Thanks! >