Postfix deferred email – How to expire so bounce-back email gets sent back

email-bouncespostfix

My hosted email server is "Refusing to talk : 550" with my postfix server.
Gmail, Yahoo, Hotmail all accepts them fine. All of sudden hosted email provider decided not accept email from my server. I dont really know why… i dont send out spam nor have large volumes.

Anyways, now they want me to get a bounce-back email.
All the email in question are in mailq (deferred)

How do I expire them so that postfix will send out "unable to send" to mail clients who sent them?

I dont want to delete them…

Thanks for the help in advance

Best Answer

Use postqueue -f as root to flush the entire queue; this will cause delivery to be re-tried.

If the remote server really reports a 550, then the messages will not be deferred; they will be rejected, and your postfix server will instantly bounce them.

If this does not seem to be happening, make sure you do not have soft_bounce = yes set:

postconf soft_bounce

On any production server, the soft_bounce setting needs to be no.

Related Topic