451 Temporary local problem

Sopos

Well-Known Member
Nov 16, 2001
52
0
306
Good morning,
from some day, on one of my server, I see that the server does not accept mail from other server if they are generated from apache (so, even webmail, help ticket etc.).
If I go in the manage mail queue and try to delivery the mail I see this :

[...]
SMTP>> MAIL FROM: SIZE=2277
SMTP>> RCPT TO:
SMTP>> DATA
SMTP<< 250 OK
SMTP<< 250 Accepted
SMTP<< 354 Enter message, ending with "." on a line by itself
SMTP>> writing message and terminating "."
[delay even 1 minutes]
SMTP<< 451 Temporary local problem - please try later
SMTP>> QUIT
[...]

I have looked for some solutions but I have not find anything.

The server is a RedHat 7.3 WHM 7.4.2 Cpanel 7.4.2-R158
I have updated the cpanel this morning but the problem continue.

Any idea ?

Thank you

cPanel.net Support Ticket Number:
 

ciphervendor

Well-Known Member
Aug 26, 2002
1,050
0
166
Is your maching running with a high load? Have you tried reinstalling Exim? (/scripts/exim4)

cPanel.net Support Ticket Number:
 

Sopos

Well-Known Member
Nov 16, 2001
52
0
306
I have a 0.07 of load in this moment.
Now I have tried to run /scripts/exim4 and it has reinstalled exim.
Traying the delivery :

[cutted]
250-SIZE 52428800
250-PIPELINING
250-AUTH PLAIN LOGIN
250 HELP
SMTP>> MAIL FROM: SIZE=2530
SMTP>> RCPT TO:
SMTP>> DATA
SMTP<< 250 OK
[delay 30 seconds]
SMTP<< 451 Temporary local problem - please try later
SMTP<< 503 valid RCPT command must precede DATA
SMTP>> QUIT


The header of the mail is this :

166P Received: from localhost ([127.0.0.1])
by hostname.mydomain.com with esmtp (Exim 4.20)
id 19tjnN-0006ky-CB
for [email protected]; Mon, 01 Sep 2003 10:12:17 +0200
018T To: [email protected]
025F From: [email protected]
058 Subject: {PD-3122} RE: E-mail
037 Date: Mon, 1 Sep 2003 10:12:17 +0200
143 X-Mailer: Perl script "staff.cgi"
using Mail::Sender 0.8.04 by Jenda Krynicky, Czechlands
running on localhost (127.0.0.1)
under account ""
056I Message-ID: <[email protected]>

I have renamed the domain on this header but I think that it is clearly anyway.

Thank you

cPanel.net Support Ticket Number:
 

ciphervendor

Well-Known Member
Aug 26, 2002
1,050
0
166
After thinking about this a little more, this could be a DNS issue. Is your box having issues receiving mail from anyone else? What nameservers are you using in your resolv.conf to do lookups? Something reliable?

cPanel.net Support Ticket Number:
 

Sopos

Well-Known Member
Nov 16, 2001
52
0
306
After thinking about this a little more, this could be a DNS issue. Is your box having issues receiving mail from anyone else?
I don't understand what do you mean :(
I receive mail from outside yes. Only some mail stay in the queue and are not delivered.

What nameservers are you using in your resolv.conf to do lookups? Something reliable?
uhm..
2 server (the sender and the receiver).
The sender server has 2 ip (with 2 nameserver) and it is setup in the resolver.conf with
127.0.0.1
first ip (on the local server)
second ip (on the local server).

It is the same on the receiver server (with 2 different ip off course).

I hope that what I said is clear :(

Thank you again

cPanel.net Support Ticket Number:
 

I-Web

Well-Known Member
Jul 7, 2003
138
0
166
I am having this problem too.... but only when the e-mail is sent using apache (web based)

If i send an e-mail from Outlook, its not a problem, if i send an e-mail through my Support Ticket system, (to one of my clients on my cPanel server) it bounces back with the error

451 Temporary local problem - please try later


Please can someone tell me how to cure this???

Ive tried upgrading cPanel to edge release, i have updated exim using /scripts/exim4 i have made sure my resolv.conf is correct, i have restarted bind....

But it still has the error.. :(

cPanel.net Support Ticket Number:
 

Sopos

Well-Known Member
Nov 16, 2001
52
0
306
I have had the same problem in the past.

You should check the dns of the site that send the email and check even if, for some reason, the same dns is present on the destination server (i have had the problem when I sent an email from my server to my server) and it is not correct.

I hope this help
Sopos

cPanel.net Support Ticket Number:
 

silvernetuk

Well-Known Member
Sep 2, 2002
309
0
166
United Kingdom
I am having a similar problem, to fix this I have to restart Bind and it start working again, where do I start looking and how do I fix it ?

Regards,
Garry

cPanel.net Support Ticket Number:
 

mahinder

Well-Known Member
Jun 12, 2003
69
0
156
matrix
same problemo here, looking for solution. the resolv.conf configuration looks perfect and i also reinstalled exim4 for extra satisifcation.

dig MX @localhost domain.com

gives proper name servers etc., hence it doesn't look bind problem to me.

also, this problem started about 2 hours back only before that everything was working fine.

still looking for solution.

cPanel.net Support Ticket Number:
 

Saeed

Active Member
Feb 20, 2003
34
0
156
Same problems here, I don't think we can receive any mails either :(

cPanel.net Support Ticket Number:
 

Saeed

Active Member
Feb 20, 2003
34
0
156
Check you /etc/localdomains
Ours seem to have only ONE domain in it!!!!!!!

cPanel.net Support Ticket Number:
 

Saeed

Active Member
Feb 20, 2003
34
0
156
Thanks to David MacLaren for helping me find a fix. You can run /scripts/mailperm and it will add all domains to the /etc/localdomains

cPanel.net Support Ticket Number:
 

B12Org

Well-Known Member
Jul 15, 2003
691
1
168
Seattle Washington
cPanel Access Level
Root Administrator
I was having similar problems lately, and was getting non resolveing errors with hotmail and yahoo and such. I just reinstalled exim and it worked fine. I heard a rumor that it had something to do with the tweak settings, and how many times you are allowed to check your email per hour, and how much you can send out per hour, and if you go over that then something happens, but I didnt look into that very much.

cPanel.net Support Ticket Number:
 

Saeed

Active Member
Feb 20, 2003
34
0
156
This is a different problem, the /etc/localdomains file gets wiped out for some reason every now and then.

cPanel.net Support Ticket Number:
 

denisdekat09

Well-Known Member
Mar 2, 2002
266
0
316
San Francisco
I noticed that this happened to me right after I tried to create and account that already existed (let's refer to it as domain_one.com).

Here is what I found when I looked at the localdomains files in /etc after fixing the problem:

[email protected] [~]# ls -l /etc/localdomains*
-rw-r--r-- 1 root root 18772 Oct 9 10:29 /etc/localdomains
-rw-r--r-- 1 root wheel 11 Oct 8 16:58 /etc/localdomains.tmp

I see this: in the.tmp file:

[email protected] [~]# cat /etc/localdomains.tmp
domain_one.com

Just one domain, the one I tried to ad that already existed. I am wondering if the cpanel logic follows this order (excluding many other things it may do of course):

1) Account creation initiated
2) file /etc/localdomain is moved to .tmp
3) process is stopped because domain is already in system.
4) /etc/localdomains.tmp is not moved back.

