I would like if it is possible to add in hMail the function or feature that allows you to configure filtering by inbound and outbound domains\countries at the mailbox or email account level, as Alt-N Mdaemon satisfactorily does in the part of restrictions on mailbox configuration, all reflected in the guardian.dat file in the \ mdaemon\app folder. Any clue or suggestions please.
Below I give an example of how it looks more or less in this configuration file (of course I would like it to be seen with a graphical interface)
The example in question denies access to all domains except for all those ending in *.xx
[test@domain.xx-Outbound]
Action=Returned to sender
Restrict=Yes
Address0=*.xx
[test@domain.xx-Outbound]
Action=Returned to sender
Restrict=Yes
Address0=*.xx
Add Domain\Country Restrictions in user account like MDaemon.
Re: Add Domain\Country Restrictions in user account like MDaemon.
This can be done with account rules. No scripting required, unless you want to get really fancy.
For ".xx", ".cn", ".co.uk"
IF: To [regular expression] = ^.*([a-zA-Z0-9-]{2,253}\.(xx|cn|co.uk))>?$
THEN: delete email, or forward or whatever
For ".xx", ".cn", ".co.uk"
IF: To [regular expression] = ^.*([a-zA-Z0-9-]{2,253}\.(xx|cn|co.uk))>?$
THEN: delete email, or forward or whatever
Re: Add Domain\Country Restrictions in user account like MDaemon.
OR
use zz.countries.nerd.dk as a DNSBL and score appropriately if you want to use GeoLocation data, rather than rely on domain naming conventions
use zz.countries.nerd.dk as a DNSBL and score appropriately if you want to use GeoLocation data, rather than rely on domain naming conventions
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation
https://www.hmailserver.com/documentation
Re: Add Domain\Country Restrictions in user account like MDaemon.
He doesn't want to do scripting. But yes, geoip is absolutely a better option. More accurate and more flexible.
On second look, you could trim the regex down to this: ^.*(xx|cn|co.uk)>?$
I guess I was thinking finding domains when all I needed was TLDs.
On second look, you could trim the regex down to this: ^.*(xx|cn|co.uk)>?$
I guess I was thinking finding domains when all I needed was TLDs.
Re: Add Domain\Country Restrictions in user account like MDaemon.
Setting up a DNSBL doesn't use scripting
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation
https://www.hmailserver.com/documentation
Re: Add Domain\Country Restrictions in user account like MDaemon.
Thanks for all. Ill try yours suggestions later. Perhaps in a near future a GUI Domain/IP/TLD filter its demanded for people that don´t feel very comfortable with scripts or logic operators.
Re: Add Domain\Country Restrictions in user account like MDaemon.
Thanks for all. Ill try yours suggestions later. Perhaps in a near future a GUI Domain/IP/TLD filter its demanded for people that don´t feel very comfortable with scripts or logic operators.
The main idea its restrict the world and permit only certain domains for some accounts each one. Not the opposed like https://beaukey.blogspot.com/2015/07/co ... erver.html that sounds like a global script and restrict some TLDs or domains.
Is for use in a business level where the supervision and control is very necessary for an efficient and secure use of the limited resources.
Best regards;
The main idea its restrict the world and permit only certain domains for some accounts each one. Not the opposed like https://beaukey.blogspot.com/2015/07/co ... erver.html that sounds like a global script and restrict some TLDs or domains.
Is for use in a business level where the supervision and control is very necessary for an efficient and secure use of the limited resources.
Best regards;