Answer the question
In order to leave comments, you need to log in
Postfix - how to send mail from local users to an external SMTP server?
Dan - linux and postfix.
Suppose our server has hostname server.com
When generating a php email with address [email protected] postfix tries to send it to itself and gets the answer unknown user.
How to make postfix not try to send mail to itself if hostname matches domain ? and to watch the mx record of the domain and contact that server.
Answer the question
In order to leave comments, you need to log in
We are talking about using MX, which means that Postfix works in full-fledged MTA mode, and not as a simple relay.
Therefore, the relayhost parameter should be written like this:
relayhost =
Write the mydestination parameter for local domains.
Check that inet_interfaces is not set exclusively to localhost.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question