Skip to main content

Automated mail rejecting

Comments

13 comments

  • cPanelMichael
    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.
    0
  • shufil
    [quote="cPanelMichael, post: 1668332">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.
    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
    0
  • cPanelMichael
    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.
    0
  • shufil
    [quote="cPanelMichael, post: 1668472">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.
    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
    0
  • cPanelMichael
    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.
    0
  • shufil
    Hello, Sorry i dont understant first option, can you please expalin once . SMTP Tweak for preventing spamers right . Regards, Shufil
    0
  • cPanelMichael
    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.
    0
  • shufil
    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
    0
  • SS-Maddy
    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
    0
  • shufil
    [quote="SS-Maddy, post: 1673952">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
    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
    0
  • cPanelMichael
    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.
    0
  • shufil
    Hello, I created ticket, ticket id is 5206659 . Regards, Shufil
    0
  • cPanelMichael
    To update, an "A" record was added for the hostname of the server in order to resolve the issue. Thank you.
    0

Please sign in to leave a comment.