This is a discussion on postfix address rewriting - regular expressions possible? within the alt.comp.mail.postfix forums, part of the Mail Servers and Related category; Hi, I'm on the way replacing an old sendmail internal relay with a postfix on suse 9.2 My ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
I'm on the way replacing an old sendmail internal relay with a postfix on suse 9.2 My tests hows it's working pretty well. But one problem left: My old Groupwise mailserver is adding "postdomain." to all sender mail addresses in special occasions. <homer.s@mydomain> -> <postdomain.homer.s@mydomain.com> At the moment I'm using a script running sed "s/<postdomain./>/g" to get rid of that. Is there any chance to include such reg expr. logic into postix's address rewriting rules? Regards, Bernd |
|
|||
|
okay, got it ...
in canonical and virtual address mapping target to regexp:/etc/postfix/canonical or /virtual and use this regexp in the above files: /^postdomain.(.*)@(.*)$/ $(1)@myDomain.com Postfix is sooo coooool! Thanks guys ... On Tue, 14 Dec 2004 20:02:51 +0100, Bernd <motionseverywhere@gmx.net> wrote: >Hi, >I'm on the way replacing an old sendmail internal relay with a postfix >on suse 9.2 >My tests hows it's working pretty well. But one problem left: >My old Groupwise mailserver is adding "postdomain." to all sender mail >addresses in special occasions. ><homer.s@mydomain> -> <postdomain.homer.s@mydomain.com> >At the moment I'm using a script running sed "s/<postdomain./>/g" to >get rid of that. >Is there any chance to include such reg expr. logic into postix's >address rewriting rules? > >Regards, > Bernd |