Smtp error 451 Temporary local - please try later on Cpanel Server

uidroot0 picture uidroot0 · May 29, 2013 · Viewed 24.3k times · Source

I have a Cpanel Server.

It send emails correctly expect from 1 domain which hosted on the server , so when I try to send email from that domain using roundcube or Horde I got the errror

SMTP Error (451): Failed to add recipient "[email protected]" (Temporary local problem - please try later).

does anyone know why and how to fix this?


I found the porblem:

After reviewing the file /var/log/exim_mainlog using

tail -f /var/log/exim_mainlog

I noticed that the error was:

2013-05-29 20:04:28 SMTP connection from [127.0.0.1]:36797 (TCP/IP connection count = 1)
2013-05-29 20:04:28 lowest numbered MX record points to local host: domain.com (while verifying <[email protected]> from host localhost.localdomain (domain.com) [127.0.0.1]:36797)
2013-05-29 20:04:28 H=localhost.localdomain (domain.com) [127.0.0.1]:36797 sender verify defer for <[email protected]>: lowest numbered MX record points to local host
2013-05-29 20:04:28 H=localhost.localdomain (domain.com) [127.0.0.1]:36797 F=<[email protected]> A=dovecot_login:narena temporarily rejected RCPT <[email protected]>: Could not complete sender verify
2013-05-29 20:04:28 SMTP connection from localhost.localdomain (domain.com) [127.0.0.1]:36797 closed by QUIT

so the main problem was:

lowest numbered MX record points to local host 

after couple of search I found the soluation in http://forums.cpanel.net/f5/lowest-numbered-mx-record-points-local-host-73563.html

which was to:

login to WHM and go to Main >> DNS Functions >> Edit MX Entry for the domain

set MX priority to 0 for the related domain and save.

Answer

Val&#233;ry picture Valéry · Mar 6, 2014

I had the same problem after running a script to fix directory permissions on a cPanel-powered server (CentOS 6.5). I checked the logfile (tail -f /var/log/exim_mainlog) and found this error:

require_files: error for /home/user_name/etc/domain.com: Permission denied

Just ran the following command and the issue was fixed:

chown -R user_name:mail /home/user_name/etc/

Hope this helps someone.