procmail
[Top] [All Lists]

Mail forwarding with regex

2010-03-05 07:52:58
hello list :-),

i'm new here and i'm really not a guru of procmail, so i hope its not
a boring question to you i want to ask. i have two domains foo.net and
bar.net. now i wan't to map A to B. So everything to user(_at_)foo(_dot_)net
should be forwarded to user(_at_)bar(_dot_)net(_dot_) i don't have any access 
to the
mailserver config, so i want to do somethink like this:

:0H
* ^TO(.*)@foo.net
! $1(_at_)bar(_dot_)net

user1(_at_)foo(_dot_)net -> user1(_at_)bar(_dot_)net
user2(_at_)foo(_dot_)net -> user2(_at_)bar(_dot_)net
user3(_at_)foo(_dot_)net -> user3(_at_)bar(_dot_)net
user4(_at_)foo(_dot_)net -> user4(_at_)bar(_dot_)net
user5(_at_)foo(_dot_)net -> user5(_at_)bar(_dot_)net
user6(_at_)foo(_dot_)net -> user6(_at_)bar(_dot_)net
user7(_at_)foo(_dot_)net -> user7(_at_)bar(_dot_)net
user8(_at_)foo(_dot_)net -> user8(_at_)bar(_dot_)net
user9(_at_)foo(_dot_)net -> user9(_at_)bar(_dot_)net
user10(_at_)foo(_dot_)net -> user10(_at_)bar(_dot_)net
user11(_at_)foo(_dot_)net -> user11(_at_)bar(_dot_)net

thanks,
 patrick

-- 
Niemann + Frey GmbH
Adolf-Dembach-Str. 24
47829 Krefeld
Tel. +49 2151 5554-263
Geschäftsführer: Gerd Frey
Sitz und Registergericht: Krefeld HRB 10851

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>