1834165 Members
1868 Online
110064 Solutions
New Discussion

Sendmail 8.13.3 problem

 
enrico.nic
Regular Advisor

Sendmail 8.13.3 problem

Hi

I have upgraded sendmail, with the almost new 8.13.3 version from HP.
The reason for the upgrade was the presence of the "milter" library, that lets us the ClamAV antivirus from e-mail on the server.
Everything seemed to work fine (for example with elm or through POP server), except when I tried to send myself an attachment through the mpack utility:

enrico@gissi 70 > mpack -s "Just a test" Document.doc enrico
WARNING: RunAsUser for MSP ignored, check group ids (egid=6, want=25)
can not chdir(/var/spool/clientmqueue/): Permission denied
Program mode requires special privileges, e.g., root or TrustedUser.

This seems to be a problem with user and/or group IDs, but I really don't understand why, since:
- user and group smmsp have been created
- the /var/spool/clientmqueue dir is of user smmsp:smmsp with permits drwxrwx---
- the option "RunAsUser", set to "smmsp", is present in the sendmail.cf and submit.cf files

Can anybody please help me ?

Thank you

Enrico
6 REPLIES 6
Robert-Jan Goossens
Honored Contributor

Re: Sendmail 8.13.3 problem

Hi Enrico,

Could you post
# ll /usr/bin/sendmail

I believe it should be
-r-sr-sr-t 1 root smmsp 831488 Oct 15 2004 sendmail

HTH,
Robert-Jan
enrico.nic
Regular Advisor

Re: Sendmail 8.13.3 problem

Trying

enrico@gissi 57 > ll /usr/sbin/sendmail
lrwxr-xr-x 1 root sys 39 mag 3 14:45 /usr/sbin/sendmail@ -> /usr/contrib/sendmail/usr/sbin/sendmail
enrico@gissi 58 > ll /usr/contrib/sendmail/usr/sbin/sendmail
-r-xr-sr-x 1 root mail 1826816 feb 17 19:53 /usr/contrib/sendmail/usr/sbin/sendmail

Permits should be changed ? Even in all files in /var/mail ?

Thanks
Robert-Jan Goossens
Honored Contributor

Re: Sendmail 8.13.3 problem

permission on the usr/sbin/sendmail should be changed. In you case it looks like the sendmail binary is in /usr/contrib/sendmail/usr/sbin/sendmail

# cd /usr/contrib/sendmail/usr/sbin/
# chown root:smmsp sendmail
# chmod 2555 sendmail
# /etc/init.d/sendmail stop
# /etc/init.d/sendmail start

Regards,
Robert-Jan

Ps. did you compile this version yourself ?

http://www.software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=SMAIL813
enrico.nic
Regular Advisor

Re: Sendmail 8.13.3 problem

I've changed the permits on sendmail, "RunAsUser=smmsp" has been set in sendmail.cf: sendmail seems to start correctly, but I find in /var/adm/mail.log

May 9 15:47:10 gissi sm-mta[14526]: j49DlAIk014526: SYSERR(root): collect: Cann
ot write ./dfj49DlAIk014526 (bfcommit, uid=2500, gid=25): Permission denied
May 9 15:47:10 gissi sm-mta[14526]: j49DlAIk014526: from=it>, size=1757, class=0, nrcpts=1, proto=ESMTP, daemon=MTA, relay=mnaxp [10.0.0.
13]

at the first message arrived on the server.

Yes, this is the version taken from the HP software.hp.com website: the installation procedure didn't set the permits to the smmsp user.

Any other clue ?

Thank you

Steven E. Protter
Exalted Contributor

Re: Sendmail 8.13.3 problem

Cann
ot write ./dfj49DlAIk014526 (bfcommit, uid=2500, gid=25): Permission denied
May 9 15:47:10 gissi sm-mta[14526]:

You may have a permission or space problem on /var/spool/mqueue

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ermin Borovac
Honored Contributor

Re: Sendmail 8.13.3 problem

RunAsUser option should only be set in submit.cf, not in sendmail.cf.

sendmail.cf is for incoming email. It operates on /var/spool/mqueue directory. This directory is writable by root only, so if you make sendmail run as smmsp it won't be able to write to it.