Answer the question
In order to leave comments, you need to log in
Configuring sendmail
Good afternoon,
I ran into a problem sending emails from the server.
There is a domain, let's say site.ru
Mail of this domain is hosted on Google.
Everything works, everything is fine.
There is a FreeBSD server with sendmail installed
. The server has hostname=" site.ru " in /etc/rc.conf
But in fact this domain is located on another server. Don't ask me why, I don't know, I didn't.
That. when sending emails to [email protected], sendmail tries to send it locally.
And it turns out: [email protected]:/etc/mail# sendmail -bv [email protected]
[email protected]… User unknown
Although this address should lead to the Google server, i.e. 173.194.71.121
How can I fix this problem, please tell me?
Answer the question
In order to leave comments, you need to log in
Set sendmail to send everything via google smtp, or change hostname. (not sure if sendmail can be told to use public MX for a specific domain)
Install postfix, it's much easier to work with than sendmail with its intuitive configs.
For postfix in the /etc/postfix/main.cf config, mydestination is responsible for accepted domains, if site.ru is not there, then the mail server will not receive mail for this domain, but will send it to the relay or to the Internet (depending on the settings ).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question