P
P
Puma Thailand2011-11-28 07:10:21
send mail
Puma Thailand, 2011-11-28 07:10:21

How to teach sendmail to send mail to your domain on a server with a website

A site like mydomain.com, mail is used free of charge from Google, when sending to emails from a non-own domain, everything goes with a bang, when sent to its own domain, sendmail swears that there are no such users because the server name is mydomain.com and it tries to send to a local relay 127.0.0.1 and of course these users are not there, how to wean him from doing this without changing the hostname of the server?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
Y
YourChief, 2011-11-28
@YourChief

use postfix and set up virtual boxes or forwarding to your soap

V
Vitaly Peretyatko, 2011-11-28
@viperet

There is no simple solution for sendmail, except that it is recommended to rename the server so that it does not match the domain name) The best thing is really to switch to postfix

P
Perkov, 2011-11-28
@Perkov

Solvable with mailertable.
and the same question - is mydomain.com registered in local-host-names?

M
masterclass, 2011-11-28
@masterclass

Correct me if I'm wrong, but mail goes to IN MX records, and the site only looks at IN A records. Therefore, instead of using /etc/hosts - configure your DNS correctly. IN A record will look at your server with the site, and IN MX will look at your mail server. And when the site sends letters to your domain, it will see that it needs to send mail not to itself, but to the correct mail server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question