postfix: force server to send mail outside of localhost
Posted
by
LoneWolfPR
on Server Fault
See other posts from Server Fault
or by LoneWolfPR
Published on 2012-01-12T01:47:21Z
Indexed on
2012/11/30
17:07 UTC
Read the original article
Hit count: 240
I have a php file that sends mail using the mail() function. The problem is one of the forms sends to a domain that is registerred on my server while having the mail handled on a different server. Postfix looks locally only. When it doesn't find the email address is rejects the message. How can I configure postfix to send mail to all domains through the internet and not locally?
Update
Ok. So it wasn't a postfix issue at all. I simply needed to turn off mail to that domain from the command line. For anyone that needs that command it is (at least on my system):
/usr/local/psa/bin/domain --update example.com -mail_service false
© Server Fault or respective owner