missing envelope-from with out-of-office reply

Issue #1094 resolved
Jan Panoch created an issue

when i send normail mail to gmail from my account on poste.io, everything is ok:

Sep 4 17:44:32 smtp postfix/smtpd[1229011]: 47E166DF: client=ms.dacc.cz[89.22.67.96]
Sep 4 17:44:32 smtp postfix/cleanup[1229067]: 47E166DF: message-id=741d9e711352fb87beaa45a42e90e4a2@synopsis.cz
Sep 4 17:44:32 smtp postfix/qmgr[4017607]: 47E166DF: from=jpanoch@synopsis.cz, size=1645, nrcpt=1 (queue active)
Sep 4 17:44:33 smtp postfix-smtp1-synopsis/smtp[1229467]: 47E166DF: to=jan.kyncl@gmail.com, relay=gmail-smtp-in.l.google.com[173.194.76.26]:25, delay=1.1, delays=0.14/0.02/0.35/0.62, dsn=2.0.0, status=sent (250 2.0.0 OK 1725464673 ffacd0b85a97d-374d2708edfsi2408188f8f.948 - gsmtp)

but when i send mail to poste.io and on this mail is active out-of-office reply, then the email is bounced by gmail with following message:

Sep 4 09:51:44 smtp postfix/smtpd[1187898]: 68048A8A: client=ms.dacc.cz[89.22.67.96]
Sep 4 09:51:44 smtp postfix/cleanup[1189517]: 68048A8A: message-id=dovecot-sieve-1725436304-291173-0@ms.dacc.cz
Sep 4 09:51:44 smtp postfix/qmgr[4017607]: 68048A8A: from=<>, size=1804, nrcpt=1 (queue active)
Sep 4 09:51:45 smtp postfix-smtp-253/smtp[1191177]: 68048A8A: to=jan.kyncl@gmail.com, relay=gmail-smtp-in.l.google.com[173.194.76.26]:25, delay=0.81, delays=0.07/0/0.22/0.52, dsn=5.7.26, status=bounced (host gmail-smtp-in.l.google.com[173.194.76.26] said: 550-5.7.26 Your email has been blocked because the sender is unauthenticated. 550-5.7.26 Gmail requires all senders to authenticate with either SPF or DKIM. 550-5.7.26 550-5.7.26 Authentication results: 550-5.7.26 DKIM = did not pass 550-5.7.26 SPF [] with ip: [89.22.94.253] = did not pass 550-5.7.26 550-5.7.26 For instructions on setting up authentication, go to 550 5.7.26 https://support.google.com/mail/answer/81126#authentication 5b1f17b1804b1-42bb7ad19c8si33519505e9.0 - gsmtp (in reply to end of DATA command))
Sep 4 09:51:45 smtp postfix/qmgr[4017607]: 68048A8A: removed

it looks like with out-of-office autoreply there is missing envelope-from - following logline:

Sep 4 09:51:44 smtp postfix/qmgr[4017607]: 68048A8A: from=<>, size=1804, nrcpt=1 (queue active)

i think there should be z.starman@taxvision.cz in envelope-from field, as i see in message header:

Message-ID: dovecot-sieve-1725436304-291173-0@ms.dacc.cz
Date: Wed, 04 Sep 2024 09:51:44 +0200
From: z.starman@taxvision.cz
To: =?UTF-8?Q?Jan_Kyn=C4=8Dl?= jan.kyncl@gmail.com
Subject: Re: test
In-Reply-To: 5b56c7ff-d0ed-42cd-8a22-d06992f7cb8d@gmail.com
References: 5b56c7ff-d0ed-42cd-8a22-d06992f7cb8d@gmail.com
Auto-Submitted: auto-replied (vacation)
Precedence: bulk
X-Auto-Response-Suppress: All
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Received: from localhost (Unknown [127.0.0.1])
by ms.dacc.cz (Haraka) with ESMTP id 94C383E0-B56C-4868-84AB-3BADB9B16CA1.1
envelope-from <>;
Wed, 04 Sep 2024 07:51:44 +0000

Dobr<C3><BD> den,

dovoluji si V<C3><A1>s informovat, <C5><BE>e do 26.8.2024 jsem mimo kancel<C3><A1><C5><99> bez p<C5><99><C3><AD>stupu k e-mailov<C3><A9> schr<C3><A1>nce.

V urgentn<C3><AD>ch p<C5><99><C3><AD>padech pros<C3><AD>m kontaktujte na<C5><A1>i kancel<C3><A1><C5><99> - mail: info@taxvision.cz, tel: +420 222 311 280.

D<C4><9B>kuji za pochopen<C3><AD>, s pozdravem a p<C5><99><C3><A1>n<C3><AD>m p<C5><99><C3><AD>jemn<C3><A9>ho dne

Zden<C4><9B>k <C5><A0>tarman

Dear Sir/Madam

Comments (4)

  1. Jan Panoch reporter

    SPF record for taxvision.cz is OK and for ip 89.22.94.253 it will pass, but there is missing envelope-from and gmail can’t find SPF record to validate, when he don’t know sender from envelope-from..

  2. SH repo owner

    Ono to funguje trochu jinak. RFC5321 definuje, že pro automatické odpovědi musí být envelope from (MAIL FROM: …) prázdné. Problém leží v rozbitém podepisování DKIMem. Každopádně už je to fixnuté v poslední verzi (dnes vydaná)

  3. Log in to comment