LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Procmail doesn't work with alias? Possibly? (https://www.linuxquestions.org/questions/linux-software-2/procmail-doesnt-work-with-alias-possibly-738308/)

Dan BadJar 07-07-2009 08:25 AM

Procmail doesn't work with alias? Possibly?
 
Hello!
This is my first post in this forum, sorry for my english that's not so good ;-)Well, the problem is that procmail seems ignoring mailboxes, delivering the message only to the last mailbox found in the alias.
Example:
I use postfix, and I have the alias called alias1. This is the log of postfix:
Jul 7 11:14:03 SLACKSERVER2 postfix/pipe[31603]: 5C358726CB: to=<utente2@slackmail.org>, orig_to=<alias1>, relay=procmail, delay=0.14, delays=0.04/0.02/0/0.08, dsn=2.0.0, status=sent (delivered via procmail service)
Jul 7 11:14:03 SLACKSERVER2 postfix/pipe[31603]: 5C358726CB: to=<utente3@slackmail.org>, orig_to=<alias1>, relay=procmail, delay=0.14, delays=0.04/0.02/0/0.08, dsn=2.0.0, status=sent (delivered via procmail service)
Jul 7 11:14:03 SLACKSERVER2 postfix/pipe[31603]: 5C358726CB: to=<utente4@slackmail.org>, orig_to=<alias1>, relay=procmail, delay=0.14, delays=0.04/0.02/0/0.08, dsn=2.0.0, status=sent (delivered via procmail service)
Jul 7 11:14:03 SLACKSERVER2 postfix/pipe[31603]: 5C358726CB: to=<utente5@slackmail.org>, orig_to=<alias1>, relay=procmail, delay=0.14, delays=0.04/0.02/0/0.08, dsn=2.0.0, status=sent (delivered via procmail service)
Jul 7 11:14:03 SLACKSERVER2 postfix/pipe[31603]: 5C358726CB: to=<utente6@slackmail.org>, orig_to=<alias1>, relay=procmail, delay=0.14, delays=0.04/0.02/0/0.08, dsn=2.0.0, status=sent (delivered via procmail service)

Procmail delivers the message only to the last one: utente6@slackmail.org
My global procmailrc is:

PATH=/usr/bin:/bin:/usr/local/bin:.
DROPPRIVS=yes
MAILDIR=$HOME/$DOMAIN/$USER
DEFAULT=$MAILDIR/
LOGFILE=$MAILDIR/mail.log
LOCKFILE=$MAILDIR/mail.lock
LOG="
Parameter HOME is $HOME
Parameter DOMAIN is $DOMAIN
Parameter USER is $USER
Parameter NEXTHOP is $NEXTHOP
Parameter MAILDIR is $MAILDIR
Parameter DEFAULT is $DEFAULT
"
VERBOSE=yes


So, what happens in mail.log is
Parameter HOME è /home/emails
Parameter DOMAIN è slackmail.org
Parameter USER è utente6
Parameter NEXTHOP è slackmail.org
Parameter MAILDIR è /home/emails/slackmail.org/utente6
Parameter DEFAULT è /home/emails/slackmail.org/utente6/
procmail: [31604] Tue Jul 7 11:14:03 2009
procmail: Assigning "LASTFOLDER=/home/emails/slackmail.org/utente6/new/1246958043.31604_1.SLACKSERVER2"
Subject: Report Stato Server SLACKSERVER2.pinguini.org
Folder: /home/emails/slackmail.org/utente6/new/1246958043.31604_1.SL 1515
procmail: Unlocking "/home/emails/slackmail.org/utente6/mail.lock"

It seems to be everything ok, but the message is delivered only to this mailbox: utente6
Any idea?
Thanks in advice for all possible replies.


All times are GMT -5. The time now is 05:15 AM.