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]

Reply via email to