S
S
solinter2016-03-01 21:58:15
Domain Name System
solinter, 2016-03-01 21:58:15

How to force Postfix to send to MX server and not locally?

The situation is as follows, the smtp server is located separately from the pop server where incoming messages come (priority MX). All incoming and outgoing external letters go horsho. The problem is that when sending a letter to the e-mail of the same domain, or to the sender's e-mail itself, the letters arrive at the server that is used as smtp, and not at the main MX.
When pinging the MX server from the smtp server, the correct IP is displayed, that is, the IP of the MX server, therefore sending the letter does not go through the dns server to find out the address of the MX server, I just return to the same local server.
How to force local letters to go to the main MX?
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vlad Zhivotnev, 2016-03-02
@inkvizitor68sl

https://debian.pro/1139
In the article itself - a description of the answer to the question "what the hell?", and in the comments - a link to how to do the same in postfix.

S
SergeyDeryabin, 2020-03-02
@SergeyDeryabin

How much such slag I shoveled until I got into the documentation)
www.postfix.org/STANDARD_CONFIGURATION_README.html...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question