The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SMTP Port & MX Entries

Discussion in 'E-mail Discussions' started by Lorelei, Nov 28, 2015.

  1. Lorelei

    Lorelei Registered

    Joined:
    Oct 29, 2015
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Liverpool
    cPanel Access Level:
    Root Administrator
    Hi all,

    I am trying to configure a server so all mail is sent and received through 1 ip & domain.
    what i would like to do is the following:
    Set all domains mx entries to mail.hostname
    Open port 25 on the ip associated with mail.hostname
    Close port 25 everywhere else

    Can somebody tell me if this will work.

    Lorelei xXx
     
  2. RWH Tech

    RWH Tech Well-Known Member

    Joined:
    Oct 1, 2015
    Messages:
    74
    Likes Received:
    11
    Trophy Points:
    8
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    It sounds like it'd work, though it also sounds like another kink in the pipe and perhaps you'd have DKIM trouble...
    May I ask why you'd do this? Default WHM installs share an IP for in/outbound mail anyway.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,833
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Could you elaborate on this? For instance, is this to resolve a specific issue?

    Thank you.
     
  4. Lorelei

    Lorelei Registered

    Joined:
    Oct 29, 2015
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Liverpool
    cPanel Access Level:
    Root Administrator
    I am doing this so i can disable POP/Imap no ssl ports, causing all users to use ssl.
    Using the hostname (the only thing on the ip), will prevent the cert error.
    And i have then reduced open ports on all ips except the hostname to just 80/443
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,833
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You can force the use of SSL via:

    "WHM Home » Service Configuration » Mailserver Configuration"

    Simply change "Allow Plaintext Authentication (from remote clients)" to "No".

    Thank you.
     
  6. RWH Tech

    RWH Tech Well-Known Member

    Joined:
    Oct 1, 2015
    Messages:
    74
    Likes Received:
    11
    Trophy Points:
    8
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Methinks you're making a simple thing into something complicated.

    As Michael said, you can achieve this pretty easily, then close up the unused ports, if you wish. I've left mine open, so any misconfigured client is notified by the system that plaintext is not allowed and, to a lesser extent, so I can chuckle at people attempting bruteforce.
     
Loading...

Share This Page