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.

Problem: Emails with invalid user delivers to server

Discussion in 'E-mail Discussions' started by REXNET, Feb 1, 2012.

  1. REXNET

    REXNET Member

    Joined:
    Jan 31, 2012
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    San Francisco
    cPanel Access Level:
    Root Administrator
    I was programming an email validation script and while testing I found that emails with an invalid users deliver to the server successfully and it make my script to report that email address "IS VALID" ! I tried on several domains and all of them were okay but mine.

    Is there any special configuration on EXIM to not accepting wrong emails and reject them?!
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,471
    Likes Received:
    199
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    In the cPanel account that accepted the email, find the icon titled Default Address. Whats are these settings set to?
    Preferred would be: Discard with error to sender (at SMTP time)

    In WHM > Server Configuration > Tweak Settings, Mail tab, find this setting:
    Initial default/catch-all forwarder destination
    And set it proper as well. I believe this is what you seek. :)
     
  3. REXNET

    REXNET Member

    Joined:
    Jan 31, 2012
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    San Francisco
    cPanel Access Level:
    Root Administrator
    Thanks for reply. The "Default Address" is set on "Forward to your system account" , I've fixed Tweak settings and set the value on "Fail" but the "Default Address" didn't change, And the problem still exists.
     
  4. REXNET

    REXNET Member

    Joined:
    Jan 31, 2012
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    San Francisco
    cPanel Access Level:
    Root Administrator
    I changed the client setting manually and set it to "Discard with error to sender (at SMTP time)" and now my script work well, The server is rejecting invalid user emails. How can i fix all exists Host Accounts following same settings as default ?!
     
  5. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,471
    Likes Received:
    199
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  6. REXNET

    REXNET Member

    Joined:
    Jan 31, 2012
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    San Francisco
    cPanel Access Level:
    Root Administrator
    Thank you!
     
Loading...

Share This Page