Page 1 of 1

$postmastername and $localpostmaster - Where are they defined?

Posted: 28 Nov 2015 00:11
by dbrunt
$postmastername and $localpostmaster - Where are they defined?

Thanks,
Daniel

Re: $postmastername and $localpostmaster - Where are they defined?

Posted: 28 Nov 2015 12:10
by shawniverson
/etc/MailScanner/MailScanner.conf

Code: Select all

# Where to send the notices.
# This can also be the filename of a ruleset.
Notices To = postmaster

# Address of the local Postmaster, which is used as the "From" address in
# virus warnings sent to users.
# This can also be the filename of a ruleset.
Local Postmaster = postmaster

Re: $postmastername and $localpostmaster - Where are they defined?

Posted: 03 Dec 2015 18:24
by dbrunt
I have changed "Notices From = CLOUDtility MailScanner" and "Local Postmaster = mailscanner" in /etc/MailScanner/MailScanner.conf.
The variable $localpostmaster is reflected correctly in email generated as per /etc/mailscanner/reports/en/recipient.spam.report.txt but the variable $postmastername ("Notices From =") in the email remains unchanged. The email still says "From: MailScanner <mailscanner@..."

Re: $postmastername and $localpostmaster - Where are they defined?

Posted: 05 Dec 2015 10:29
by shawniverson
I will verify this, may be a bug.

Re: $postmastername and $localpostmaster - Where are they defined?

Posted: 06 Dec 2015 23:24
by shawniverson
Unable to reproduce? Was MailScanner restarted after the change?

Re: $postmastername and $localpostmaster - Where are they defined?

Posted: 07 Dec 2015 23:37
by dbrunt
Yes, the MailScanner service was restarted.

Re: $postmastername and $localpostmaster - Where are they defined?

Posted: 07 Dec 2015 23:41
by dbrunt
This is what we have currently:

Code: Select all

# The visible part of the email address used in the "From:" line of the
# notices. The <user@domain> part of the email address is set to the
# "Local Postmaster" setting.
Notices From = CLOUDtility_Mail_Scanner

# Where to send the notices.
# This can also be the filename of a ruleset.
Notices To = postmaster

# Address of the local Postmaster, which is used as the "From" address in
# virus warnings sent to users.
# This can also be the filename of a ruleset.
Local Postmaster = mailscanner
and this is what the email says:
From: MailScanner [mailto:mailscanner@our_domain.com]

Re: $postmastername and $localpostmaster - Where are they defined?

Posted: 08 Dec 2015 23:11
by shawniverson
I wonder if the "_" are a problem here? Tried it without any non-alphas?

Re: $postmastername and $localpostmaster - Where are they defined?

Posted: 11 Dec 2015 17:46
by dbrunt
I have just changed it to "CLOUDtility"

Re: $postmastername and $localpostmaster - Where are they defined?

Posted: 11 Dec 2015 17:47
by dbrunt
Nope. Still says MailScanner...

Code: Select all

From: MailScanner [mailto:emailscanner@...] 

Re: $postmastername and $localpostmaster - Where are they defined?

Posted: 12 Dec 2015 00:04
by shawniverson
Wait, I wonder if these alerts are coming from mailwatch instead of MailScanner.

Take a look in /var/www/html/mailscanner/conf.php

Look for QUARANTINE_FROM_ADDR and QUARANTINE_REPORT_FROM_NAME

Re: $postmastername and $localpostmaster - Where are they defined?

Posted: 12 Dec 2015 01:09
by dbrunt
That report is already working correctly.

Code: Select all

// The quarantine flag is only available on MailScanner >=4.43
// it will dramtically improved the speed of quarantine operations
// but requires that you use the quarantine_maint.php in place of
// the clean.quarantine script provided with MailScanner.
define('QUARANTINE_USE_FLAG', true);
define('QUARANTINE_DAYS_TO_KEEP', 30);
define('QUARANTINE_MAIL_HOST', '127.0.0.1');
define('QUARANTINE_FROM_ADDR', 'emailscanner@mydomain.com');
define('QUARANTINE_REPORT_FROM_NAME', 'CLOUDtility Email Scanner');
define('QUARANTINE_REPORT_SUBJECT', 'My Daily Quarantine Report');
define('QUARANTINE_SUBJECT', 'Message released from quarantine');
define('QUARANTINE_MSG_BODY', 'Please find the original message that was quarantined attached to this email.

Code: Select all

From: CLOUDtility Email Scanner [mailto:emailscanner@mydomain.com] 

Re: $postmastername and $localpostmaster - Where are they defined?

Posted: 12 Dec 2015 12:37
by shawniverson
I'm going to assume this is a MailScanner bug, open an issue, and test some more.

Re: $postmastername and $localpostmaster - Where are they defined?

Posted: 12 Dec 2015 12:39
by shawniverson

Re: $postmastername and $localpostmaster - Where are they defined?

Posted: 29 Dec 2015 20:39
by dbrunt
I finally found where it is coming from:
/etc/MailScanner/reports/en/languages.conf:

Code: Select all

# Used in filename/filetype/content reports
MailScanner = MailScanner