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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |