/etc/localdomains doesn't exist on my machine.
So now we have to try to debug exim4 to see where it fails...
Please run:
exim -bt -d
[email protected] 2>&1
My output is:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Testing
[email protected]
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Considering
[email protected]
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
routing
[email protected]
--------> dnslookup router <--------
local_part=root domain=localhost.localdomain
checking domains
search_open: dsearch "/etc/exim4/domains/"
search_find: file="/etc/exim4/domains/"
key="localhost.localdomain" partial=-1 affix=NULL starflags=0
LRU list:
5/etc/exim4/domains/
End
internal_search_find: file="/etc/exim4/domains/"
type=dsearch key="localhost.localdomain"
file lookup required for localhost.localdomain
in /etc/exim4/domains/
lookup failed
localhost.localdomain in "dsearch;/etc/exim4/domains/"? no (end of list)
localhost.localdomain in "!+local_domains"? yes (end of list)
calling dnslookup router
dnslookup router called for
[email protected]
domain = localhost.localdomain
DNS lookup of localhost.localdomain (MX) gave HOST_NOT_FOUND
returning DNS_NOMATCH
dnslookup router declined for
[email protected]
"more" is false: skipping remaining routers
no more routers
[email protected] is undeliverable: Unrouteable address
So if we look at /etc/exim4/exim4.conf.template:
domainlist local_domains = dsearch;/etc/exim4/domains/
So look at this dir:
/etc/exim4/domains# ls -al
total 8
drwxr-xr-x 2 root root 4096 Dec 7 16:12 .
drwxr-xr-x 4 root root 4096 Nov 23 04:58 ..
lrwxrwxrwx 1 root root 39 Dec 7 16:12 devboxindallas.ml -> /home/*/conf/mail/devboxindallas.ml
So I added a new mail domain to my VestCP:
And it is running:
2014-01-18 04:01:23 1W4RmN-00005q-Cn => root <
[email protected]> R=localuser T=local_delivery
2014-01-18 04:01:23 1W4RmN-00005q-Cn Completed
I know not that perfect solution but at least it is working...
PS:
If you want to remove all frozen mails from the queue just enter:
Code:
exiqgrep -z -i | xargs exim -Mrm