Can't deliver email locally

nobaloney

NoBaloney Internet Svcs - In Memoriam †
Joined
Jun 16, 2003
Messages
24,989
Location
California
We're currently restoring an entire machine to a different server.

We find we can't deliver to a local domain; exim is telling us that DNS points the domain to the same server.

Problem is DNS shouldn't even get consulted, since the domain is listed in the /etc/virtual/domains file.

Anyone else see this kind of behavior?

Thanks.

Jeff
 
Email isn't being delivered locally for me either. Although nothing shows up in the exim log but I don't find any errors for it either, not even a fail message :confused:
 
I just went through something similar. DNS is still consulted, even though the domain is listed in /etc/virtual/domains. Make sure the domain and its mail host (mail.domain.com) resolves on the localhost to one of the local IP's. Good luck!
 
Solved!

I finally found the problem:

The DA checklist http://help.directadmin.com/item.php?id=16]here[/URL] says, in point five:
5) The directory /etc/virtual/hostname must exist.. (eg:
/etc/virtual/server.domain.com). It must not contain any files.
We ignore that information and use it to contain one file, the aliases file, so that the admin user of the system will get all the system email.

The problem isn't in the file itself (as long as the ownership and rights are correct), but rather one of the lines we had in it:

*: :fail:

When we removed that line everything worked properly.
For you who like my idea of an alias file for system accounts, here's the contents that work properly:
abuse: admin
hostmaster: admin
postmaster: admin
webmaster: admin
root: admin
bin: admin
daemon: admin
nobody: admin
ftp: admin
operator: admin
uucp: admin
admin: [email protected]
Jeff
 
Ah, you broke it! :) /etc/virtual/hostname is empty by default. That's a good trick though, sending daemon@hostname to a different email address.
 
Back
Top