I
I
icell762020-05-12 15:46:21
Debian
icell76, 2020-05-12 15:46:21

How to disable sending letters in exim4 as root?

Good afternoon. I connected mail to the yandex site, installed exim. The bottom line is, I want letters to be sent from [email protected], but for some reason they are sent only from [email protected] I need it from root, so in the error log:

2020-05-12 12:30:28 1jYU3I-0006Ni-8g <= [email protected] U=root P=local S=401
2020-05-12 12:30:28 1jYU3I-0006Ni-8g ** [email protected] R=smarthost T=remote_smtp_smarthost X=TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128 DN="CN=smtp.yandex.ru,O=Yandex LLC,OU=ITO,L=Moscow,ST=Russian Federation,C=RU": SMTP error from remote mail server after MAIL FROM:<[email protected]> SIZE=1435 [email protected]: host smtp.yandex.ru [2a02:6b8::19d]: 553 5.7.1 Sender address rejected: not owned by auth user.
2020-05-12 12:30:28 1jYU3I-0006Nn-ER <= <> R=1jYU3I-0006Ni-8g U=Debian-exim P=local S=1439
2020-05-12 12:30:28 1jYU3I-0006Ni-8g Completed
2020-05-12 12:30:28 1jYU3I-0006Nn-ER ** [email protected] R=smarthost T=remote_smtp_smarthost X=TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128 DN="CN=smtp.yandex.ru,O=Yandex LLC,OU=ITO,L=Moscow,ST=Russian Federation,C=RU": SMTP error from remote mail server after MAIL FROM:<> SIZE=2497: host smtp.yandex.ru [2a02:6b8::19d]: 553 5.7.1 Sender address rejected: not owned by auth user.
2020-05-12 12:30:28 1jYU3I-0006Nn-ER Frozen (delivery error message)


Offer to add a user to Yandex mail - [email protected] is not needed .... I would like to send with [email protected]

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
icell76, 2020-05-12
@icell76

I solved the problem myself.
sudo nano /etc/email-addresses we
register the user - root: your mail.
Please close the topic.

K
ky0, 2020-05-12
@ky0

Your answer is a crutch. Mail from the inside is by default sent from under the user (and FQDN of the host) that initiated the sending - you probably have root. If you need another - run from under it, or use SMTP authorization to communicate with the mail provider.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question