Correct sender/envelope details in the Notices sent to Senders

Discuss our MailScanner install script and MailScanner itself
Post Reply
syedc
Junior Member
Posts: 2
Joined: 27 Jan 2020, 14:02

Correct sender/envelope details in the Notices sent to Senders

Post by syedc »

Hey there,
I've set up Mailscanner to send out notification to the server admin and the sender when an email is blocked, say for having multiple extensions in the filename.

The notification email to the server admin goes out correctly, using the "Notices From" and "Local Postmaster" parameters from MailScanner Config.

The notification email to the sender however doesn't seem to use the "Notices From" name, although the report file seems to use a variable called "$postmastername". But that's a small issue.

The main issue is that although the notification to the sender uses the "Local Postmaster" address from MailScanner config, something is wrong with the email headers / envelope, which means the notifications end up in Spam boxes when delivered.

SO:
These are the relevant headers from the email the server admin receives: (is delivered correctly / not spam)
X-Sender-Id: 075q62ou7o|env-sender|postmaster@host.example.net
X-cumulushosting-MailScanner-From: postmaster@host.example.net
Received: from mailnull by host.example.net with MailScanner (Exim 4.92) (envelope-from <postmaster@host.example.net>) id 1iw4d4-0030lF-Lh for postmaster@host.example.net; Mon, 27 Jan 2020 13:40:38 +0000


These are the headers from the email the sender receives: (and goes to spam)
X-Sender-Id: 075q62ou7o|mailer-daemon|37.187.133.213|notndr
X-cumulushosting-MailScanner-From:
Received: from mailnull by host.example.net with MailScanner (Exim 4.92) id 1iw4d4-0030lA-Kp for user@domain.com; Mon, 27 Jan 2020 13:40:38 +0000

(The X-Sender-ID is added in by Mailchannels).

Basically, it seems the email to the sender doesn't have the "postmaster@host.example.net" as the from address. How can I correct this?
Post Reply