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 Authentication

Discussion in 'E-mail Discussions' started by sergio2004, Jul 9, 2005.

  1. sergio2004

    sergio2004 Well-Known Member

    Joined:
    Feb 28, 2004
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Rio de Janeiro
    Hi All,

    I have a VPS with exim 4.50

    I want use a SMTP Authentication for requires the customers uses username and password for send messages.

    I want configure it in the VPS.

    Please, can anyone explain me, step by step, how can I do it?

    Thank you.
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    SMTP AUTH is configued into exim by default as well as the alternative, POP before SMTP.
     
  3. sergio2004

    sergio2004 Well-Known Member

    Joined:
    Feb 28, 2004
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Rio de Janeiro
    I edit the file antirelayd

    /usr/sbin/antirelayd

    Look for a section:

    sub writehosts {
    $exptime = (time() - (60*30));

    Simply replace 60*30 with 60*0 and save the file.

    Restart antirelayd using /etc/init.d/antirelayd restart

    I follow the instructions described and the smtp authentication now works with require username and password. It`s require the user the login and password for send emails by email local client.

    It`s simply, easy and efficient.

    Thanks for all!
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Be aware that antirelayd will be overwritten the next time you update via upcp.
     
  5. sergio2004

    sergio2004 Well-Known Member

    Joined:
    Feb 28, 2004
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Rio de Janeiro
    I read here in cpanel forum that if I make a chattr +i /usr/sbin/antirelayd this problem is solve and if I comment the #accept hosts = +relay_hosts in exim.conf then chattr -i /etc/exim.conf I will ok. Do you agree with it?

    Thank you.
     
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Using chattr on cPanel files can be very risky and can cause unforseen problems when updating cPanel itself. If it works for you, great, but it's certainly not recommended.
     
Loading...

Share This Page