$postmastername and $localpostmaster - Where are they defined?

General eFa discussion
Post Reply
dbrunt
Posts: 64
Joined: 28 Nov 2015 00:09

$postmastername and $localpostmaster - Where are they defined?

Post by dbrunt » 28 Nov 2015 00:11

$postmastername and $localpostmaster - Where are they defined?

Thanks,
Daniel

User avatar
shawniverson
Posts: 3005
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

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

Post by shawniverson » 28 Nov 2015 12:10

/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
Version eFa 4.0.2 now available!

dbrunt
Posts: 64
Joined: 28 Nov 2015 00:09

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

Post by dbrunt » 03 Dec 2015 18:24

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@..."

User avatar
shawniverson
Posts: 3005
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

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

Post by shawniverson » 05 Dec 2015 10:29

I will verify this, may be a bug.
Version eFa 4.0.2 now available!

User avatar
shawniverson
Posts: 3005
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

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

Post by shawniverson » 06 Dec 2015 23:24

Unable to reproduce? Was MailScanner restarted after the change?
Version eFa 4.0.2 now available!

dbrunt
Posts: 64
Joined: 28 Nov 2015 00:09

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

Post by dbrunt » 07 Dec 2015 23:37

Yes, the MailScanner service was restarted.

dbrunt
Posts: 64
Joined: 28 Nov 2015 00:09

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

Post by dbrunt » 07 Dec 2015 23:41

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]

User avatar
shawniverson
Posts: 3005
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

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

Post by shawniverson » 08 Dec 2015 23:11

I wonder if the "_" are a problem here? Tried it without any non-alphas?
Version eFa 4.0.2 now available!

dbrunt
Posts: 64
Joined: 28 Nov 2015 00:09

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

Post by dbrunt » 11 Dec 2015 17:46

I have just changed it to "CLOUDtility"
Last edited by dbrunt on 11 Dec 2015 17:47, edited 1 time in total.

dbrunt
Posts: 64
Joined: 28 Nov 2015 00:09

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

Post by dbrunt » 11 Dec 2015 17:47

Nope. Still says MailScanner...

Code: Select all

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

User avatar
shawniverson
Posts: 3005
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

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

Post by shawniverson » 12 Dec 2015 00:04

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
Version eFa 4.0.2 now available!

dbrunt
Posts: 64
Joined: 28 Nov 2015 00:09

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

Post by dbrunt » 12 Dec 2015 01:09

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] 

User avatar
shawniverson
Posts: 3005
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

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

Post by shawniverson » 12 Dec 2015 12:37

I'm going to assume this is a MailScanner bug, open an issue, and test some more.
Version eFa 4.0.2 now available!

User avatar
shawniverson
Posts: 3005
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

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

Post by shawniverson » 12 Dec 2015 12:39

Version eFa 4.0.2 now available!

dbrunt
Posts: 64
Joined: 28 Nov 2015 00:09

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

Post by dbrunt » 29 Dec 2015 20:39

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

Post Reply