Am 20.11.2014 um 15:10 schrieb Wietse Venema: > As documented, Postfix does not allow regular expression substitutions > in virtual_mailbox_maps lookup results. That would give attackers > too much control over where mail will be delivered. > > Why aren't you using Dovecot's mail delivery agent? > > Wietse
a global dovecot sieve rule may do that job > > Brandon Metcalf: >> I believe this solution will result in email getting delivered to >> vhost/foo.org rather than vhost/<sub>.foo.org. We need the latter. >> >> On Thu, Nov 20, 2014 at 7:49 AM, Wietse Venema <wie...@porcupine.org> wrote: >>> Brandon Metcalf: >>>> We are looking for a way to accept email for all users where the >>>> address matches /bob@.*\.foo\.org/ without maintaining a list of all >>>> possible subdomains. We use dovecot as our transport with postfix and >>>> deliver mail locally to /var/mail/vhosts/<subdomain>/bob/. The >>>> username will always be the same. >>>> >>>> Any ideas? Thanks. >>> >>> Use a virtual_alias_maps regular expression table. >>> >>> /^bob@.*\.foo\.org$/ b...@foo.org >>> >>> To propagate the subdomain as an address extension: >>> >>> /^bob@(.*).\foo\.org$/ bob+$1...@foo.org >>> >>> (this assumes recipient_delimiter=+; with Postfix 2.11 the >>> recipient_delimiter can specify a set, such as "+-"). >>> >>> Wietse >> Best Regards MfG Robert Schetterer -- [*] sys4 AG http://sys4.de, +49 (89) 30 90 46 64 Franziskanerstraße 15, 81669 München Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein