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??
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??