This is realy an intersting question, so I've spent my evening search
sendmail book (O`reilly) for the answer and I'm sorry to say i didn't
find an answer. I think what is happening is the header first written
then the delivery agent get into work to modify the $u with the aliases
file (F=A).
If you find any other answer (what did the guys at comp.mail.sendmail said ?)
please let me know.
Guy
Gili Granot <[EMAIL PROTECTED]> wrote:
> I use sendmail (8.9.3) on a Linux machine.
>
> I have many aliases on the machine defined in /etc/aliases.
> For example:
> mailaddress23: mailbox8
>
> My problem is that I need a header line in the messages when it is
> received locally.
> The header should include the username that actually received the mail.
> In my example I need the Header to show the name "mailbox8" and not
> "mailaddress23".
>
> This is a problem since "mailbox8" does not appear at all in the header.
> I need it to appear for later processing.
>
> I tried adding the following line to /etc/sendmail.cf:
> H?l?X-test: $u
>
> It adds the header, but with the username before the translation -
> "mailaddress23":
> X-test: mailaddress23
>
> I know that qmail inserts a similar header by default,
> but I have to use sendmail for other reasons.
>
> Can anybody help?
>
> Regards,
> Gili
>
>
> Gili Granot E-mail: [EMAIL PROTECTED]
> SunGard Business Integration Tel: +972-9-960-4888
> 3 Sapir St. Herzeliya 46852, Israel Direct: +972-9-960-4817
> URL: www.integration.sungard.com Fax: +972-9-960-4889
>
> =================================================================
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]