|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Some help with canonical (and/or regexp) please
From: Alex van den Bogaerdt (alex
ergens.op.het.net)
Date: Thu Mar 27 2003 - 07:40:32 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
in main.cf:
canonical_maps = regexp:/etc/postfix/canonical-regexp
in canonical-regexp:
/^[^
]*$/ ${1}
some.host.invalid
in the logfile:
postfix/cleanup[18055]: warning: regexp map /etc/postfix/canonical-regexp, line 1: out of range replacement index "1": skipping this rule
Clearly I must be doing something wrong. Please enlighten me.
My intention is to rewrite
"From: <friend>"
into
"From: <friend
some.host.invalid>"
Side note:
This is because of "append_at_myorigin = yes" which I shouldn't
alter unless I fully understand what's going to happen (and I don't).
Apart from the warning not to change it, I couldn't find more information
on append_at_myorigin; I'd appreciate more info on this either.
TIA,
Alex
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]