Hi to all, I am using mstmp to send administrative mails from my server. To my suprise I saw that my mails are not accepted from my mail server. I can not recall any changes that could have led to this nor a timeframe since when. I used this commandline for a long time.
I am using OpenSMTPD 7.3.0-portable. I dont get it that a leading space is a difference. Tis is a mail that is acceppted ``` echo ' Hello this is sending email using msmtp' | msmtp [email protected] -vv <-- 250-falcon.sesameh.de Hello sesameh.de [xxx.xxx.xxx.xxx], pleased to meet you <-- 250-8BITMIME <-- 250-ENHANCEDSTATUSCODES <-- 250-SIZE 36700160 <-- 250-DSN <-- 250 HELP --> MAIL FROM:<[email protected]> <-- 250 2.0.0 Ok --> RCPT TO:<[email protected]> <-- 250 2.1.5 Destination address valid: Recipient ok --> DATA <-- 354 Enter mail, end with "." on a line by itself --> From: [email protected] --> Date: Tue, 10 Dec 2024 06:38:18 +0100 --> Message-ID: <[email protected]> --> Hello this is sending email using msmtp --> . <-- 250 2.0.0 5c37e7a9 Message accepted for delivery --> QUIT <-- 221 2.0.0 Bye ``` and this mail is not accepted ``` and this mail is not accepted ``` echo 'Hello this is sending email using msmtp' | msmtp [email protected] -vv 1 <-- 250-falcon.sesameh.de Hello sesameh.de [xxx.xxx.xxx.xxx], pleased to meet you 2 <-- 250-8BITMIME 3 <-- 250-ENHANCEDSTATUSCODES 4 <-- 250-SIZE 36700160 5 <-- 250-DSN 6 <-- 250 HELP 7 --> MAIL FROM:<[email protected]> 8 <-- 250 2.0.0 Ok 9 --> RCPT TO:<[email protected]> 10 <-- 250 2.1.5 Destination address valid: Recipient ok 11 --> DATA 12 <-- 354 Enter mail, end with "." on a line by itself 13 --> From: [email protected] 14 --> Date: Tue, 10 Dec 2024 06:30:40 +0100 15 --> Message-ID: <[email protected]> 16 --> Hello this is sending email using msmtp 17 --> . 18 <-- 550 5.7.1 Delivery not authorized, message refused: Message is not RFC 2822 compliant 19 msmtp: the server did not accept the mail 20 msmtp: server message: 550 5.7.1 Delivery not authorized, message refused: Message is not RFC 2822 compliant ``` Regards Hagen
