Please don't top-post replies. Also note, I set Reply-To: to keep discussions on list. I do not want a CC:.
On Fri, Mar 26, 2010 at 06:03:47AM +0530, Chaminda Indrajith wrote: > ~user/.forward+spam would be a good solution for me since my > users are system users. > > Could you give me an example for the following? I can configure > amavisd-new to do + address extension. > > ## Deliver user+s...@example.com mails to /home/user/Maildir/.Junk > > .Junk is also in Maildir format. Sure. While I would prefer to see you try it yourself, this will complete the thread for the archives. I gave Voytek examples for virtual(8), so here's yours: u...@server:~$ echo '/home/user/Maildir/.Junk/' > ~/.forward+spam The file should be owned and readable by this user. Likewise, /home/user/Maildir/.Junk/ needs rwx permissions for this user. The trailing slash on the directory name is what tells local(8) that you're using a maildir. Most OS's that I have experience with have a /etc/skel directory which is used to populate the HOME for a new user. You can't use variables like $USER in a .forward file, and you obviously cannot have an absolute path in a skel file, but this worked for me: r...@server:~# echo '~/Maildir/.Junk/' > /etc/skel/.forward+spam Quoting is necessary there to prevent expansion of "~". Consult your OS documentation for information on new user creation and default files. > >References: > > http://www.postfix.org/postconf.5.html#recipient_delimiter > > http://www.postfix.org/local.8.html > > http://www.postfix.org/aliases.5.html -- Offlist mail to this address is discarded unless "/dev/rob0" or "not-spam" is in Subject: header