Automated mail rejecting

shufil

Well-Known Member
Mar 19, 2014
71
0
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,213
363
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.
 

shufil

Well-Known Member
Mar 19, 2014
71
0
6
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.

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 [email protected].

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 [email protected] , 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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,213
363
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.
 

shufil

Well-Known Member
Mar 19, 2014
71
0
6
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.
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,213
363
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.
 

shufil

Well-Known Member
Mar 19, 2014
71
0
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,213
363
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.
 

shufil

Well-Known Member
Mar 19, 2014
71
0
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
 

SS-Maddy

Well-Known Member
Mar 28, 2009
122
13
68
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
 

shufil

Well-Known Member
Mar 19, 2014
71
0
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
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,213
363
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,213
363
To update, an "A" record was added for the hostname of the server in order to resolve the issue.

Thank you.