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.

Automated mail rejecting

Discussion in 'E-mail Discussions' started by shufil, Jun 19, 2014.

  1. shufil

    shufil Well-Known Member

    Joined:
    Mar 19, 2014
    Messages:
    71
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hello,

    Domain web server and mail server running different server . web site cpanel mail settings are configure to remotely .
    so when we try sent mail from web site that mail not getting same domain email address inbox . normal mails all correctlly getting in inbox .
    also web site is try to senting mails using web server primary mail address . web site cpanel email trace given a error massage all the time that is :-

    SMTP error from remote mail server after MAIL FROM: SIZE=2688: host remote mail server address.com [remote mail server ip address]: 450 4.1.8 : Sender address rejected: Domain not found ,

    so how can we resolve this issue .

    Regards,
    Shufil
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    Please browse to "WHM Home » DNS Functions » Edit MX Entry", select the domain name, and under "Email Routing" configure it to:

    "Remote Mail Exchanger"

    This will ensure email is routed to the remote mail exchanger where it's email is hosted.

    Thank you.
     
  3. shufil

    shufil Well-Known Member

    Joined:
    Mar 19, 2014
    Messages:
    71
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator

    Hello,

    Thanks for reply ,

    That is already same settings , domain working with Remote Mail Exchanger ,
    domain name pointed correctly with remote mail server and web server , if we check with dig we will get correct details from both , also mail account is wotking fine , also i created a mail id in remote mail server cpanal , mail idis test@domain.com.

    Also web site is getting fine , but if we are try to sent a mail using php mailer funtion with server defult mail id from web site to test@domain.com , that mail not receiving . for reason i have checked web site server mail log, because mail server is running remotly but php mail funtion using web server defult mail id for mail sending .

    mail log ,
    SMTP error from remote mail server after MAIL FROM: SIZE=2688: host remote mailserver address.com [remote mail server ip address]: 450 4.1.8 : Sender address rejected: Domain not found ,

    If your not understant i will explain again .

    Regards,
    Shufil
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Please ensure you enable SMTP authentication in the mailing script you are using on your server. Otherwise, it's going to try to send the email from the local machine.

    Thank you.
     
  5. shufil

    shufil Well-Known Member

    Joined:
    Mar 19, 2014
    Messages:
    71
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hello,

    So we can use remote mail server details and valied mail id right ?
    But the mail scrip using web server defult mail id so can we sent mail from this id ? basically its possible right ?

    Regards,
    Shufil
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Messages will not deliver properly when sent from a local email account if your domain name is in the /etc/remotedomains file. You can send out the email using the remote mail server email address and hostname as long as the SMTP Tweak is disabled in WHM.

    Thank you.
     
  7. shufil

    shufil Well-Known Member

    Joined:
    Mar 19, 2014
    Messages:
    71
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hello,

    Sorry i dont understant first option , can you please expalin once .

    SMTP Tweak for preventing spamers right .

    Regards,
    Shufil
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Essentially, my advice was to ensure email is sent out via SMTP authentication in your script. You may need to consult with your script developer to see if that's possible.

    Thank you.
     
  9. shufil

    shufil Well-Known Member

    Joined:
    Mar 19, 2014
    Messages:
    71
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hello,

    Ok, for SMTP authentication our server not installed Mail.php and SMTP.php so we are install pear install
    Mail;pear install Net_SMTP;pear install Auth_SASL;
    then after edit /usr/local/lib/php/Net/SMTP.php
    586(line number) function auth($uid, $pwd , $method = '', $tls = true, $authz = '') to function auth($uid, $pwd , $method = '', $tls = false, $authz = '')
    For this working can we configure or edit any file ?


    save and restart httpd.
    Still we can't getting mail .

    Regards,
    Shufil
     
  10. SS-Maddy

    SS-Maddy Well-Known Member

    Joined:
    Mar 28, 2009
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Make sure that the domain with external MX is not present in the file /etc/localdomains of the hosted server. The domain name should be present in /etc/remotedomains, if not, add it. Once this is done execute the script /scripts/updateuserdomains
     
  11. shufil

    shufil Well-Known Member

    Joined:
    Mar 19, 2014
    Messages:
    71
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hello,

    Yes i check both files , it seems correctly domain name not in /etc/localdomains , name is in /etc/remotedomains ,
    i tryd with both option , SMTP authentication and mail rout ,but currently we getting error is
    " SMTP error from remote mail server after RCPT TO:: host mail.remotemailserver.com [ip]:
    : Recipient address rejected: Access denied "

    Regards,
    Shufil
     
  12. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Feel free to open a support ticket if you want us to take a closer look. We can verify that SMTP authentication is working for that domain name with a test script. Post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
  13. shufil

    shufil Well-Known Member

    Joined:
    Mar 19, 2014
    Messages:
    71
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hello,

    I created ticket , ticket id is 5206659 .

    Regards,
    Shufil
     
  14. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page