Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sendmail Recipient Processing

Status
Not open for further replies.

Doyo

Programmer
May 16, 2000
1
US
Hi. I've come across a little anomaly that might be "resolvable" with a Sendmail.cf programming tip from one of you.

When Sendmail is processing recipients for a message and finds a recipient that is actually an alias, it processes/expands the alias into it's true destination(s), but then places the alias name in the To: field.

My request is simple: Can I program Sendmail to put the expanded recipient email addresses in the To: field instead of the original alias name?

Here's some more info to show you what I mean:

Assume the following entry in my aliases file:

mydistlist: joe@dfg.com, bob@simpto.com, mary@wert.com

Now, using either /bin/mail (which, in this case, I am invoking from a batch program) or Pine as my MUA, I send a message to the recipient: "mydistlist".

/bin/mail or Pine invokes Sendmail. Sendmail processes the recipient address and finds it in the aliases file so it does its thing and sends the message to the three recipients listed in the aliases file. When joe, bob and mary receive their email message, the To: field contains "mydistlist@mydomain.com".

My goal is to see if I can make Sendmail place "joe@dfg.com, bob@simpto.com, mary@wert.com" in the To: field instead. I was hoping that there was some cool command I could put into one of the Sendmail rulesets to tell it to place the expanded address list into the To: field.

Is there any hope??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top