# Functions
No description provided by the author
Get acl groups by names, via case conditions by url location.
Mapping multitable map by subject(src or key) in smta acl format.
Mapping test requests.
Mapping amavis regexp function(new_RE) and hash type arrays:
[new_RE( [qr'^[email protected]' => 'BYPASS_ENCRYPTED'], [qr'^.*$' => 'DEFAULT'] )];
This hash and regexp format is perl-like
*/.
Create map for recipient in format:
[email protected]:
{priority: 0
senders:
[{src: ya.lan, dst: +15, priority: 0}]}
*/.
Mapping regexp lookup table to acl names format.
Convert this map:
[email protected]:
{priority: 0
senders:
[{src: ya.lan, dst: +15, priority: 0}]}
To usability score-map json:
{
"maps": [{
"recipient": "[email protected]",
"priority": 0,
"senders": [{
"priority": 0,
"scores": "+15",
"sender": ".dx.lan"
}, {
"priority": 1,
"scores": "+15",
"sender": "exampleUser.lan"
}]
},
{
"recipient": "[email protected]",
"priority": 1,
"senders": [{
"priority": 0,
"scores": "+15",
"sender": ".dx.lan"
}, {
"priority": 1,
"scores": "+15",
"sender": "exampleUser.lan"
}]
}
]
}
*/.
Update acl table groups by names via case conditions by url location.
Smart test
This test analysis all input rules, maps, etc and return result checks:
Example: your message may be banned as spam
Example2: your message will be banned if contains attachment
*/.
Validate parameters and create map adapted for postfix and amavis
Rewrite STRONG, WHITELIST etc..
Check incoming map name
and return extracted map name string from incoming json*/.
Check incoming parameters from json request and generate regexp lookup table string for postfix.Lookup table sorting by Priority from request.
Validate parameters and create amavis $recipient_score_sender_maps
*/.