Doug> When mail comes in from a mailing list to a user of that
Doug> list, some SMTP servers add a header line like
You can use "$?u for $u$." to get that in the header. Here's
what I use on mine:
HReceived: $?sfrom $s $.$?_($?s$|from $.$_)$.
by $j ($v/$Z$?L/$L$.)$?r with $r$. id $i$?u
for $u$.;$?u $|
$.$b
$L is our local version number, so you might want to leave that
out. If you don't have $L defined, then it won't hurt to leave
it in either.
Doug> for postprocessors, such as gateways, to determine the
Doug> actual recipient using the message itself when the message
Doug> is from a mailing list.
You shouldn't be trying to guess anything like that from the
Received: headers, really. You should pass the envelope
recipient ($u) to your gateway script on the command line when
invoking it. Here's an example of my pop gateway:
Mpop, P=/usr/local/mh/lib/spop, F=lsDFMPenu, S=10, R=20/40,
A=pop $u
And here's another example where I also pass the host ($h) and
the sender ($f) as parameters:
Mprocmail, P=/usr/local/bin/procmail, F=DFMShu, S=10, R=20/40,
A=procmail -m /etc/procmailrcs/$h $f $u
Both mailers (pop and procmail) are included in the 8.7.3
release of sendmail.
--
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
( Kimmo Suominen "That's what I think" )
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''