Hello I see in my vacation message have empty envelope-from=<> , and this messages is not aceptable in gmail how fix this Example from email headers from mail in vacation Received-SPF: None (no SPF record) identity=no SPF record; client-ip=serverIP ; helo=hostname; envelope-from=<>; receiver=<UNKNOWN>
This is according to spec for vaction messages, to prevent mailloops. See: https://datatracker.ietf.org/doc/html/rfc5230#section-5.1
The reason why Gmail rejected it is not the empty envelope-from header. Take care that the domain the email is sent from and also the hostname of your system have valid spf records, besides that, turn on DKIM signing and you might also want to create a DMARC record.
Hi do you want a help my this is my header from onet mail where mail is saved in mailbox What's wrong ? why mail is not not saved in gmail Received: from mx.poczta.onet.pl (unresolved [10.175.36.31]:51702) by ps50.m5r2.onet (Ota) with LMTP id A683B1D for <[email protected]>; Tue, 9 Jul 2024 13:16:03 +0200 (CEST) Received-SPF: None (no SPF record) identity=no SPF record; client-ip=x.x.x.x; helo=x.x.x; envelope-from=<>; receiver=<UNKNOWN> Authentication-Results: mx.poczta.onet.pl; bimi=none (No BIMI records found); dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=intratel.pl; iprev=pass smtp.remote-ip=x.x.x.x (x.x.x.x); spf=pass policy.authdomain=x.x.x smtp.mailfrom="" smtp.helo=x.xx.x; x-ptr=pass smtp.helo=xxxx policy.ptr=xxxx; x-tls=pass smtp.version=TLSv1.3 smtp.cipher=TLS_AES_256_GCM_SHA384 smtp.bits=256 Received: from: xxxxx (xxxx [x.x.xx]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by mx.poczta.onet.pl (Onet) with ESMTPS id 4WJJMQ4LHBz3Bqm for <[email protected]>; Tue, 9 Jul 2024 13:16:02 +0200 (CEST) Received: by mail.intratel.pl (Postfix, from userid 5000) id 4E7E2CC233F; Tue, 9 Jul 2024 13:06:09 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 xxxx 4E7E2CC233F X-Sieve: Pigeonhole Sieve 0.5.15 (e6a84e31) Message-ID: <dovecot-sieve-1720523169-282027-2@xxxxx> Date: Tue, 09 Jul 2024 13:06:09 +0200 From: <xxx@xxxx> To: <[email protected]> Subject: Out of office reply In-Reply-To: <[email protected]> References: <[email protected]> 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 X-Authentication-Milter: Header added by Authentication Milter X-ONET_PL-MDA-Version: 1.0.25 X-ONET_PL-MDA-Info: 050 29097 A683B1D 0.000000 X-ONET_PL-MDA-Spam: NO
Check the mail.log at /var/log/mail.log. The receiving gmail mailserver will tell you why the message got rejected.
Hi I grep mail in all mail* logs only info where send vacation mail host07:/var/log # grep -r [email protected] mail* mail:Aug 1 13:29:22 host07 postfix/smtpd[7581]: NOQUEUE: filter: RCPT from mail-oi1-f177.google.com[209.85.167.177]: <[email protected]>: Sender address triggers FILTER amavis:[127.0.0.1]:10026; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail-oi1-f177.google.com> mail:Aug 1 13:29:22 host07 postfix/smtpd[7581]: NOQUEUE: filter: RCPT from mail-oi1-f177.google.com[209.85.167.177]: <[email protected]>: Sender address triggers FILTER amavis:[127.0.0.1]:10024; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail-oi1-f177.google.com> mail:Aug 1 13:29:22 host07 postgrey[747]: action=pass, reason=client whitelist, client_name=mail-oi1-f177.google.com, client_address=209.85.167.177, [email protected], [email protected] mail:Aug 1 13:29:22 host07 amavis[8568]: (08568-08) ESMTP [127.0.0.1]:10024 /var/spool/amavis/tmp/amavis-20240801T132757-08568-V1bKtjY4: <[email protected]> -> <[email protected]> SIZE=3279 Received: from mail.intratel.pl ([127.0.0.1]) by localhost (mail.intratel.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP for <[email protected]>; Thu, 1 Aug 2024 13:29:22 +0200 (CEST) mail:Aug 1 13:29:22 host07 amavis[8568]: (08568-08) Checking: jkseEwCpFI4q [209.85.167.177] <[email protected]> -> <[email protected]> mail:Aug 1 13:29:23 host07 amavis[8568]: (08568-08) jkseEwCpFI4q FWD from <[email protected]> -> <[email protected]>, BODY=7BIT 250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 9C4362041BBC mail:Aug 1 13:29:23 host07 amavis[8568]: (08568-08) Passed CLEAN {RelayedInbound}, [209.85.167.177]:54332 [209.85.167.177] ESMTP/ESMTP <[email protected]> -> <[email protected]>, (ESMTPS://[209.85.167.177]:54332), Queue-ID: 202B92041BC1, Message-ID: <CA+oOD2c=xeOiGFSdnwiXWXyyiJp4-=Ze_7gyL482zuZOM5K+4A@mail.gmail.com>, mail_id: jkseEwCpFI4q, b: PG3FMKoc6, Hits: 1.201, size: 3637, queued_as: 9C4362041BBC, Subject: "czesc", From: <[email protected]> (dkim:AUTHOR), helo=mail-oi1-f177.google.com, Tests: [DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1,DKIM_VALID_EF=-0.1,DMARC_PASS=-0.1,FREEMAIL_FROM=0.001,HTML_MESSAGE=0.001,PYZOR_CHECK=1.5,RCVD_IN_DNSWL_NONE=-0.0001,RCVD_IN_MSPIKE_H2=-0.001,SPF_PASS=-0.001,TVD_SPACE_RATIO=0.001], autolearn=no autolearn_force=no, autolearnscore=1.202, [email protected], dkim_sd=20230601:gmail.com, 1514 ms mail:Aug 1 13:29:23 host07 postfix/smtp[19236]: 202B92041BC1: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.6, delays=0.12/0/0.01/1.5, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 9C4362041BBC) mail:Aug 1 13:29:23 host07 dovecot: lmtp([email protected])<5679><+MJKJ5Nxq2YvFgAArtTbWA>: sieve: msgid=<CA+oOD2c=xeOiGFSdnwiXWXyyiJp4-=Ze_7gyL482zuZOM5K+4A@mail.gmail.com>: vacation action: sent vacation response to <SRS0=/[email protected]> mail:Aug 1 13:29:23 host07 dovecot: lmtp([email protected])<5679><+MJKJ5Nxq2YvFgAArtTbWA>: sieve: msgid=<CA+oOD2c=xeOiGFSdnwiXWXyyiJp4-=Ze_7gyL482zuZOM5K+4A@mail.gmail.com>: stored mail into mailbox 'INBOX' mail:Aug 1 13:29:23 host07 postfix/lmtp[5675]: 9C4362041BBC: to=<[email protected]>, relay=mail.intratel.pl[private/dovecot-lmtp], delay=0.08, delays=0.01/0.01/0/0.06, dsn=2.0.0, status=sent (250 2.0.0 <[email protected]> +MJKJ5Nxq2YvFgAArtTbWA Saved) mail.info:Aug 1 13:29:22 host07 postfix/smtpd[7581]: NOQUEUE: filter: RCPT from mail-oi1-f177.google.com[209.85.167.177]: <[email protected]>: Sender address triggers FILTER amavis:[127.0.0.1]:10026; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail-oi1-f177.google.com> mail.info:Aug 1 13:29:22 host07 postfix/smtpd[7581]: NOQUEUE: filter: RCPT from mail-oi1-f177.google.com[209.85.167.177]: <[email protected]>: Sender address triggers FILTER amavis:[127.0.0.1]:10024; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail-oi1-f177.google.com> mail.info:Aug 1 13:29:22 host07 postgrey[747]: action=pass, reason=client whitelist, client_name=mail-oi1-f177.google.com, client_address=209.85.167.177, [email protected], [email protected] mail.info:Aug 1 13:29:22 host07 amavis[8568]: (08568-08) ESMTP [127.0.0.1]:10024 /var/spool/amavis/tmp/amavis-20240801T132757-08568-V1bKtjY4: <[email protected]> -> <[email protected]> SIZE=3279 Received: from mail.intratel.pl ([127.0.0.1]) by localhost (mail.intratel.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP for <[email protected]>; Thu, 1 Aug 2024 13:29:22 +0200 (CEST) mail.info:Aug 1 13:29:22 host07 amavis[8568]: (08568-08) Checking: jkseEwCpFI4q [209.85.167.177] <[email protected]> -> <[email protected]> mail.info:Aug 1 13:29:23 host07 amavis[8568]: (08568-08) jkseEwCpFI4q FWD from <[email protected]> -> <[email protected]>, BODY=7BIT 250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 9C4362041BBC mail.info:Aug 1 13:29:23 host07 amavis[8568]: (08568-08) Passed CLEAN {RelayedInbound}, [209.85.167.177]:54332 [209.85.167.177] ESMTP/ESMTP <[email protected]> -> <[email protected]>, (ESMTPS://[209.85.167.177]:54332), Queue-ID: 202B92041BC1, Message-ID: <CA+oOD2c=xeOiGFSdnwiXWXyyiJp4-=Ze_7gyL482zuZOM5K+4A@mail.gmail.com>, mail_id: jkseEwCpFI4q, b: PG3FMKoc6, Hits: 1.201, size: 3637, queued_as: 9C4362041BBC, Subject: "czesc", From: <[email protected]> (dkim:AUTHOR), helo=mail-oi1-f177.google.com, Tests: [DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1,DKIM_VALID_EF=-0.1,DMARC_PASS=-0.1,FREEMAIL_FROM=0.001,HTML_MESSAGE=0.001,PYZOR_CHECK=1.5,RCVD_IN_DNSWL_NONE=-0.0001,RCVD_IN_MSPIKE_H2=-0.001,SPF_PASS=-0.001,TVD_SPACE_RATIO=0.001], autolearn=no autolearn_force=no, autolearnscore=1.202, [email protected], dkim_sd=20230601:gmail.com, 1514 ms mail.info:Aug 1 13:29:23 host07 postfix/smtp[19236]: 202B92041BC1: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.6, delays=0.12/0/0.01/1.5, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 9C4362041BBC) mail.info:Aug 1 13:29:23 host07 dovecot: lmtp([email protected])<5679><+MJKJ5Nxq2YvFgAArtTbWA>: sieve: msgid=<CA+oOD2c=xeOiGFSdnwiXWXyyiJp4-=Ze_7gyL482zuZOM5K+4A@mail.gmail.com>: vacation action: sent vacation response to <SRS0=/[email protected]> mail.info:Aug 1 13:29:23 host07 dovecot: lmtp([email protected])<5679><+MJKJ5Nxq2YvFgAArtTbWA>: sieve: msgid=<CA+oOD2c=xeOiGFSdnwiXWXyyiJp4-=Ze_7gyL482zuZOM5K+4A@mail.gmail.com>: stored mail into mailbox 'INBOX' mail.info:Aug 1 13:29:23 host07 postfix/lmtp[5675]: 9C4362041BBC: to=<[email protected]>, relay=mail.intratel.pl[private/dovecot-lmtp], delay=0.08, delays=0.01/0.01/0/0.06, dsn=2.0.0, status=sent (250 2.0.0 <[email protected]> +MJKJ5Nxq2YvFgAArtTbWA Saved)
Just one note when you test autoresponders, an autoresponder will not be sent each time you send an email to a specific address, if an autoresponse was sent to the same sender address already, it will not get sent again for some time. Just keep that in mind when testing, so do not expect to receive an autoresponder 100 times if you send 100 emails from the same sender gmail address to the same mailbox on your system.
To add on to the answer from till. If the message got rejected, you will find the rejection reason the first time you tested this. And i cannot imagine that if the mail got rejected, any other mail would just work fine when sending to gmail. So just check sending a mail from that mailbox [email protected] to a gmail address and see if the mail get accepted. If thats the case i cannot imagine that the vaction mail gets rejected.
You need to describe your issue in more detail here. What exactly is not working, and what is working?
my mail server correctly sends e-mails from the autoresponder to e-mail services such as onet.pl or proton mail and these e-mails are visible on these sites. However, if he sends an email from the autoresponder to gmail, the message in gmail is not visible