procmail
[Top] [All Lists]

Re: Incorrect Resolution of $HOME Variable

2009-03-30 18:50:14
THIS IS WITH REGARD TO THE deliver ISSUE ASIDE, BUT IT MAY BE SYMPTOMATIC
OF SOMETHING SEEN WITH A procmail MISCONFIGURATION OF SOME OTHER procmail
ISSUE:

Here are some log data from several logs for another test event with this
sequence:

1) Incoming "list" message to dummy user (lists(_at_)mydomain(_dot_)com = user1)
2) Matches "TEST CASE" /etc/procmailrc rule
3) Pipe through Dovecot's 'deliver' program to real user (user2)

My /etc/procmailrc includes (among other things):

SHELL=/bin/sh
MAILDIR=$HOME/Maildir
DEFAULT=$MAILDIR/
DELIVER="/usr/libexec/dovecot/deliver"
LOGFILE=$HOME/procmail.log
LOGABSTRACT=yes
VERBOSE=ON

The matching test rule is:
:0
* ^Subject.*TEST CASE
| $DELIVER -m user2

### /home/user1/procmail.log: ###

procmail: [18525] Mon Mar 30 17:05:52 2009
procmail: Match on "^Subject.*TEST CASE"
procmail: Assigning "LASTFOLDER=/usr/libexec/dovecot/deliver -m user2"
procmail: Executing "/usr/libexec/dovecot/deliver,-m,user2"
procmail: Notified comsat: "user1@:/usr/libexec/dovecot/deliver -m user2"
From user1(_at_)mydomain(_dot_)com  Mon Mar 30 17:05:52 2009
 Subject: TEST CASE test10
  Folder: /usr/libexec/dovecot/deliver -m user2 829

### /var/log/maillog: ###

1: postfix/smtpd[18517]: connect from unknown[MY.IPA.DDR.ESS]
2: postfix/smtpd[18517]: C5F3DFA0067: client=unknown[MY.IPA.DDR.ESS],
sasl_method=PLAIN, sasl_username=userX
3: postfix/cleanup[18523]: C5F3DFA0067:
message-id=<49D1423C(_dot_)5000700(_at_)mydomain(_dot_)com>
4: postfix/local[18524]: C5F3DFA0067: to=<user1(_at_)mydomain(_dot_)com>, 
relay=local,\
  delay=0.58, delays=0.57/0.01/0/0, dsn=2.0.0, status=sent (delivered to \
  command: /usr/bin/procmail -a "$EXTENSION")
5: postfix/qmgr[4086]: C5F3DFA0067: removed
6: deliver(user1): msgid=<49D1423C(_dot_)5000700(_at_)mydomain(_dot_)com>: 
saved mail \
  to user2
7: postfix/smtpd[18517]: disconnect from unknown[MY.IPA.DDR.ESS]

Notes on those maillog entries by line number:
#1: Correct
#2: Correct
#3: Correct
#4: Correct
#5: Correct
#6:
 No new file of any size in user2's maildir or subdirs.
 Maybe procmail sent 0 bytes via deliver? But no new file of any size. :(
#7: Correct

### /var/log/dovecot-deliver.log ###

deliver(user1): Info: msgid=<49D1423C(_dot_)5000700(_at_)mydomain(_dot_)com>: 
saved mail \
  to user2

# And yet, there is no new file in user2's mail directories :(

### /var/log/messages: ###

No log files for this event (i.e. no errors logged to messages).

Thanks.

James

____________________________________________________________
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