On Fri, March 26, 2010 9:51 am, /dev/rob0 wrote: > On Fri, Mar 26, 2010 at 08:26:33AM +1100, Voytek Eymont wrote: > >> so, if I was to create a mail user 'voytek+spam' in the database, >> '+spam' mail would end up in voytek+spam mail user maildir ?
> The user for virtual(8) must be the full address: > voy...@example.com example.com/voytek/maildir/ voytek+s...@example.com > example.com/voytek/maildir/.spam/ ot...@example.com > The concept of "user" is blurred here. To virtual, these are like > different users. But to your IMAPd, ideally, you are simply delivering mail > to another folder owned by that virtual user. > > There might be SQL tricks you can use to get the +spam queries to > return the spam mailfolder paths, too. That's beyond the scope of this > list, and beyond my very modest SQL literacy level. But DB storage is > cheap, and it's easy to script something like this to populate your > database for all existing users. rob0, many thanks for explanations !! this now seems simpler than I feared!! I've looked at this in the past on and off, even installed maildrop, but the virtual delivery agent seem a simpler way I've created a new mailbox as for 'voytek+spam', edited relevant path, and, bingo: voytek's 'spam' IMAP folder gets the '+spam' thanks again!! Mar 26 17:29:18 bilby postfix/lmtp[5924]: 2F4E3B44906: to=<voytek+s...@sbt.net.au>, relay=127.0.0.1[127.0.0.1]:10024, delay=6.1, delays=2.2/0.01/0.01/3.8, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=02838-15, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as AFFACB448FD) Mar 26 17:30:06 bilby postfix/virtual[6058]: B8F59B44909: to=<voytek+s...@sbt.net.au>, relay=virtual, delay=936, delays=936/0.01/0/0.05, dsn=2.0.0, status=sent (delivered to maildir) I guess I can start setting to deliver individual spam to individual users with virtual and plus subaddressing -- Voytek