E
E
EVEN2012-06-29 15:05:14
linux
EVEN, 2012-06-29 15:05:14

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

4 answer(s)
M
Maximus43, 2012-06-29
@Maximus43

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.

S
script88, 2012-06-29
@script88

Does the user exist at all?

A
AnViar, 2012-06-29
@AnViar

Talk about RHEL and delivering root notifications?

A
AnViar, 2012-06-29
@AnViar

Correction: I think it's enough for you to prescribe in main.cf relayhost = [server.com]and, of course, an alias for the user.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question