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 example.com/other/maildir/ other+s...@example.com example.com/other/maildir/.spam/ 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. > is that what I would need to as as 'next step' within above setup ? > > how to make that as a spam subfolder for 'voytek' ? > > is that something like... symlinking ?? voytek+spam mail user to > voytek's spam folder ?? > > sorry for dumb question, pls speak slowly... No problem, but at this point you should look at your IMAP server documentation on how to deliver to a virtual user's subfolder. The example above, I think, will work with Dovecot, but it assumes that voy...@example.com has $virtual_mailbox_base/example.com/voytek/ as HOME, and $HOME/maildir/ as top-level folder. -- Offlist mail to this address is discarded unless "/dev/rob0" or "not-spam" is in Subject: header