quarantinelink send with empty from=<>

Aug 12, 2019
11
0
21
Hello,

when I have a quarantinelink sent to me, it is sent with empty from.

2023-09-25T12:15:01.594590+02:00 gatexx postfix/qmgr[773735]: 85DE52DD74: from=<>, size=1085, nrcpt=1 (queue active)

In /etc/pmg/pmg.conf mailfrom is set and the daily emails are also sent with this sender only not via the send link function, how can I fix this?

Greetings Michael
 
daily emails are also sent
The daily spamreport e-mails are also sent with an empty envelope-from
Mails generated in PMG are sent with an empty envelope sender in general to prevent bounces and loops of those
 
The daily spam report emails are sent correctly.
The link emails need in some cases a sender, because if this email is forwarded and SRS can not process the empty sender.
Thus, the e-mail is then also forwarded with an empty sender, which is then rejected because the sender is empty.

Is there a way to define the sender there somehow or also to say take the same as for the reports ?

Greetings Michael
 
The daily spam report emails are sent correctly.
They are still sent with an empty envelope sender - the From header gets set to what you've configured in the SpamDetector Options - but the envelope sender is <>
The quarantine link gets sent with an empty envelope-sender and a From header of postmaster@pmg-fqdn

Please share some logs of the receiving system, which show where the issue is - because I don't see the problem there?
 
Code:
PMG:
2023-09-26T12:28:01.916423+02:00 gateXX postfix/smtpd[2758114]: DFAAB2EA8B: client=localhost.localdomain[127.0.0.1]
2023-09-26T12:28:01.959640+02:00 gateXX postfix/cleanup[2758366]: DFAAB2EA8B: message-id=<20230926102801.DFAAB2EA8B@gatexx.XXXX.info>
2023-09-26T12:28:01.963753+02:00 gateXX postfix/qmgr[773735]: DFAAB2EA8B: from=<>, size=1088, nrcpt=1 (queue active)
2023-09-26T12:28:02.465441+02:00 gateXX postfix/smtp[2758580]: DFAAB2EA8B: to=<admin2@XXXX.org>, relay=xxxx.xxxxxxxxx.net[xx.xx.xx.xx]:25, delay=0.55, delays=0.05/0/0.06/0.44, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 0701021BED)
2023-09-26T12:28:02.466114+02:00 gateXX postfix/qmgr[773735]: DFAAB2EA8B: removed

PLESK:
Sep 26 12:28:02 XXXX postfix/smtpd[257910]: 0701021BED: client=xx.XXXX.info[xx.xx.xx.xx]
Sep 26 12:28:02 XXXX psa-pc-remote[305708]: 0701021BED: from=<> to=<admin2@XXXX.org>
Sep 26 12:28:02 XXXX postfix/cleanup[261446]: 0701021BED: message-id=<20230926102801.DFAAB2EA8B@gatexx.XXXX.info>
Sep 26 12:28:02 XXXX psa-pc-remote[305708]: 0701021BED: py-limit-out: stderr: INFO:__main__:No SMTP AUTH and not running in sendmail context (incoming or unrestricted outgoing mail). SKIP message.
Sep 26 12:28:02 XXXX psa-pc-remote[305708]: 0701021BED: py-limit-out: stderr: SKIP
Sep 26 12:28:02 XXXX psa-pc-remote[305708]: 0701021BED: spf: stderr: PASS
Sep 26 12:28:02 XXXX psa-pc-remote[305708]: 0701021BED: check-quota: stderr: SKIP
Sep 26 12:28:02 XXXX postfix/qmgr[1451404]: 0701021BED: from=<>, size=1295, nrcpt=1 (queue active)
Sep 26 12:28:02 XXXX postfix-local[263420]: 0701021BED: from=<MAILER-DAEMON>, to=<admin2@XXXX.org>, dirname=/var/qmail/mailnames
Sep 26 12:28:02 XXXX postfix-local[263420]: 0701021BED: spam: stderr: PASS
Sep 26 12:28:02 XXXX dk_check[263431]: 0701021BED: DKIM Feed: No signature
Sep 26 12:28:02 XXXX postfix-local[263420]: 0701021BED: dk_check: stderr: PASS
Sep 26 12:28:03 XXXX dmarc[263432]: 0701021BED: Unable to store SPF result into DMARC library: 'Function called with nothing to parse'
Sep 26 12:28:03 XXXX dmarc[263432]: 0701021BED: Unable to store SPF/DKIM results into DMARC library
Sep 26 12:28:03 XXXX postfix-local[263420]: 0701021BED: Could not change Return-Path in message envelope(SRS): No at sign in sender address
.....
 
and how do the logs look like for a spamreport?
 
Ok, I understand, that's also the case with the daily report, so that couldn't have worked either. Is there a way to set the From empty in the log? The operator of the end email server. where the email is then forwarded seems to reject all from=<>.

Do I have to make any changes here?
 
Is there a way to set the From empty in the log?
I don't understand the question?

where the email is then forwarded seems to reject all from=<>.
This is really not recommended - mails with empty envelope-from are needed for the proper function of SMTP - bounces (NDR) are sent this way, informational messages from the MTA - and they are sent with empty envelope-from to prevent bounce-loops...

Do I have to make any changes here?
I think so
 
Hello,

I understand that the sender is set as "envelope-from" in the "header", however these are emails where we should also know if they do not arrive.

Rejecting empty "From" can be a problem, we are trying to clarify this with the operator.

Many users forward all emails to an account to an external account. If the "From" is empty, an SRS can not rewrite the From, so it will be forwarded empty again. Doesn't this also cause problems with "SPF Records", because the From doesn't match?

Is there any way to set the "FROM" so that it is not only in the "header" but also in the logs?


Greetings Michael
 
Is there any way to set the "FROM" so that it is not only in the "header" but also in the logs?
No - as said - informational messages from smtp-servers often use an empty envelope sender to prevent bounce-loops - which is why PMG uses this as well.

Many users forward all emails to an account to an external account. If the "From" is empty, an SRS can not rewrite the From, so it will be forwarded empty again. Doesn't this also cause problems with "SPF Records", because the From doesn't match?
SPF does check only the envelope-address IIRC - so I guess this should not be a problem - if yes - please provide the actual logs showing this.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!