I get this logged;
postfix/cleanup[25132]: warning: regexp map /usr/local/etc/postfix/sendercanonical, line 1: ignoring unrecognized request
I'm trying to use Sender Canonical Rewriting because a basic alarm panel that is sending email, set the FROM email address as the same as the sending TO email address and you can't change it.
So, I have a simple setting in Sender Canonical Rewriting.
123456789@sms.gateway.com user@mydomain.com
It just doesn't seem to work.
Any ideas?
I just tried .* as the pattern match and I get this in the postfix log
postfix/cleanup[17182]: warning: regexp map /usr/local/etc/postfix/sendercanonical, line 1: unknown regexp option "c": skipping this rule
Can you recheck with this:
https://github.com/opnsense/plugins/pull/1406#issuecomment-518566685
Thanks. That's good, it now works.
In that case, can I recommend the help text is updated;
Services > Postfix > Sender Canonical Rewriting > Rewrite From
Altered to;
Pattern matching (inside the quotes) e.g. match all "/.+/" match a domain "/@domain\.com/i" match a user "/username/i"