3
3
3ton2014-08-26 16:45:19
Exim
3ton, 2014-08-26 16:45:19

Why isn't the result of cron being sent to EXIM?

The problem of mail support was solved using pdd.yandex.ru.
But to send mail from the server, I had to install exim4 and configure it in smarthost mode

dc_eximconfig_configtype='smarthost'
dc_other_hostnames='domain.ru'
dc_local_interfaces='127.0.0.1 ; 192.168.122.10'
dc_readhost=''
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost='smtp.yandex.ru::587'
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname='false'
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'

The passwd.client file has a link to the mailbox.
Everything started up and went.
When sending a text message from the shell, the message normally works out and reaches the sender, leaving in the log
echo "foo" | mail -s test1 report
2014-08-25 19:15:41 1XLvzh-0000Pz-UE <= [email protected] U=user P=local S=474
2014-08-25 19:15:43 1XLvzh-0000Pz-UE => [email protected] R=smarthost T=remote_smtp_smarthost H=smtp.yandex.ru [213.180.204.38] X=TLS1.0:RSA_AES_256_CBC_SHA1:32 DN="C=RU,O=Yandex LLC,OU=ITO,L=Moscow,ST=Russian Federation,CN=smtp.yandex.ru,[email protected]"
2014-08-25 19:15:43 1XLvzh-0000Pz-UE Completed

Perfectly fulfills and delivers logwatch mail log.
But when specified in the cron to send outputs to soap [email protected] for some reason I get in the log
2014-08-25 19:14:03 1XLvy6-0000Pd-DZ <= [email protected] U=user P=local S=816
2014-08-25 19:14:03 1XLvy6-0000Pd-DZ ** [email protected] R=smarthost T=remote_smtp_smarthost: SMTP error from remote mail server after end of data: host smtp.yandex.ru [213.180.193.38]: 550 5.1.7 Bad sender address syntax vyFn6lDRZu-E2mGVNEa
2014-08-25 19:14:03 1XLvy7-0000Pg-5u <= <> R=1XLvy6-0000Pd-DZ U=Debian-exim P=local S=1553
2014-08-25 19:14:03 1XLvy6-0000Pd-DZ Completed
2014-08-25 19:14:03 1XLvy7-0000Pg-5u ** [email protected] R=smarthost T=remote_smtp_smarthost: SMTP error from remote mail server after MAIL FROM:<> SIZE=2615: host smtp.yandex.ru [93.158.134.38]: 553 5.7.1 Sender address rejected: not owned by auth user.
2014-08-25 19:14:03 1XLvy7-0000Pg-5u Frozen (delivery error message)

Changing the EMAIL address in crontab did not lead to a different result.
I will also be glad to help in obtaining a more detailed log than the one indicated above, unfortunately I myself did not find how to get it, I want to see everything that 2 servers are talking about at that moment.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
3
3ton, 2014-08-26
@3ton

Now I can sleep peacefully, the problem is solved

dc_eximconfig_configtype='internet'
dc_readhost='domain.ru'

Having brought these variables to the specified form, my problems disappeared - letters come from the console and when working out the crown.
Why so - I can’t say, because unfortunately I didn’t manage to achieve a complete log of communication between my host and Yandex, so this part of the problem remains open for your suggestions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question