Page 1 of 1

exim4 cannot send email to root (all localhost users)

Posted: Wed Jun 11, 2014 3:43 pm
by danielbla0172!
I have a problem with exim4 configuration. I try to send email to root, but email stay frozen in queue.

I tried this:

Code: Select all

root@server2:~# echo TEST | mail -s "Hello this is testing email" root
In log (/var/log/exim4/mainlog) is this message:

Code: Select all

2014-06-11 11:47:36 1Wuf84-0004o3-E4 <= [email protected] U=root P=local S=416
2014-06-11 11:47:36 1Wuf84-0004o3-E4 remote host address is the local host: server2.mydomain.cz
2014-06-11 11:47:36 1Wuf84-0004o3-E4 == [email protected] R=dnslookup defer (-1): **remote host address is the local host**
2014-06-11 11:47:36 1Wuf84-0004o3-E4 Frozen
Local host is routable (I hope):

Code: Select all

root@server2:~# exim -bt localhost
LOG: MAIN
  remote host address is the local host: server2.danielblazek.cz (while routing <[email protected]>)
[email protected] cannot be resolved at this time: remote host address is the local host
root@server2:~# 
Configuration of hostname is right:

Code: Select all

root@server2:~# hostname && hostname -f
server2
server2.mydomain.cz
Aliases seems to be OK:

Code: Select all

root@server2:~# cat /etc/aliases 
# /etc/aliases
mailer-daemon: postmaster
postmaster: root
nobody: root
hostmaster: root
usenet: root
news: root
webmaster: root
www: root
ftp: root
abuse: root
noc: root
security: root
root: root
clamav: root
Do have any idea how can I fix it? With Postfix I never have problem like that. System emails always was delivered to /var/mail folder. But with exim4 I' m on the rocks. It's required for me receive system emails...

Please ask me if you need more information or outputs. Thank you for all replies!
btw. My friend also using vestacp and have some problem like I have.

Daniel

Re: exim4 cannot send email to root (all localhost users)

Posted: Mon Jun 16, 2014 12:15 am
by jarland
Open up exim's config file and look for "never_users = root" and take that out. Should take care of it for you :)

Re: exim4 cannot send email to root (all localhost users)

Posted: Mon Jun 16, 2014 3:52 pm
by danielbla0172!
jarland wrote:Open up exim's config file and look for "never_users = root" and take that out. Should take care of it for you :)
THX! For replay. I have still problem to send email to root...

Code: Select all

2014-06-16 17:42:53 1WwZ3d-0007th-4u <= [email protected] U=root P=local S=403
2014-06-16 17:42:53 1WwZ3d-0007th-4u remote host address is the local host: server2.mydomain.cz
2014-06-16 17:42:53 1WwZ3d-0007th-4u == [email protected] R=dnslookup defer (-1): remote host address is the local host
2014-06-16 17:42:53 1WwZ3d-0007th-4u ** [email protected]: retry timeout exceeded
2014-06-16 17:42:53 1WwZ3d-0007tl-88 <= <> R=1WwZ3d-0007th-4u U=Debian-exim P=local S=1287
2014-06-16 17:42:53 1WwZ3d-0007tl-88 remote host address is the local host: server2.mydomain.cz
2014-06-16 17:42:53 1WwZ3d-0007tl-88 == [email protected] R=dnslookup defer (-1): remote host address is the local host
2014-06-16 17:42:53 1WwZ3d-0007tl-88 ** [email protected]: retry timeout exceeded
2014-06-16 17:42:53 1WwZ3d-0007tl-88 [email protected]: error ignored
2014-06-16 17:42:53 1WwZ3d-0007th-4u Completed
2014-06-16 17:42:53 1WwZ3d-0007tl-88 Completed
:@

Re: exim4 cannot send email to root (all localhost users)

Posted: Sat Jun 28, 2014 5:07 pm
by imperio
Hi, Daniel
your problem is solved ?

Re: exim4 cannot send email to root (all localhost users)

Posted: Wed Aug 13, 2014 2:34 pm
by 7thkey
Hi there, i have the same problem. Does anyone fixed it?

Re: exim4 cannot send email to root (all localhost users)

Posted: Fri Aug 15, 2014 12:44 pm
by Deeryo
Hello, I've fixed this problem.
1) Ensure, that server hostname has dns entry or add to /etc/hosts file ip and hostname, like this "192.168.11.11 test01.server.com test01"
1) Go to mail tab in admin account
2) Create new mail domain like server's hostname. Run "hostname -f" to check hostname.
3) Create new email account named "root@domain"
4) Optionally create forward to some other email

Re: exim4 cannot send email to root (all localhost users)

Posted: Sat Apr 02, 2016 11:08 am
by hnoor0033
thanks for everything


______________
== Chess ==