Operating System - HP-UX
1834200 Members
2971 Online
110066 Solutions
New Discussion

problem with mail of user

 
SOLVED
Go to solution
Jairo Campana
Trusted Contributor

problem with mail of user

hello after of to have turned my system into way j the user netrangr cannot receive email from the application netranger.
the mail.log is:
Dec 19 15:43:31 nms1 sendmail[22222]: NOQUEUE: SYSERR(netrangr): queuename: Cannot create "qfPAA22222" in "/var/spool/mqueue" (euid=103): Permission denied

that it can be happening
legionx
14 REPLIES 14
Christopher Caldwell
Honored Contributor

Re: problem with mail of user

show owner, group, perms for
/var/spool/mqueue:

ll -d /var/spool/mqueue

show who UID 103 is:

grep :103: /etc/passwd
Patrick Wallek
Honored Contributor

Re: problem with mail of user

Check the permissions of the /var/spool/mqueue directory. Here are permissions for all directories down to /var/spool/mqueue:

dr-xr-xr-x 20 bin bin 2048 Nov 7 09:25 /var
dr-xr-xr-x 13 bin bin 1024 Feb 5 2001 /var/spool
drwxr-xr-x 2 bin bin 1024 Dec 19 01:30 /var/spool/mqueue
Jairo Campana
Trusted Contributor

Re: problem with mail of user

# ll -d /var/spool/mqueue
drwxr-xr-x 2 bin bin 5120 Dec 19 15:51 /var/spool/mqueue

nms1 # grep 103 /etc/passwd
netrangr:*:103:103::/usr/nr:/usr/bin/ksh
nms1 #


legionx
Jairo Campana
Trusted Contributor

Re: problem with mail of user

nms1 # ll -d /var
dr-xr-xr-x 22 bin bin 1024 Jul 2 16:50 /var
nms1 # ll -d /var/spool
dr-xr-xr-x 15 bin bin 1024 Sep 20 11:13 /var/spool
nms1 # ll -d /var/spool/mqueue
drwxr-xr-x 2 bin bin 5120 Dec 19 15:55 /var/spool/mqueue
nms1 #
legionx
Patrick Wallek
Honored Contributor

Re: problem with mail of user

Do a:

# ps -ef | grep sendmail

to see if sendmail is running and to see which user is running sendmail.

It should be run as root.
Craig Rants
Honored Contributor

Re: problem with mail of user

What about /var and /var/spool ?
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Sanjay_6
Honored Contributor

Re: problem with mail of user

Hi,

Change the mqueue directory permission to 777 and try. It should have worked with 755.

Hope this helps.

Regds
Jairo Campana
Trusted Contributor

Re: problem with mail of user

# ps -ef|grep sendmail|grep -v grep
root 19054 1 0 15:34:53 ? 0:00 sendmail: accepting connections on port 25
#
legionx
Jairo Campana
Trusted Contributor

Re: problem with mail of user

sanjay;
now it works ok . whit 777 mqueue
the problem now is the warnin writabla for world in /var/spool/mqueue
# /sbin/init.d/sendmail start
WARNING: World writable directory /var/spool/mqueue
/etc/mail/aliases: 6 aliases, longest 9 bytes, 76 bytes total
sendmail
#

legionx
Sanjay_6
Honored Contributor

Re: problem with mail of user

Hi Jairo,

The standard directory permission for /var/spoo/mqueue is 755. When you gave the permission 777 it became world writable. It should not be a problem if this is within your local network. You can still set your directory permission to 755 and try restarting the sendmail daemon.

chmod 755 /var/spool/mqueue
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

note : /var/spoo/mqueue and /usr/spool/mqueue are same.

Hope this helps.

regds

Christopher Caldwell
Honored Contributor
Solution

Re: problem with mail of user

when the mail queue was 777, give us the perms of the spool file that actually got written.

ll /var/spool/mqueue
you should see things like
-rw------- 1 root mail 854 Dec 19 14:30 qfSAA26174

Also show us the perms on sendmail itself
ll /usr/sbin/sendmail

you should see something like
-r-sr-sr-t 1 root mail

It seems like either sendmail isn't setuid'ing or it's running as the wrong user.
Jairo Campana
Trusted Contributor

Re: problem with mail of user

Cristopher, the problem is what
/usr/sbin/sendmail have perms 555
# ll /usr/sbin/sendmail
-r-xr-xr-x 1 root mail 823296 May 10 2000 /usr/sbin/sendmail

that I can do?
legionx
Steven Gillard_2
Honored Contributor

Re: problem with mail of user

You can correct the permissions on sendmail with:

# chmod ug+s,o+t /usr/sbin/sendmail

Regards,
Steve
Sanjay_6
Honored Contributor

Re: problem with mail of user

Hi Jairo,

The file /usr/sbin/sendmail should have permission -r-sr-sr-t.

Hope this helps.

Regds