> This could be handled with files called {$local_part}-{$domain}
> but the '.' in the domain annoys me. Is there a way to
> extract the '.' from the domain?
The following director/transport requires the mailboxdir to exist
to deliver a mail to that maildir.
This way, you don't have to create a separate file. If the mailbox
exist, fine; if not, skip to the next director. If you need an alias
for one of the addresses, you just create a symlink.
cs_pop3_user_transport:
# user@??? --> /var/qmail/popboxes/domain-ext/user/Maildir
driver = appendfile
directory = /var/qmail/popboxes/${lc:${extract{1}{.}{$domain}} \
-${extract{2}{.}{$domain}}}/${lc:$local_part}/Maildir
maildir_format
user = pop
envelope_to_add
create_directory = false
prefix=""
suffix=""
cs_pop3_user_director:
driver = smartuser
transport = cs_pop3_user_transport
require_files = pop : /var/qmail/popboxes/${lc:${extract{1}{.}{$domain}} \
-${extract{2}{.}{$domain}}/$local_part}
(directory= + require_files= was broken to 2 lines [\])
G.