Page 1 of 1

Message Quarantine Report

Posted: 17 Feb 2019 02:57
by alwtech
Message Quarantine Report

Is there a way to make the system automatically create the users once email transverses the system or a self signup?
This system will be used for multiple domains and users.
I am tring to avoid having to enter everyone in manually.

if not then what do you do for a user that would have multiple aliases under one account?

Re: Message Quarantine Report

Posted: 17 Feb 2019 14:30
by shawniverson
alwtech wrote: 17 Feb 2019 02:57 Is there a way to make the system automatically create the users once email transverses the system or a self signup?
Not yet. Automatic user creation or self sign up would require some form of sender or recipient verification to ensure only accounts are created for real users. It is something that I am considering for v4.
This system will be used for multiple domains and users.
I am tring to avoid having to enter everyone in manually.
Here's some tools that may be of interest

https://github.com/E-F-A/v3/tree/master/tools
if not then what do you do for a user that would have multiple aliases under one account?
MailWatch has a filters action where you can define aliases for a single account.

Re: Message Quarantine Report

Posted: 17 Feb 2019 14:56
by alwtech
I am not sure what I am doing wrong but I have the box checked under the user to send dialy report.. nothing happened yesterday for that.
Today I went in and clicked the button to sent the report now and the page refreshes with the message "The quarantine report was successfully sent." but I never see the report sent out through maillog. I am not able to find anything else that might show the error.
Can you help direct me on how to troublshoot this futher ?

Re: Message Quarantine Report

Posted: 17 Feb 2019 15:17
by shawniverson
Try running it from the shell and see what happens:

Code: Select all

sudo /usr/local/bin/mailwatch/tools/Cron_jobs/mailwatch_quarantine_report.php

Re: Message Quarantine Report

Posted: 17 Feb 2019 15:47
by alwtech
=== Generating report for j**@s*******l.net type=U
==== Recipient e-mail address is j**@s*******l.net
==== Building list for j**@s*******l.net
==== Found 0 quarantined e-mails


When you login to the web portal. It shows there are items in quarantine
See attachment

Re: Message Quarantine Report

Posted: 17 Feb 2019 17:49
by mattch
Maybe one-day mailwatch can connect to multiple LDAP connections like postfix can.

using the Mailwatch-Ad-Sync script works flawlessly. so much so its easy enough for me to build a EFA/vm dedicated for each "exchange server" then backup and restore the bayes from one that has a good amount of tokens for your mail patterns.

i haven't tried the other tools to import user.

some things that helped me is to send a bonified spam message using an SA rule then in mailwatch go to that user and send now.
for that i :

Code: Select all

 /etc/mail/spamassassin/mattchs-custom-rules.cf

body BYPASS_RULE /mattchs-super-secret-bypass-string/
score BYPASS_RULE -100
describe BYPASS_RULE Bypass Rule

body dePASS_RULE /spamson/
score dePASS_RULE 100
describe dePASS_RULE Depass Rule to force spam

Re: Message Quarantine Report

Posted: 17 Feb 2019 18:55
by alwtech
What about the reports not seeming to generate ?

Re: Message Quarantine Report

Posted: 17 Feb 2019 20:07
by shawniverson
You need actual spam in your quarantine before a report will generate.

Re: Message Quarantine Report

Posted: 17 Feb 2019 21:41
by alwtech
Then what are the items that show up in quarantine considered?

Re: Message Quarantine Report

Posted: 17 Feb 2019 22:50
by mattch
only spam messages come through in the quarantine report.
"clean" messages wont show in the report.

get a spam though to that user and then send the report from mailwatch.

for me sending spam test messages was easily achieved with a custom SA rule that assigns high score with a certain string in the body, on the opposite side another string to force a low score, so when testing it wont be treated as spam when it shouldnt.

Re: Message Quarantine Report

Posted: 18 Feb 2019 00:05
by henk
mattch wrote: 17 Feb 2019 22:50 only spam messages come through in the quarantine report.
"clean" messages wont show in the report.
hence the name: quarantine report. :whistle: and who wants to receive an empty report if there are no quarantined messages?

Re: Message Quarantine Report

Posted: 25 Feb 2019 01:47
by crazykilla86
Is there a way for the administrator of MailWatch to get a quarantine report for all recipients?

Re: Message Quarantine Report

Posted: 26 Feb 2019 15:54
by mattch
crazykilla86 wrote: 25 Feb 2019 01:47 Is there a way for the administrator of MailWatch to get a quarantine report for all recipients?
if thats your goal then dont use the quarantine email report and just manage quarantine from mailwatch web ui. the quarantine report will take to mailwatch anyway. in mailwatch you can add a filter of any particular user email address to see their stuff or view it all, thats what i do for some anyway. :banana-stoner:

Re: Message Quarantine Report

Posted: 26 Feb 2019 22:20
by henk
You could take a look at viewtopic.php?t=3002

I use efa with fetchmail, so localhost will cover all domains for me :think:
You could create 1 user for each domain.