procmail
[Top] [All Lists]

Re: Interesting Problem..

1997-06-24 22:16:00
David Craven <dcraven(_at_)tradelaw(_dot_)com> writes:
I am still having some problems getting Procmail to forward on mail
recieved.  It now works for basic address names 
(dcraven(_at_)tradelaw(_dot_)com for
example is properly resent) but it does not work for mailing lists, and

What do you mean?  If you mean that when someone(_at_)tradelaw(_dot_)com 
subscribes
to a mailing list, the messages from the list aren't recognized as being
for that person, then you *CANNOT* solve the problem without fixing your
setup to use the _envelope_ recipient address instead of the header
address(es).  The header addresses are what appear in the To: and Cc:
(or Resent-To:, etc).  The envelope address are passed out-of-band and
are the actual addresses to whom the mail system is delivering the message.
They normally start out the same, but mailing lists (for instance) will
resend a message with a whole pile of addresses as envelope recipients
without changing what was in the header.

The result of this is that if you're routing mail, you want to do so on
the *envelope* recipient(s), not what's in the header.  The problem is
that the envelope recipient is usually not passed along explicitly to
procmail.  You'll probably need to change how procmail is being invoked
to pass the needed information along.  How is mail destined for the
"tradelaw.com" domain getting passed to procmail?  If it's something
like a sendmail mailertable entry then please include the exact entry.


PATH=/usr/bin:/usr/ucb:/bin:/usr/local/bin
MAILDIR=$HOME/mail               # This is the directory where mail boxes
#DEFAULT=$MAILDIR/mbox           # are stored.

LOGFILE=/dev/null
LOCKFILE=$HOME/.lockmail

# Don't change anything above this line, unless you know what you are
# doing!

I'll second era's slamming of this opening.  Procmail should have been
compiled with the correct path to start with and setting LOGFILE to
/dev/null is both stupid and rude.


...
! dariggle(_at_)aol(_dot_)com randc(_at_)enteract(_dot_)com
...

Contrary to Brock Rozen's comment, you don't need a comma here.  Sendmail
takes each argument as a separate address.


Philip Guenther

<Prev in Thread] Current Thread [Next in Thread>