mails from some sites does not receive

Goback

Verified User
Joined
May 15, 2011
Messages
22
Hi,
my new server does not receive mails from some sites , while i can receive email from gmail!
my last exim log is(site.com > site2.com is OK but site2.com > site.com is not):
Code:
2014-09-18 15:47:55 1XUZil-0001Uu-Py <= [email protected] U=root P=local S=649 T="lfd on host.site.com: Excessive resource usage: user (2610 (Parent PID:2609))" from <[email protected]> for root
2014-09-18 15:47:55 1XUZil-0001Uu-Py User 0 set for local_delivery transport is on the never_users list
2014-09-18 15:47:55 1XUZil-0001Uu-Py == [email protected] R=localuser T=local_delivery defer (-29): User 0 set for local_delivery transport is on the never_users list
2014-09-18 15:47:55 1XUZil-0001Uu-Py ** [email protected]: retry timeout exceeded
2014-09-18 15:47:55 1XUZil-0001Ux-QM <= [email protected] U=root P=local S=689 T="lfd on host.site.com: Excessive resource usage: mysql (1483 (Parent PID:1483))" from <[email protected]> for root
2014-09-18 15:47:55 1XUZil-0001V0-Qc <= <> R=1XUZil-0001Uu-Py U=mail P=local S=1470 T="Mail delivery failed: returning message to sender" from <> for [email protected]
2014-09-18 15:47:55 1XUZil-0001Ux-QM User 0 set for local_delivery transport is on the never_users list
2014-09-18 15:47:55 1XUZil-0001Ux-QM == [email protected] R=localuser T=local_delivery defer (-29): User 0 set for local_delivery transport is on the never_users list
2014-09-18 15:47:55 1XUZil-0001Ux-QM ** [email protected]: retry timeout exceeded
2014-09-18 15:47:55 1XUZil-0001Uu-Py Completed
2014-09-18 15:47:55 1XUZil-0001V0-Qc User 0 set for local_delivery transport is on the never_users list
2014-09-18 15:47:55 1XUZil-0001V0-Qc == [email protected] R=localuser T=local_delivery defer (-29): User 0 set for local_delivery transport is on the never_users list
2014-09-18 15:47:55 1XUZil-0001V0-Qc ** [email protected]: retry timeout exceeded
2014-09-18 15:47:55 1XUZil-0001V0-Qc [email protected]: error ignored
2014-09-18 15:47:55 1XUZil-0001V0-Qc Completed
2014-09-18 15:47:55 1XUZil-0001V6-Qy <= <> R=1XUZil-0001Ux-QM U=mail P=local S=1510 T="Mail delivery failed: returning message to sender" from <> for [email protected]
2014-09-18 15:47:55 1XUZil-0001Ux-QM Completed
2014-09-18 15:47:55 1XUZil-0001V6-Qy User 0 set for local_delivery transport is on the never_users list
2014-09-18 15:47:55 1XUZil-0001V6-Qy == [email protected] R=localuser T=local_delivery defer (-29): User 0 set for local_delivery transport is on the never_users list
2014-09-18 15:47:55 1XUZil-0001V6-Qy ** [email protected]: retry timeout exceeded
2014-09-18 15:47:55 1XUZil-0001V6-Qy [email protected]: error ignored
2014-09-18 15:47:55 1XUZil-0001V6-Qy Completed
2014-09-18 15:52:02 1XUZmk-0001WX-K7 <= [email protected] H=localhost (webmail.site.com) [::1] P=esmtpa A=login:[email protected] S=552 [email protected] T="salam" from <[email protected]> for [email protected]
2014-09-18 15:52:26 1XUZmk-0001WX-K7 => [email protected] F=<[email protected]> R=lookuphost T=remote_smtp S=573 H=site2.com [X.X.130.39] X=TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256 C="250 OK id=1XUVbH-002ZVo-F5"
2014-09-18 15:52:26 1XUZmk-0001WX-K7 Completed
 
Those are all issues related to delivering email to root. That user is in the never_users list, which means that exim won't deliver email directly to root (it can be a security issue). Try making an alias to have root email delivered to a non-root user, by adding something similar to this to your /etc/aliases file:
root: [email protected]

then all email will be delivered to the [email protected] email address.
 
