RE: [Exim] Displaying host name of server upon connect

Top Page
Delete this message
Reply to this message
Author: Michael Bonnice
Date:  
To: 'Edgar Lovecraft', exim-users
Subject: RE: [Exim] Displaying host name of server upon connect

Thanks.


-----Original Message-----
From: exim-users-admin@??? [mailto:exim-users-admin@exim.org] On
Behalf Of Edgar Lovecraft
Sent: Thursday, 11 March 2004 1:38 PM
To: exim-users@???
Subject: Re: [Exim] Displaying host name of server upon connect


Michael Bonnice wrote:
>
> I have just setup an exim server and it seems to be working fine. What


> I want to do is have server virtual domains setup for local delivery,
> however I don't want to primary hostname displayed when connecting to
> the smtp server. Eg. 220 hostname.com ESMTP Exim 4.21 etc. I don't
> want the hostname.com bit there.
>

--
Set the smtp_banner for the helo stage and if you really want although
not suggested set the recived_header_text as well. That will do what
you want. These are just examples, but should get you pointed were you
want to go.

received_header_text = Received: \
    ${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}} \
    ESMTP id $message_id \
    ${if def:received_for {\n\tfor $received_for}}


smtp_banner          = \
    "${primary_hostname} ESMTP ${tod_full}"


--EAL--




--

## List details at http://www.exim.org/mailman/listinfo/exim-users Exim
details at http://www.exim.org/ ##