Re: [exim-dev] Bug in smtp_banner?

Góra strony
Delete this message
Reply to this message
Autor: Heiko Schlittermann
Data:  
Dla: exim-dev
Temat: Re: [exim-dev] Bug in smtp_banner?
Hi,

Iti Monitor <itmonitor13@???> (Do 27 Aug 2015 13:34:52 CEST):
> Issue: I wanted to hide the EXIM version number in order to avoid malicious
> email scanners to get information from EXIM.
>
> Bug: I removed the ${version_number} part on WHM>EXIM Configuration
> Manager>Advanced Editor>smtp_banner and rebooted EXIM. Funilly enough, the
> sent emails [u]were still showing EXIM's version in their headers[/u].
>
> Solution: remove the line ESMTP Exim \#${compile_number} ${tod_full} from
> the EXIM configuration file. That did the trick and now sent emails have
> not anymore information about EXIM's version.
>
> Please, could you check if this is a bug, or perhaps I am missing
> something? Ideally, when we change the smtp_banner field, it must change
> the sent emails' headers, without need to delete anything in the EXIM
> configuration file.


I would not consider this as a bug. It's fully configurable and the
default is

smtp_banner = $smtp_active_hostname ESMTP Exim $version_number $tod_full

reeceived_header_text = Received: ${if def:sender_rcvhost {from
    $sender_rcvhost\n\t}{${if def:sender_ident {from
    ${quote_local_part:$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${if def:sender_address
    {(envelope-from <$sender_address>)\n\t}}id $message_exim_id${if
    def:received_for {\n\tfor $received_for}}



and is probably even documented.
It's up to you to change it.

    Best regards from Dresden/Germany
    Viele Grüße aus Dresden
    Heiko Schlittermann
-- 
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --------------- key ID: F69376CE -
 ! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ -