Hello,
I'm using postfix with mysql and procmail to parse mail for virtual users
stored in the database. So the users doesn't have any system account.
The only problem I had is that procmail doesn't deliver mail to /var/spool/mail
by default.
I need to store the mail in /var/spool/mail/$USER by default if none
of the 3 conditions apply to the mail.
How can I do that ?
Can procmail take the username in the "From:" header, because postfix do not
pass the username in $1 ?
thanks in advance.
My /etc/procmailrc looks like that :
----
# Use maildir-style mailbox in user's home directory
#DEFAULT=$HOME/.maildir/
#DEFAULT=/var/spool/mail/
LOGFILE=/var/log/procmail.log
MAILDIR=/var/spool/mail/
USER="$1"
:0 c
/eliot/mail_backups
:0 c
* To: [0-9]*(_at_)elsa(_dot_)com
/eliot/mail_clients
:0 c
* To: [0-9]*(_at_)(_dot_)*(_dot_)elsa(_dot_)com
| /eliot/sbin/trt_mail.sh $LASTFOLDER
----
---------------------------
http://webmail.netbadri.com
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail