Re: virtual_mailbox_maps w/out massive tables?
- rihad wrote:
> mouss wrote:postfix is smart too: it doesn't allow substitution :)
>> rihad wrote:
>>> This is probably a faq, but still... I've been playing with virtual
>>> virtual_mailbox_domains = bar.com
>>> virtual_mailbox_base = /home/massmail
>>> virtual_mailbox_maps = regexp:/usr/local/etc/postfix/home.map
>>> virtual_minimum_uid = 1002
>>> virtual_uid_maps = static:1002
>>> virtual_gid_maps = static:1002
>>> /^(.+)@([^@]+)$/ $2/$1/
>> when you have it working, remind me to send mail to
> Agreed :) This is just alpha version, for getting to know Postfix.
> Still I thought virtual_mailbox_base was as smart as it looked like?
> qmail for example disallows .. in paths.
>>> username > homedir mapping is pretty static in its nature. How can IAvoid tricks whenever possible. Gross hacks fire back.
>>> still do it without silly large data tables?
>> You need a "silly large data table" because you need to only accept
>> mail to valid addresses. with your wildcard setup, all addresses are
> Aha, in the strive for getting regexp: to work I haven't yet thought any
> further. Of course you're right. So, ...
btw. prefer pcre over regexp.
>>they may be needed if you want to deliver to folders based on some
>> if you really want to accept all mail, then "break" recipient
>> validation (a wildcard virtual alias is enough) and use maildrop,
>> dovecot or procmail to do the actual delivery. but you'll have to
>> check the recipient address to avoid random stuff in your filesystem.
> any of these alternative delivery methods aren't required to get simple
> things going.