RE: [Exim] Message-ID: header on TCP received messages

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Larry Rosenman
日付:  
To: exim-users
題目: RE: [Exim] Message-ID: header on TCP received messages
Andreas Metzler wrote:
> On 2004-06-12 Larry Rosenman <ler@???> wrote:
>> Donning my flame-proof underwear, I ask the following:
>
>> Is there any reason we can't add a method to add Message-ID: headers
>> on TCP-received Messages?
> [...]
>
> Good question. Phil disabled unconditional adding of Message-ID: in
> 4.30/56 without rationale, IIRC.
>
> You can work around this in your DATA ACL with:
>
>    warn condition = ${if !def:h_Message-ID: {1}}
>         hosts = +relay_from_hosts
>         message = Message-ID: <E$message_id@$primary_hostname>

>
> Feature-wise this is a little bit inferior than having an option,
> because it does not respect message_id_header_domain or
> message_id_header_text, I ended up with using a macro.
>
> MESSAGE_ID_DOMAIN = example.org
> message_id_header_domain = MESSAGE_ID_DOMAIN [...]
>         message = Message-ID: <E$message_id@MESSAGE_ID_DOMAIN>

>
>            cu andreas

Thanks, Andreas.

I tried(!) to think up the above, without success.

Hopefully, Phil will give us a more full-featured knob. I wound up adding
A second stanza for the authenticated case. (I have some users that are
remote, and are stuck
On OL, and use SMTP-AUTH to send messages.


  warn  condition = ${if !def:h_Message-ID {1}}
        authenticated = *
        hosts = !+relay_from_hosts
        log_message = add message-id (auth)
        message = Message-ID: <E$message_id@$primary_hostname>


  warn  condition = ${if !def:h_Message-ID {1}}
        hosts = +relay_from_hosts
        log_message = add message-id
        message = Message-ID: <E$message_id@$primary_hostname>



Thanks again!

LER

--
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 972-414-9812                 E-Mail: ler@???
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749