your answer is true,but i think that log i inserted in first post is not related to my problem!(i just understand!)
problem is : when i send email to a site from this server i can not found any log about it and i can not receive that email,while emails from gmail and yahoo are OK and i can see those logs.
logs i checking are located at:
/var/log/exim/
 
Goback said:
when i send email to a site from this server i can not found any log about it and i can not receive that email,while emails from gmail and yahoo are OK and i can see those logs.

Are the both "from" and "to" email accounts and domains hosted on the same server? Did you try to send email from outside to your emails? Are you sure DNS settings are correct and don't have errors??
 
Are the both "from" and "to" email accounts and domains hosted on the same server? Did you try to send email from outside to your emails? Are you sure DNS settings are correct and don't have errors??

sites that hosted in same server are ok,there is no problem with them.
please note that this problem just is for some sites , not alls
 
If an email sent from a remote server doesn't get in your inbox on your new server and there is nothing related in logs, then you check logs on a server from which you sent emails. And of course there should be a bounce message, which you need to find and check.
 
sorry, i checked now and there is new problem,as you said emails from same server have problem now.
i just disabled recursive DNS and create an alias for root mail!
 
i regenerate permissions also!
/var/log/exim/mainlog
Code:
(file or directory name for virtual_localdelivery transport) failed: failed to open /etc/virtual/domainowners for linear search: Permission denied (euid=1011 egid=12)
 
Code:
[/FONT][/COLOR][COLOR=#000000][FONT=courier new]chmod 755 /etc/virtual[/FONT][/COLOR]
[COLOR=#000000][FONT=courier new]chown mail:mail /etc/virtual[/FONT][/COLOR][COLOR=#000000][FONT=courier new]
chown mail:mail /etc/virtual/domains[/FONT][/COLOR]
[COLOR=#000000][FONT=courier new]chown mail:mail /etc/virtual/domainowners[/FONT][/COLOR]
[COLOR=#000000][FONT=courier new]chmod 640 /etc/virtual/domainowners[/FONT][/COLOR]
[COLOR=#000000][FONT=courier new]chmod 640 /etc/virtual/domains[/FONT][/COLOR][COLOR=#000000][FONT=courier new]
 
Code:
[/FONT][/COLOR][COLOR=#000000][FONT=courier new]chmod 755 /etc/virtual[/FONT][/COLOR]
[COLOR=#000000][FONT=courier new]chown mail:mail /etc/virtual[/FONT][/COLOR][COLOR=#000000][FONT=courier new]
chown mail:mail /etc/virtual/domains[/FONT][/COLOR]
[COLOR=#000000][FONT=courier new]chown mail:mail /etc/virtual/domainowners[/FONT][/COLOR]
[COLOR=#000000][FONT=courier new]chmod 640 /etc/virtual/domainowners[/FONT][/COLOR]
[COLOR=#000000][FONT=courier new]chmod 640 /etc/virtual/domains[/FONT][/COLOR][COLOR=#000000][FONT=courier new]
permissions problems solved.tnqs.
what about this msg inside roundcube:
Code:
Could not move the message(s).
 
i can now receive email from hosts which i could not be received from!
it's look like that problem was permission,hmm?
 
Yes, that's likely an issue with permissions:

Use /usr/local/directadmin/scripts/set_permissions.sh to fix it

Code:
/usr/local/directadmin/scripts/set_permissions.sh

DirectAdmin File Permission/Ownership script


Usage:
  /usr/local/directadmin/scripts/set_permissions.sh all


  /usr/local/directadmin/scripts/set_permissions.sh da_files
  /usr/local/directadmin/scripts/set_permissions.sh user_homes
  /usr/local/directadmin/scripts/set_permissions.sh mysql
  /usr/local/directadmin/scripts/set_permissions.sh email
  /usr/local/directadmin/scripts/set_permissions.sh logs
  /usr/local/directadmin/scripts/set_permissions.sh etc_configs


internal:
  /usr/local/directadmin/scripts/set_permissions.sh maildir <user> <path/Maildir>
  /usr/local/directadmin/scripts/set_permissions.sh set_user_home <user>
 
i had used this command then problem accrued!
Code:
cd /home
for i in `ls`; do { chown -R $i:$i $i; }; done;
cd /usr/local/directadmin/scripts
./set_permissions.sh all

is need to run it again?
 
Back
Top