Disable postfix to send email to outside world

disabling postfix to send email to outside world is important especially in development environment. you don’t want client to receive emails when you are testing in the dev environment. Unless software is using external smtp server to send email, you can simply update postfix config (main.cf)

relayhost =

and restart postfix

Good postfix resource

I was searching in the web and found some good postfix resource.


I thought they are clear and to the point. thumbs up for the authors.