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 - Disable Auth and allow Relay via Whitelist_Senders

Discussion in 'E-mail Discussions' started by Michael - Natural IT, Mar 23, 2015.

  1. Michael - Natural IT

    Joined:
    Mar 20, 2015
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Port Elizabeth, South Africa
    cPanel Access Level:
    Root Administrator
    Greetings all.....

    After spending days to find out how to setup my cPanel DNSONLY server [WHM 11.48.1 (build 3)] to act as a relay server for my selected clients, without having to create an email account locally on the server, solely an relay SMTP server, as there are some ISP's that have issues with their SMTP server, so I am offering this as a service to my clients only.....So I am trying to setup my SMTP server to either:

    [Legend:]
    whitelisted senders (/etc/exim/whitelist_sender <= has the clients EMAIL addresses listed in it)

    (a) disable it's authentication requirement and allow relays only for whitelisted senders, or
    (b) allow whitelisted_senders to relay emails without authentication, and if not whitelisted, then needs to authenticate before sending...

    ie.

    Client sends email
    ||
    SMTP server
    ||
    ||
    |------> Email address Whitelisted?
    ||
    ||-----NO
    | |
    | |
    | User Authenticated itself?
    | | |
    | | |--NO ==> REJECT
    | |
    |------Yes ====> Receive and relay (Send) email

    Above is ideally what I want to have....

    Now many have commented the need to modify the section :
    "require verify = sender" ,

    but in this version of cpanel there is none...

    I have attached the exim.conf file for your review...

    Your assistance in this will be most appreciated.
     

    Attached Files:

  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Please keep in mind that cPanel DNS-Only is not designed for email activity that you would have on a standard cPanel server. While you are welcome to manually configure Exim to your preference on a DNS-Only machine, it's not something we can offer support for in the event you encounter issues. I've moved this post into it's own thread so that other users can contribute and add feedback. You may also find the Exim users mailing list helpful:

    http://www.exim.org/mailman/listinfo/exim-users

    Thank you.
     
  3. Michael - Natural IT

    Joined:
    Mar 20, 2015
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Port Elizabeth, South Africa
    cPanel Access Level:
    Root Administrator
    Thanks for your reply.

    Please note....I don't intend for this server to HOST email, not any other means of hosting (websites, MySQL, etc), but to solely act as a SMTP Relay service....

    This server comes equip with a fully functional SMTP server, Exim, and I have tested it in my environment which shows to be very efficient, just I have the following to major issues.......

    1) I can not turn off the authentication requirement in the Exim for I can not find it in the exim.conf
    2) leaving the authentication method enabled (or disabled), I can not get the WHITELIST_SENDERS function to work as this version of WHM (v11) does not have the section "require verify = sender/callout" as per 90% of the websites (eg. esolutions.net/faq/pdf.php?cat=6&id=94&artlang=en )

    All I ask, as you guys are more knowledgeable on EXIM and cPanel, is to just tell me WHERE to either:
    1) disable the password authentication and enable WHITELIST_SENDERS, or
    2) enable WHITELIST_SENDERS and have is BYPASS the authentication requirement......

    Simple...... but I have spent HOURS and HOURS trying and trying to get it to work... just can not find it.....

    PLEASE help me... PLEASE!!!
     
    #3 Michael - Natural IT, Mar 24, 2015
    Last edited by a moderator: Mar 31, 2015
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  5. Michael - Natural IT

    Joined:
    Mar 20, 2015
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Port Elizabeth, South Africa
    cPanel Access Level:
    Root Administrator
    Nope... as a Relay server.

    Clients send an email to the smtp relay... if their email address is whitelisted then no further authentication is required, if not... then authentication is required, if failed then drop connection. .. simple...

    After spending days on this issue with no assistance from cPanel Support i have final managed to get it to work and it is not to the advice of whitelist_senders for exim on google and other sites/forums...

    But rather to setting up addtional ports with condition rules in it...
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  7. Ricardo Dias

    Ricardo Dias Registered

    Joined:
    Oct 29, 2015
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Portugal
    cPanel Access Level:
    Root Administrator

    Hello Michael,

    Can you explain how you did it please.

    Best regards.
     
Loading...

Share This Page