V
V
Valery2012-07-17 18:32:38
linux
Valery, 2012-07-17 18:32:38

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

4 answer(s)
M
mastini, 2012-07-17
@Akuma

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)

E
ekungurov, 2012-07-18
@ekungurov

Demolish sendmail and install some human MTA.

I
iklementiev, 2012-07-20
@iklementiev

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 ).

D
dencat, 2012-07-20
@dencat

You can try
adding define('MAIL_HUB', 'site.ru.')dnl
define('LOCAL_RELAY', 'site.ru.')dnl in sendmail.mc

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question