question about user types

General eFa discussion
Post Reply
ovizii
Posts: 445
Joined: 11 May 2016 08:08

question about user types

Post by ovizii » 13 May 2019 04:44

I previously had only listed one user per domain as domain administrator, it looked like this:

https://monosnap.com/file/TMty0szOLSMhT ... F11tILsmiE

you notice the user name is the full domain. Seems that is no longer possible as I now get: "For all users other than Administrator you must use an e-mail address for the username"

any quick way to set defaults up for a domain without manually creating each and every user?

ovizii
Posts: 445
Joined: 11 May 2016 08:08

Re: question about user types

Post by ovizii » 13 May 2019 04:45

Found this manual entry: https://docs.mailwatch.org/using/user-filter.html

is that how it works now? Should I rename my domain admin users?

henk
Posts: 360
Joined: 14 Dec 2015 22:16
Location: Netherlands
Contact:

Re: question about user types

Post by henk » 13 May 2019 13:36

Not sure if you mean this: viewtopic.php?t=3002
It's not recommended, but it works fine with me.

/var/www/html/mailscanner/conf.php

Code: Select all

//Allow domain admins to create/edit/delete other domain admins from the same domain (not recommended, only for backward compatibility)
define('ENABLE_SUPER_DOMAIN_ADMINS',true);
//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);

ovizii
Posts: 445
Joined: 11 May 2016 08:08

Re: question about user types

Post by ovizii » 14 May 2019 07:32

Yes, thanks henk, that is exactly what I meant but the link you posted is a bit confusing as the screenshot does not exactly fit the text you wrote there.

This is what I am confused about:
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.
as far as I remember, if I simply entered a domain as username and added an email to that user, that email would receive a quarantine report for that whole domain.

Now if I look at your screenshot, the username is a full email address meaning that user will only receive a quarantine report for that particular email, or am I wrogn here? Shouldn't the username be: @localhost and the recipient email monitor@localhost?

henk
Posts: 360
Joined: 14 Dec 2015 22:16
Location: Netherlands
Contact:

Re: question about user types

Post by henk » 14 May 2019 14:04

as far as I remember, if I simply entered a domain as username and added an email to that user, that email would receive a quarantine report for that whole domain.
You did remember well :D

As I use fetchmail to fetch mail form external sources, I map that to a local user. So every mail user has a user@localhost account on EFA. ( also dovecot is running ). The the recipient email is an admin user at my domain (my internal mailserver)

Just succesfull tested the domain only username: localhost
2019-05-14-User Management.png
2019-05-14-User Management.png (15.42 KiB) Viewed 138 times
Result:

Code: Select all

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

 === Generating report for localhost type=D
 ==== Recipient e-mail address is test@mydomain.com
 ==== Building list for localhost
 ==== Found 4 quarantined e-mails

 ==== Sent e-mail to test@mydomain.com

 === Generating report for monitor@localhost type=D
 ==== Recipient e-mail address is test@mydomain.com
 ==== Building list for localhost
 ==== Found 4 quarantined e-mails

 ==== Sent e-mail to test@mydomain.com

ovizii
Posts: 445
Joined: 11 May 2016 08:08

Re: question about user types

Post by ovizii » 15 May 2019 04:41

Thanks for confirming and digging out that old post. I did not have to add a new user in a while but when I tried adding 2 new domains and saw that all my old users were in a different format, I just vaguely remembered there was a reason for that but couldn't find where it was described :-)

I'll get to editing my config today so that I can keep using this old username format.

Post Reply