How to get "for <box@domain.com>" in "Received:" line?

How to get "for <box@domain.com>" in "Received:" line?

Post by Kari E. Hurt » Sat, 27 Jan 1996 04:00:00



?When mail comes in from a mailing list to a user of that list, some
?SMTP servers add a header line like



?postprocessors, such as gateways, to determine the actual recipient
?using the message itself when the message is from a mailing list.

?Is there a particular variant of sendmail that includes the "for"
?information, or something in sendmail.cf, or in one of the m4 macros?
?We need to be sure the explicit address is there.

Sendmail 8 adds it when there is exactly one receiver for mail
(if there is more than one receiver for that particular envelope,
 to what address sendmail should add here?)

 
 
 

How to get "for <box@domain.com>" in "Received:" line?

Post by Kimmo Suomin » Sat, 27 Jan 1996 04:00:00


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" )

 ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

 
 
 

How to get "for <box@domain.com>" in "Received:" line?

Post by Doug Port » Sat, 27 Jan 1996 04:00:00


When mail comes in from a mailing list to a user of that list, some
SMTP servers add a header line like



postprocessors, such as gateways, to determine the actual recipient
using the message itself when the message is from a mailing list.

Is there a particular variant of sendmail that includes the "for"
information, or something in sendmail.cf, or in one of the m4 macros?
We need to be sure the explicit address is there.

Thanks,

Doug

 
 
 

1. CNAME record causes sendmail converts "@x.domain.com" to "@y.domain.com"

Folks,

I apologize if this has been discussed before, but I just could not find the
answer when I went looking for it.



learns from DNS.

The issue is that "a.b.c" has a CNAME record in the DNS for the domain "b.c"
that refers to "d.e.f".  Seeing that CNAME record and no MX records,
sendmail takes the liberty of re-writing the "From" or "To" lines of the
message.  This seems to be a reasonable thing to do, since the CNAME record
does tell the mail transport agent the "proper" name (according to the
RFCs).

Unfortunately, I have no control over the DNS at "b.c".  However, I use an

from re-writing it.  I have tried without success to get the b.c domain
folks to add an MX record or to remove the CNAME record and replace it with
an A record-- but no luck.

Can anybody suggest how to prevent this conversion from taking place? (It
appears to happen in ruleset 96, which is invoked from ruleset 3.)

Any help would be greatly appreciated.

Best Regards,
Paul E. Jones

2. distance for RF

3. "T <regex>" Before ";d' & "$", whichOnesARE tagged?

4. Colorado T1000 & Win95b - FAT32

5. ">" at beginning os some "Received" lines...

6. Can NFS not mask long filenames in DOS?

7. Pine 4.31, "Setup", "Config", ..., "?" gives "Illegal instruction"

8. Where to start with regression testing.

9. MAIL FROM: requires "<" ">"?

10. Problems generating "for" clause in "Received:" header line

11. Incoming "From" lines don't become ">From"

12. routing mail to "company.com", from hostname "company.com"

13. getting unknown host "host.domain.com.host.domain.com"