Wednesday, December 16, 2015

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



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


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.



No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...