HTH :)

cPanel.net Support Ticket Number:
 

ymfm

Active Member
Feb 21, 2003
38
0
156
Brazil
/scripts/mailperm

Hi.


I was having this problem in one of my servers.

I used /scripts/mailperm and the problem disapeared.

Does anyone know if I will have to use /scripts/mailperm every time I add a new account?

Thanks

cPanel.net Support Ticket Number:
 

mahinder

Well-Known Member
Jun 12, 2003
69
0
156
matrix
Re: /scripts/mailperm

Originally posted by ymfm
Hi.


I was having this problem in one of my servers.

I used /scripts/mailperm and the problem disapeared.

Does anyone know if I will have to use /scripts/mailperm every time I add a new account?

Thanks

cPanel.net Support Ticket Number:
i don't think so, it must be an fancy upgrade problemo of cpanel ;) :D :p

BTW, my all servers had this problem and we have to run this script manually to get ride of this problem.

gracias.

cPanel.net Support Ticket Number:
 

myusername

Well-Known Member
PartnerNOC
Mar 6, 2003
693
1
168
chown -R us.*yourbase*
cPanel Access Level
DataCenter Provider
Twitter
/scripts/mailperm is a completely different issue. That had to do with domains dissapearing from the /etc/localdomains files.

Actually it was suggested by Nick to run /scripts/updatenow, then /scripts/mailperm

Now the issue there was a 550 error, here it is 451 so lets not hijack this thread.

Here is the other issue for those looking for it:

http://forums.cpanel.net/showthread.php?s=&threadid=15661&highlight=/etc/localdomains


I have a server sitting there that cannot send mail to another server of mine.

Ive run the two scripts above on both servers, also restarted Bind as suggested on both machines and they still cannot send any emails to our support address.

SMTP error from remote mailer after RCPT TO:<[email protected]>:
host whatever.com [66.246.42.xxx]: 451 Temporary local problem - please try later: retry timeout exceeded

cPanel.net Support Ticket Number: 26529
 
Last edited:

TCSLEA

Active Member
Oct 29, 2003
36
0
156
Austin, T E X A S
/scripts/mailperm corrupting /etc/localdomains

I started to suddenly experience the 451 error, and read about a small variety of solutions that may or may not have worked for others. Here is what I noticed:

Running /scripts/exim4 did not have any effect, and in fact, didn't appear to do anything except echo one line to my screen.

Running /scripts/updatenow did not have any effect that I noticed.

Runnning /scripts/mailperm actually seems to be what CAUSES the problem. I have only 4 domains on my server, and at one point (as far as I know) all were working okay. When this odd problem surfaced, and after reading that mailperm script helped some folks, I gave it a try. Nothing changed.

I looked at my /etc/localdomains and noticed that only 2 were listed... not sure where the other 2 went! After adding the other two manually to /etc/localdomains, and restarting bind (I assume you have to), everything started working just fine again.

I did some experimenting with the /etc/localdomains file, and the /scripts/mailperm script, and of all things - mailperm is what's actually deleting entries from the localdomains file!

Again, manually editing the /etc/localdomains file to make sure all domains were present, then restarting bind, solved the problem. I only have 4 domains, and two were missing. I'd hate to be managing 100+ domains and have half of them vanish!

Out of curiosity, does anyone know why the mailperm script edits the localdomains file?

Where does the script get it's list of domains from that it's syncing with the file? (In other words, how does the script determine, albeit incorrectly, what domains need to be in the localhost file?)

Also, does anyone now if the mailperm script ever runs automatically, or does it need to be run manually from the command prompt?
 
Last edited:

Lycanthrope

Registered
Nov 9, 2003
3
0
151
Re: /scripts/mailperm corrupting /etc/localdomains

Where does the script get it's list of domains from that it's syncing with the file? (In other words, how does the script determine, albeit incorrectly, what domains need to be in the localhost file?)


I'm having the same issue, only slighty different. mailperm wipes out only my MAIN domain from the localdomains file. Anyone know what is causing this?