Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have install exim few minutes before and to test it out, I start following guidelines given in the exim documentation.
as given in there to test a mail I should do this
Code:
[root@Sumit rc.d]# exim -v sumit@example.com
From: sumit@localhost.com
To: sumit@example.com
Subject Testing Exim on local machine
This is great
.
LOG: MAIN
<= root@Sumit.190 U=root P=local S=361
delivering 1FgFhY-0000qG-EC
[root@Sumit rc.d]# LOG: MAIN PANIC
User 0 set for remote_smtp transport is on the never_users list
LOG: MAIN PANIC
== sumit@nethuesindia.com R=dnslookup T=remote_smtp defer (-29): $
User 0 set for remote_smtp transport is on the never_users list
I got this error in Panic Log
Code:
[root@Sumit rc.d]# cat /var/spool/exim/log/paniclog
2006-05-17 11:20:11 1FgEu8-0000q4-5S User 0 set for remote_smtp transport is on the never_users list
2006-05-17 11:20:11 1FgEu8-0000q4-5S == sumit@nethuesindia.com R=dnslookup T=remote_smtp defer (-29): $
User 0 set for remote_smtp transport is on the never_users list
2006-05-17 12:11:47 1FgFhY-0000qG-EC User 0 set for remote_smtp transport is on the never_users list
2006-05-17 12:11:47 1FgFhY-0000qG-EC == sumit@nethuesindia.com R=dnslookup T=remote_smtp defer (-29): $
User 0 set for remote_smtp transport is on the never_users list
user 0 is root. the never_users list is a lite of uid's who can not send mail to various places, and in this case it is the remote_smtp transport. i.e. root is not allowed to send emails out of the local machine. makes sense to me. you can remove or override the never_users list if you really want, but it's not recommended.
root is not allowed to send emails out of the local machine. makes sense to me.
I would like to get your point on this, I mean why root cannot send mail out? Also while doing configuration of Exim, I set EXIM_USER=root I guess that is Root is allowed user, infact Exim will run as root user (also a recommanded in exim configuration). Or Shall I make new user say exim and run application as that user?
the uid is the uid of the user who has opened a connection to the smtp server, not the own of the server process itself. you really shouldn't be sending mail about to and from root, only local stuff like logs and thigns would be suitable for root to send emails. try sending as a normal usre and it should go through that just fine.
[root@Sumit rc.d]# exim -v sumit
From: sumit@localhost
To: sumit@nethuesindia.com
Subject: this is subject
This is test message for eamil to be sent through Exim
Thank
.
LOG: MAIN
<= root@Sumit.190 U=root P=local S=382
delivering 1FgHpc-0000qy-2u
[root@Sumit rc.d]# LOG: MAIN
== sumit@sumit.190 R=localuser T=local_delivery defer (13): Permission denied: creating lock file hitching post /var/mail/sumit.lock.Sumit.190.446ae56d.00000cd6 (euid=500 egid=500)
I have sumit as user in system with user ID as 500, Not sure why it can make lock file though I found
a zero byte file in /var/mail/ with name as "sumit" .
Edit:
Just to mention /var/mail is synbolic link to /var/spool/mail and have 777 permission where as /var/spool/mail is
directory with 775 permission (user root and group mail)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.