Re: [exim] hide ehlo string

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Edgar Lovecraft
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] hide ehlo string
Jakob Hirsch wrote:
>
> So, I think I have two options:
> - rebuild sender_rcvhost with string expansions expressions. If anybody
> already did this, I would be glad to get it.
> - change sender_helo_name, e.g. in an ACL. Is this possibly?


http://www.exim.org/exim-html-4.40/doc/html/spec_14.html

received_header_text
Type: string, expanded
Default: see below

Since recieved_header_text is expanded you set it to what ever you want
whenever you want, so you can use IF tests for to get the expansion
that you want.

for example:

received_header_text = \
${if eq{$sender_host_address}{192.168.0.1}\
    {Recieved: from me}\
    {Recieved: \
          ${if def:sender_rcvhost {from $sender_rcvhost\n\t}\
          {${if def:sender_ident {from $sender_ident }}\
          ${if def:sender_helo_name {(helo=$sender_helo_name)\n\t}}}}\
          by $primary_hostname \
          ${if def:received_protocol {with $received_protocol}} \
          ${if def:tls_cipher {($tls_cipher)\n\t}}\
          (Exim $version_number)\n\t\
          id $message_id\
          ${if def:received_for {\n\tfor $received_for}}\
    }
}


--

--EAL--

--