G
G
gvsmirnov2011-05-27 17:49:20
Google Workspace
gvsmirnov, 2011-05-27 17:49:20

Outgoing smpt relay?

Can you please tell me what I need to do so that outgoing mail from my server goes through an SMTP server, say, Google Apps or Yandex Mail For Domain?
The question concerns specifically outgoing mail, which I send from the server, for example, with the mail command. It is desirable that it settles in user boxes and can then be viewed through the Google Apps / Yandex traffic rules web interface. I have all sorts of mx-records and so on. It's just not clear how to configure the MTA. debian system.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
smartly, 2011-05-27
@gvsmirnov

dpkg-reconfigure exim4-config
one of the questions will be about smarthost. specify google smtp.
then create the file /etc/exim4/passwd.client and write down the login and password from the Google account there.
Mail will settle in the outgoing of this account. Well, the outgoing address will be substituted with this account.
If this is not what is needed, then the problem cannot be solved in the standard form. For each outgoing account, there must be a rule in the config, and a login-password. That is, in order for outgoing letters to go to the outgoing folder of a Google account, you need to simulate sending a letter through Google from this account. It is possible, but the solution is not typical.

P
Puma Thailand, 2011-05-27
@opium

First you need to decide what mta you have

A
amc, 2011-05-27
@amc

So too lazy to look...
a) the real IP address from which you will send mail
b) A-record pointing to this IP address (eg mailserv.domain.com) is made on your DNS hosting.
c) The PTR record "mailserv.domain.com" pointing to the IP of your server is made by the provider providing the Internet to your server.
d) MX-record MX 10 mailserv.domain.com in your DNS zone is made on your DNS hosting.
e) In the MTA properties, specify with which name to connect outward, in our case, mailserv.domain.com
f) Specify the MTA to send mail directly, without any relay, smart host, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question