|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: procmail in virtual environment
From: mouss (usebsd
free.fr)
Date: Fri Aug 12 2005 - 17:27:11 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Cami wrote:
> Renzetti Federico wrote:
>
>> Hi all,
>> I'm trying to setup postfix+openldap+spamassassin (via spampd) with
>> procmail in virtual environment.
>> Virtual user is vmail (/var/vmail/<domain>/<user>)
>> I tried mailbox_command=/usr/bin/procmail but I had no result.
>
Citing http://www.postfix.org/postconf.5.html#mailbox_command
Optional external command that the local(8)
<http://www.postfix.org/local.8.html> delivery agent ....
It says local, not virtual. use virtual_transport instead.
> [Cami wrote:] If i remember correctly, procmail does not support
> virtual users.
It should work the same way as maildrop. replacinf maildrop with
procmail in main.cf and master.cf should make it.
now, procmail needs to know where to deliver the message, which could be
achieved in procmailrc by:
EXTENSION="$1"
RECIPIENT=tolower("$2")
USER="$3"
DOMAIN="$4"
SENDER="$5"
DEFAULT=/base/of/mailstore/$DOMAIN/$USER/Maildir/
...
you can add /base/of/mailstore/$DOMAIN/$USER/.procmailrc as an argument
in master.cf so that procmail won't look it up in $HOME.
now, that depends on what kind of virtual setup the OP needs.
Disclaimer: I don't use procmail, so I didn't test the above...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]