Re: Rewriting Mailrecievers

This is a discussion on Re: Rewriting Mailrecievers within the mailing.postfix.users forums, part of the Mail Servers and Related category; Hi Viktor, Hi List, Victor Duchovni schrieb: > Catchall mailboxes are a bad idea, but if you absolutely must have ...


Go Back   Usenet Forums > Mail Servers and Related > mailing.postfix.users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-05-2005
Cemil Degirmenci
 
Posts: n/a
Default Re: Rewriting Mailrecievers

Hi Viktor, Hi List,

Victor Duchovni schrieb:

> Catchall mailboxes are a bad idea, but if you absolutely must have them
> (did I say they are bad idea yet?) use a rexexp or pcre virtual(5) tabl=

e.
>=20
> http://www.postfix.org/ADDRESS_REWRITING_README.html
> http://www.postfix.org/postconf.5.ht...ual_alias_maps
> http://www.postfix.org/virtual.5.html
> http://www.postfix.org/DATABASE_README.html
> http://www.postfix.org/regexp_table.5.html
> http://www.postfix.org/pcre_table.5.html
>=20
> No sloppy regular expressions!
>=20
> /^pattern$/ replacement
>=20
> with all *literal* "." characters in pattern prefixed with a "\" charac=

ter, ...
>=20
> Virtual(5) expansion is recursive, make sure that the replacement strin=

g
> is not forever subject to rewriting without at some point either not ma=

tching,
> or matching with a replacement string that is equal to the input string=

..
>=20


First of all thanks. I know that catchalls are a really bad idea, but it
wasnt my one :-/

Currently i have my virtual-User Table in a mysql-database. Can i put my
regexp also there?

mysql> show tables;
+----------------+
| Tables_in_mail |
+----------------+
| accountuser |
| adminuser |
| alias |
| domain |
| domainadmin |
| log |
| search |
| virtual |
+----------------+
8 rows in set (0.00 sec)

mysql> select * from virtual limit 1;
+-------------------+------+----------+--------+
| alias | dest | username | status |
+-------------------+------+----------+--------+
| foo@bar.net | box | box | 1 |
+-------------------+------+----------+--------+

so, can i make the regexp in the field "alias"?


Mit freundlichen Gr=FC=DFen / Kind regards,

Cemil Degirmenci
--=20
Wavecon GbR | Schanzaeckerstr. 43a | 90443 Nuernberg
phonenr +49 911 120 658 1 | faxnr +49 911 212 923 3
www.wavecon.de | cd@wavecon.de | gpgkeyId 0x67D5D458
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 04:48 PM.


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