Vitaliy_Chetverikov
New Pleskian
After upgrading Plesk from 11.5 to 12.0.18, I started experiencing system email delivery issues. Specifically, LogWatch stopped being able to send emails to root.
I can replicate the issue as follows:
This results in the following maillog messages:
However, the following command succeeds and I receive the email just fine:
As you can see, the only difference between the two commands is that the body of the email starts with a new line. Space causes the same issue. So, it looks like the issue is triggered by a whitespace character at the beginning of email body.
This only happens with To addresses, which are local usernames and do not include FQDN. Complete email addresses work just fine. However, this issue prevents me form receiving local system emails, which are sent to root.
I can replicate the issue as follows:
Code:
echo -e "To: root\nFrom: test\nSubject: Test\n\nTest" | sendmail -t
This results in the following maillog messages:
Code:
Oct 6 13:25:35 shared1 plesk sendmail[29839]: Unable to get sender domain by sender mailname
Oct 6 13:25:35 shared1 plesk sendmail[29839]: handlers_stderr: SKIP
Oct 6 13:25:35 shared1 plesk sendmail[29839]: SKIP during call 'check-quota' handler
Oct 6 13:25:35 shared1 plesk sendmail[29839]: Unable to get sender domain by sender mailname
Oct 6 13:25:35 shared1 plesk sendmail[29839]: Incorrect recipient mailname : root
However, the following command succeeds and I receive the email just fine:
Code:
echo -e "To: root\nFrom: test\nSubject: Test\nTest" | sendmail -t
As you can see, the only difference between the two commands is that the body of the email starts with a new line. Space causes the same issue. So, it looks like the issue is triggered by a whitespace character at the beginning of email body.
This only happens with To addresses, which are local usernames and do not include FQDN. Complete email addresses work just fine. However, this issue prevents me form receiving local system emails, which are sent to root.