Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Dec 2006
    Posts
    28

    Default Security annoyance: Hide Exim version

    How can we hide the Exim version?

    --------------

    #220-server.host.com ESMTP Exim 4.69 #1

    ---------------

  2. #2
    Member
    Join Date
    Jul 2008
    Location
    localhost
    Posts
    101

    Default

    To hide the SMTP version/banner follow the steps below

    Open the file /etc/exim.conf and find for smtp_banner.

    The line would look like

    smtp_banner = "${primary_hostname} ESMTP Exim ${version_number} \
    Remove the "Exim ${version_number}" from the line. The modified line would look like

    smtp_banner = "${primary_hostname} ESMTP \
    You are done !

  3. #3
    Member
    Join Date
    Dec 2006
    Posts
    28

    Default

    it works. Thanks!

  4. #4
    Member
    Join Date
    Jul 2008
    Location
    localhost
    Posts
    101

    Default

    Quote Originally Posted by sv70 View Post
    it works. Thanks!
    You are Welcome Good Luck !

  5. #5
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by chinmay View Post
    To hide the SMTP version/banner follow the steps below

    Open the file /etc/exim.conf and find for smtp_banner.

    The line would look like



    Remove the "Exim ${version_number}" from the line. The modified line would look like



    You are done !
    These changes will be obliterated during the next cPanel/WHM update if not sooner if you do not take action to preserve the file (e.g. /scripts/preupcp and /scripts/postupcp scripts).

  6. #6
    Member
    Join Date
    Dec 2006
    Posts
    28

    Default

    not enough with: chattr +i /etc/exim.conf?

    How you apply /scripts/preupcp and /scripts/postupcp?

  7. #7
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by sv70 View Post
    not enough with: chattr +i /etc/exim.conf?
    Correct.


    Quote Originally Posted by sv70 View Post
    How you apply /scripts/preupcp and /scripts/postupcp?
    Just copy the file to a backup location in /scripts/preupcp and restore the file from a backup location in /scripts/postupcp.

    Keep in mind, by doing these manual modifications and circumventing correction mechanisms by cPanel/WHM, there is no guarantee your exim configuration will remain compatible with future versions of Exim or cPanel/WHM. You do this at your own risk.

  8. #8
    Member
    Join Date
    Dec 2006
    Posts
    28

    Default

    ok, thanks so much

  9. #9
    Member
    Join Date
    Dec 2003
    Posts
    12

    Default Re: Security annoyance: Hide Exim version

    Quote Originally Posted by cPanelDavidG View Post
    Just copy the file to a backup location in /scripts/preupcp and restore the file from a backup location in /scripts/postupcp.

    Keep in mind, by doing these manual modifications and circumventing correction mechanisms by cPanel/WHM, there is no guarantee your exim configuration will remain compatible with future versions of Exim or cPanel/WHM. You do this at your own risk.
    I know this thread is a bit old but this is mainly for reference for anybody else looking for a solution to get around CPanel overriding the changes to the smtp_banner, I just wanted to add what might be a better solution. Instead of copying exim.conf before the update and restoring after the update (which could cause you to miss important changes CPanel makes to exim.conf), I only added to /scripts/postupcp with the following:

    Code:
    #!/bin/sh
    perl -p -i -e 's/smtp_banner = "\${primary_hostname} ESMTP Exim \${version_number}/smtp_banner = "\${primary_hostname} ESMTP Exim/g' /etc/exim.conf
    perl -p -i -e 's/\\#\${compile_number} //g' /etc/exim.conf
    So all that does is replace the smpt_banner with the same text except without the version number or compile number after upcp has been run. Unless I am forgetting something I think this should keep the smtp_banner up to date without missing important changes.
    Last edited by Bigwebmaster; 11-09-2010 at 09:29 PM.

Similar Threads & Tags
Similar threads

  1. Filed with Developers Kernel Version Hide [Case 44543]
    By DjiXas in forum Feature Requests for cPanel/WHM
    Replies: 23
    Last Post: 07-29-2011, 10:00 PM
  2. How to hide apache version ??
    By MethOd63 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-16-2008, 03:00 PM
  3. Hide POP3 en IMAP version details
    By proksie in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-21-2005, 11:30 AM
  4. Apache Security/Version Table not showing PHP version
    By jonMEGA in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-10-2004, 09:59 PM
  5. Problem/Annoyance
    By Marty in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-09-2003, 06:52 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube