Quarantine_reports and backward compatibility

Questions and answers about how to do stuff
Post Reply
henk
Posts: 171
Joined: 14 Dec 2015 22:16
Location: Netherlands
Contact:

Quarantine_reports and backward compatibility

Post by henk » 13 Mar 2018 14:05

In the current MailWatch version, the Non administrator User Type requires a valid email address for usernames, by default.
In previous MailWatch versions we could enter any username in a non valid email format, to generate 1 single quarantine report for all mail-users for a specific domain.
To select all quarantine mail for *@localhost and send to 1 recipient, (monitor@localhost is just a non existing user, used only for mailwatch)
User Management.png
User Management.png (15.56 KiB) Viewed 227 times
In the current MailWatch version, you can re-enable this, if needed.

Code: Select all

vi /var/www/html/mailscanner/conf.php
We have an option to bypass the username mail format for non Administrators

Code: Select all

//Allow the username of domain admins and normal users to not be in mail format (not recommended, only for backward compatibility)
define('ALLOW_NO_USER_DOMAIN',true);

Code: Select all

/usr/local/bin/mailwatch/tools/Cron_jobs/mailwatch_quarantine_report.php
=== Generating report for monitor@localhost type=D
==== Recipient e-mail address is xxxx@xxxx.xxx
==== Building list for localhost
==== Found 897 quarantined e-mails

Nice programming of the MailWatch Team :clap:

Post Reply