[Techtalk] `TO:' header alias rewrite - Sendmail

janechen9 at netscape.net janechen9 at netscape.net
Sun Mar 31 01:06:14 EST 2002


Try sendmail with the -t option, and pass in the headers as variables.

David Merrill <david at lupercalia.net> wrote:

>On Sat, Mar 30, 2002 at 10:57:03AM -0800, Kai MacTane wrote:
>> At 3/29/02 05:00 PM , Nosferatu!!! wrote:
>> 
>> >Say I have the following alias definition in /etc/aliases -
>> >ruby:           rubidium at hotmail.com
>> >
>> >Now, sendmail expands the "ruby" to the proper address in "RCPT TO:",
>> >but, the "To:" header in the message still reads "To: ruby".
>> >
>> >Its not a big deal for me except that "ruby" has Hotmail filtering
>> >on that rejects messages whose "To:" header does not read as
>> >"To: rubidium at hotmail.com"
>> 
>> I don't know a whole lot about Sendmail. My only suggestion is: you could 
>> redirect the alias to a program that does the header rewriting and then 
>> re-sends the mail to the destination. So in /etc/alias:
>
>formail is good for that. It's what I call to do header rewriting in
>Procmail.
>
>-- 
>David C. Merrill                         http://www.lupercalia.net
>Linux Documentation Project                   david at lupercalia.net
>Lead Developer                             http://www.linuxdoc.org
>
>How often it is that the angry man rages denial of what his inner self is
>telling him.
>    -- "The Collected Sayings of Muad'Dib" by the Princess Irulan
>_______________________________________________
>Techtalk mailing list
>Techtalk at linuxchix.org
>http://mailman.linuxchix.org/mailman/listinfo/techtalk
>


__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop at Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/




More information about the Techtalk mailing list