postfix address rewriting - regular expressions possible?

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 ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.postfix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-14-2004
Bernd
 
Posts: n/a
Default postfix address rewriting - regular expressions possible?

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

Reply With Quote
  #2 (permalink)  
Old 12-15-2004
Bernd
 
Posts: n/a
Default Re: postfix address rewriting - regular expressions possible?

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


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:23 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0