Main mail account not working

jeff_j

Verified User
Joined
Feb 5, 2004
Messages
6
We are having problems with the main e-mail accounts for sites that are using their own IPs. From seaching the forums it looks like their mail is getting forwarded to system e-mail accounts.

Yes, the hostname of the machine is setup as a domain in
directadmin.

Yes, I've deleted the hostname out of /etc/virtual/domains and /etc/virtual/domainowners.

I left the /etc/virtual/<hostname> directory, though I deleted everything in it.

I don't want to change the hostname on my machines. I tried changing the admin domain in directadmin to admin.hostname but that didn't fix anything.

If I try sending an e-mail to username@domainname the exim/mainlog says:

"lowest numbered MX record points to local host: <hostname>"
"username@hostname <username@domainname> R=lookuphost defer (-1): lowest numbered MX record points to local host"

Is there anything else I can try to get this sorted out?

Thanks,
Jeff
 
Hello,

Yes, the hostname of the machine is setup as a domain in DirectAdmin

You *can't* have that. Change your hostaname from domain.com to server.domain.com and make sure it resolves.

Also make sure that the hostname is only in /etc/virtual/domains and that the domain is in both /etc/virtual/domains and /etc/virtual/domainowners.

John
 
Well like I said, I don't want to change the hostname, but with the directions above I was able to get it to work by changing the domain name from domain to admin.domain.

Thanks.
 
Im opening this thread again as I have the exact same problem.
Although i dont really understand this:
"the hostname of the machine is setup as a domain in
directadmin."
Hostname of what machine? ;) The domain im talking about is creatix.se. Mail should be handle by another server, so I have removed the domain from /etc/virtual/domains and also removed its directory.
While trying to send a mail from our server to the domain leaves this message in the log:
"lowest numbered MX record points to local host: creatix.se"

I have done the exact same thing with domain knivby.nu and for this domain it works perfectly!
 
Our server hostname is not equal to the domain which want to set external server. I have done as I ought to do as described in earlier post.
Still doesnt work though. As I have done exactly like another domain which makes use of external server (and works) Im starting to think something is wrong with the MX Records of this domain. Is this possible? Or can I be sure the problem resides on the server? (Im not personally able to change MX Records or any domain changes)
 
Hello,

You can try sending mail from webmail or squirrelmail. If the domain is on the server, then the mail should arrive no problems, regardless of the MX record. If it arrives, then it's an MX problem.

If it *doesn't* arrive when you send it via webmail or squirrelamail (to yourself)..then it's something else, and you'd need to check your /var/log/exim/mainlog for clues.

John
 
Well, the domains on the server but the mail should not be handle by localhost. It should be handle by another server. It does arrive if I change the domain to handle mails on localhost but when I configure it to use external server it fails with the error described above.
 
Back
Top