I am running MAMP Pro on my machine with all empty Postfix values. Yet, whenever my PHP application calls mail(), mail is being sent out from my machine. In a production environment this would be fine but I am in a development environment. how can i disable outbound mail in postfix? discusses setting the default_transport = error. However, this setting does not appear in /private/etc/postfix/main.cf, additionally, I cannot verify that this is infact what I need. I want to be absolutely sure that mail is disabled. I do want to be able to receive mail from my Entourage client but that's it.
Can anyone help? Many thanks!
Do it as described in the provided link. If the line is not present in
main.cf
then add a line withdefault_transport = error:This server sends mail only locally.