current msmtp configuration
account default
logfile /home/bitrix/msmtp_default.log
host smtp.sendgrid.net
port 587
from [email protected]
aliases /etc/aliases
keepbcc off
auth on
user apikey
password SENDGRID_API_KEY
tls on
tls_certcheck off
- Command: echo -e "test" | msmtp --debug -t -i [email protected] throwing below error, even if from header is set.
--> MAIL FROM:<[email protected]>
--> RCPT TO:<[email protected]>
--> DATA
<-- 250 Sender address accepted
<-- 250 Recipient address accepted
<-- 354 Continue
--> test
--> .
<-- 550 MIME message is missing 'From' header
msmtp: the server did not accept the mail
msmtp: server message: 550 MIME message is missing 'From' header
msmtp: could not send mail (account default from /etc/msmtprc)
able to send mail if header is set like below command. 2. Command: echo -e "test" "From:[email protected]" | msmtp --debug -t -i [email protected]
is there any way to enable send mail with first command itself?
msmtp configuration on one of self hosted bitrix instance