thanks for the mail. i've experimented with your approach to no
avail. unfortunately, $1 and $2 don't seem to get the sender and
recipient. i've added a domain multihost.com with the following
procmail file (which is referenced appropriately in my mailertable)
VERBOSE=yes
LOGFILE=/etc/procmailrcs/logs/multihost.com
FILE="$0"
SENDER="$1"
RECIPIENT="$2"
:0
* RECIPIENT ?? foobar
! -oi rramstad+foobar
:0
* RECIPIENT ?? rramstad
! -oi rramstad
when i try to send to it, i get the following:
graham# mail -v rramstad(_at_)multihost(_dot_)com
Subject: test
EOT
Null message body; hope that's ok
graham# rramstad(_at_)multihost(_dot_)com(_dot_)(_dot_)(_dot_) Connecting to
/etc/procmailrcs/multihost.com via procmail...
procmail: [28867] Fri Dec 8 11:46:27 1995
procmail: Assigning "LOGFILE=/etc/procmailrcs/logs/multihost.com"
procmail: Opening "/etc/procmailrcs/logs/multihost.com"
rramstad(_at_)multihost(_dot_)com(_dot_)(_dot_)(_dot_) Can't create output:
Error 0
/nfic/f/users/dufus/dead.letter... cannot open: Permission denied
root... Connecting to local...
root... Sent
when i examine the logfile i get
graham# tail /etc/procmailrcs/logs/multihost.com
Folder: **Bounced** 0
procmail: Assigning "FILE=procmail"
procmail: Assigning "SENDER="
procmail: Assigning "RECIPIENT="
procmail: No match on "foobar"
procmail: No match on "rramstad"
From root(_at_)bill-graham(_dot_)nfic(_dot_)com Fri Dec 8 11:46:27 1995
Subject: test
Folder: **Bounced** 0
it appears that $0, $1 and $2 aren't set properly. FILE should be
"/etc/procmailrcs/multihost.com". i'm also using procmail as my local
mailer as well and the meta argument + passed in via -a works great
(and is available as $1).
from my sendmail.cf (mailertable uses the procmail mailer)
Mlocal, P=/usr/local/bin/procmail, F=lsDFMAw5:/|@SPfhn, S=10/30,
R=20/40,
T=DNS/RFC822/X-Unix,
A=procmail -a $h -d $u
Mprocmail, P=/usr/local/bin/procmail, F=DFMmShu, S=11/31, R=21/31,
T=DNS/RFC822/X-Unix,
A=procmail -m $h $f $u
note that these are both defaults from using the m4 configuration file
generation stuff in sendmail-8.7.1. i'll gladly share any fixes with
Eric Allman.
i'm using procmail-3.10.
-- Bob