Dwivedi Ajay kumar rearranged electrons thusly:
> I am using sendmail and whenever I send a mail to myself using
> "mail ajayd" it is getting queued. However on restarting sendmail (or
> killall -HUP) the mail is properly delivered.
One point - never do a killall -HUP to restart sendmail (and preferably dont do
a /etc/rc.d/init.d/sendmail stop)
The way to go is
# kill -HUP `head -n1 /var/run/sendmail.pid`
> moreover this is only happening with local mail, fetchmail is
> delivering mails without any problems.
sendmail forces the queue on restart ... take a look at how you are running
sendmail, for instance.
> Feb 15 22:56:43 ajayd sendmail[2589]: f1FHQhO02587: to=ajayd,
> ctladdr=ajayd (500/100), delay=00:00:00, xdelay=00:00:00, mailer=local,
> pri=30030, dsn=4.0.0, stat=Deferred
oh well ... here _is_ your error
> And there is also a entry in /var/log/mail/errors
> Feb 15 22:56:43 ajayd
> sendmail[2590]: f1FHQhO02587: SYSERR(ajayd): openmailer: insufficient
> privileges to change gid
> (Sendmail is running as root and not as some other user)
Is sendmail installed as setuid root?
mjollnir# ls -al /usr/sbin/sendmail
-r-sr-xr-x 1 root bin 367604 Feb 8 18:32 /usr/sbin/sendmail
-s
--
Suresh Ramasubramanian <--> mallet <at> efn <dot> org
EMail Sturmbannfuhrer, Lower Middle Class Unix Sysadmin
"What separates normal people from kooks is how they react when people disagree
with them or tell them "NO" <-- Ron Ritzman on news.admin.net-abuse.email
----------------------------------------------
An alpha version of a web based tool to manage
your subscription with this mailing list is at
http://lists.linux-india.org/cgi-bin/mj_wwwusr