Web Hosting Talk







View Full Version : Cpanel/Exim


Silvershark
05-01-2004, 02:38 PM
when trying to send email to my domain hosted from my box with cpanel i get the following message.

while talking to mail.domainname.com.:
>>> RCPT To:<support@domainname.com>
<<< 550-(ns1.currentdomain.org) [24.x.x.x] is currently not permitted to relay through
<<< 550-this server. Perhaps you have not logged into the pop/imap server in the
<<< 550-last 30 minutes or do not have SMTP Authentication turned on in your email
<<< 550 client.
550 <support@domainname.com>... User unknown

I was curious if this was a common problem with the exim/cpanel. I am able to telnet into both ports (25, and 110)

This does this with every domain that I am hosting with my cpanel. Everything else seems to be working fine. I also checked my email status and it looks fine. There are not any messages in que.

Silvershark
05-01-2004, 03:12 PM
This is what i get from tail -f /var/log/exim_mainlog

2004-05-01 11:47:37 1BJzWT-0008Vl-Lw lowest numbered MX record points to local host: domainname.com
2004-05-01 11:47:37 1BJzWT-0008Vl-Lw == support@domainname.com R=lookuphost defer (-1): lowest numbered MX record points to local host
2004-05-01 11:47:37 1BJzWT-0008Vl-Lw Frozen
2004-05-01 11:49:42 1BJzWT-0008Vl-Lw removed by root
2004-05-01 12:04:56 exim 4.24 daemon started: pid=1352, -q1h, listening for SMTP on port 25 (IPv4)
2004-05-01 12:04:56 Start queue run: pid=1353
2004-05-01 12:04:56 End queue run: pid=1353
2004-05-01 12:04:56 exim 4.24 daemon started: pid=1357, no queue runs, listening for SMTP on port 465 (IPv4)
2004-05-01 12:08:20 no host name found for IP address 24.x.x.x
2004-05-01 12:08:20 H=(ns1.x.x) [24.x.x.x] F=<kendall@sledtalk.com> rejected RCPT <support@domainname.com>: (ns1.x.x) [24.x.x.x] is currently not permitted to relay through this server. Perhaps you have not logged into the pop/imap server in the last 30 minutes or do not have SMTP Authentication turned on in your email client.

Sheps
05-01-2004, 04:16 PM
Turn on SMTP Authentication for your Email Client

Silvershark
05-01-2004, 09:35 PM
I have tried using smtp authentication. This is not the problem. I have tried sending from hotmail, yahoo etc and the message recieved from those clients is message is undeliverable.

I think this is a server side issue, because i can send from my email client to any other domain fine besides the ones hosted off of cpanel.

choon
05-01-2004, 09:43 PM
Is your bind/named running?
Is it just on one domain or all domains hosted on your box?
Run:
/scripts/fixcommonproblems
Before doing anything else might helps ;)

Silvershark
05-01-2004, 09:55 PM
Here is how I have things setup.

I host my own DNS servers here in my local area. These servers point the correct records to my dedicated hosted box with cpanel installed. All records are working correctly and all mail records are pointed correctly. I checked this information with dnsrecords.com and dnsstuff.com.

I do not have named service running on my cpanel box because I have no need for this service. Web sites are working correctly.

I am unable to send or recieve emails from all domains hosted from my cpanel. I cannot send to local domains on the cpanel or non local domains, IE:hotmail.com etc.

On the cpanel hosted email address end, if i try to send an email I recieve the following error message.

The message could not be sent because one of the recipients was rejected by the server. The rejected e-mail address was 'user@domain.com'. Subject 'Test', Account: 'mail.domainname.com', Server: 'mail.domainname.com', Protocol: SMTP, Server Response: '451 Temporary local problem - please try later', Port: 25, Secure(SSL): No, Server Error: 451, Error Number: 0x800CCC79

If i try and send from a non local domain hosted by my cpanel box I recieve the above message stated in my first post.

I hope that helps a little more.

Thanks again for all the info so far.

choon
05-01-2004, 10:02 PM
Please run the /scripts/fixcommonproblems first then try to see whether do you have the same problem.

Check for your /etc/resolv.conf entry then try to ping any of your domain hosted on the same server.

Test ping any of your hosted domain on the same server to see whether does it resolve?

Check whether does all your hosted domains listed in this file:
/etc/localdomains

Later... ...

Silvershark
05-01-2004, 10:24 PM
1. Ran /scripts/fixcommonproblems. I can now send email from domains, but i havent recieved a bounceback yet, nor have i recieved the email.

2. /etc/resolv.conf shows

nameserver ns1.mydnsserver.com
nameserver ns2.mydnsserver.com

3. I can ping all hosted domains, however, I turned echo off so It will not ping them. But the IP pointing is correct. IE: points to my cpanel server.

4. All local domains are now listed under /etc/localdomains However subdomains are not listed. IE: mail.domain.com smtp.domain.com just domain.com for every domain name. I had put local domains under /etc/remotedomains so it would look for mx records.

Thanks again. Looks like its working more than it was.

Looks like i can send and recieve to all domains other than local. I am almost there! Thanks for the help! Perhaps since i changed the /etc/localdomains I need to restart my box or a service?

choon
05-01-2004, 10:26 PM
Did you check your mail logs?
Check your /tmp permission if you have installed MailScanner might helps ;)

choon
05-01-2004, 10:30 PM
For your /etc/resolv.conf entry... normally I will use IP addresses ;)
e.g.:
nameserver ns1.domain.com_IP
nameserver ns2.domain.com_IP

Silvershark
05-01-2004, 10:36 PM
Yeah, mine says...

nameserver 24.237.x.x
nameserver 24.237.x.x

Should it say...

nameserver ns1.domain.com 24.237.x.x
nameserver ns2.domain.com 24.237.x.x

Btw, I can send recieve to all hosted domains, but i cannot send email between the hosted domains on the same box. I edited my above post too.

choon
05-01-2004, 10:38 PM
It is:
nameserver 24.237.x.x
nameserver 24.237.x.x

Silvershark
05-01-2004, 11:02 PM
W00t! Rebooted and now its working flawlessly!

Thanks again choon. I couldnt have done it without you.

choon
05-01-2004, 11:15 PM
Actually you don't have to reboot... just restart exim or cpanel will mostly do the trick...
service cpanel restart
OR
/etc/init.d/cpanel restart
Glad you have resolved your problem thus I will close this thread ;)

If you need to reopen this thread, simply PM me or report to CL.