Use of regexp/domain matching in per_user config?
The policyd-
"
In addition to specifying individual users, regular expression matching
is also available, but may have performance implications since the
entire user table has to be traversed for each message recipient.
"
However, the code does a simple string comparison.
http://
A simple implementation would be have it check the domain as well so that I could specify something like
example.
So that mails sent to any recipient of the domain example.net is allowed to be forwarded via google.com but any other recipients sent from google.com are subject to the regular SPF checks.
A simple additional test on line 78 would probably solve this.
if user != recipient and user != recipient.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Jonas Jonsson
- Solved:
- Last query:
- Last reply: