Operating System - HP-UX
1828361 Members
3723 Online
109976 Solutions
New Discussion

Problem with Sendmail 8.13.3

 
Roslyn Faicol
Occasional Advisor

Problem with Sendmail 8.13.3

Hi,

I just upgraded my sendmail version from 8.9.3 to 8.13.3, a depot file which I got from itrc.hp.com. After the upgrade I experience the error below, when sending a mail for non root user.

#collect: Cannot write ./dfl9A4Pc0s002789 (bfco
mmit, uid=112, gid=6): Permission denied
queueup: cannot create queue file ./qfl9A4Pc0s002789, euid=112, fd=-1, fp=0x0: Permission denied

My OS version is HPUX B.11.11. PLEASE HELP!
12 REPLIES 12
whiteknight
Honored Contributor

Re: Problem with Sendmail 8.13.3

Roslyn,

This is a defect, will be fix in later version.


As a workaround, it is simplest to run sendmail without MSP enabled and to
configure your system not to start the sendmail MTA (or just to start a
sendmail queue runner to process any delayed mail) during system start-up.

The sendmail binary delivered with the sendmail 8.13.3 depot is still a set-
uid program, so non-root users can run it to submit mail. (However, once MSP
has been enabled via gen_cf, the binary will have been modified to disable
this.)

Don't attempt to enable the Send_only option via gen_cf.

Configure smart host (DS) directly in sendmail.cf and /etc/mail/aliases as
required.

In file /etc/rc.config.d/mailservs, disable the automatic launching of the
sendmail MTA:

export SENDMAIL_SERVER=0

To launch a sendmail queue-runner process which checks the queue every 30
minutes, execute:

# /usr/sbin/sendmail -q30m

On a system where MSP has already been enabled, to 'undo' this operation you
will need to:

Remove /var/spool/clientmqueue
Remove the smmsp user and group
Remove the submit.cf file
chmod /usr/sbin/sendmail to 4555

WK
Problem never ends, you must know how to fix it
Roslyn Faicol
Occasional Advisor

Re: Problem with Sendmail 8.13.3

Have tried the sugested work around .. but just the same .. ordinary user is unable to send mail.
Steven E. Protter
Exalted Contributor

Re: Problem with Sendmail 8.13.3

Shalom,

Check the permissions on the /var/spool/mail directory and adjust them so the user can send mail.

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
Dennis Handly
Acclaimed Contributor

Re: Problem with Sendmail 8.13.3

>SEP: Check the permissions on the /var/spool/mail directory and adjust them so the user can send mail.

Did you mean /var/spool/mqueue/?
In my case, only root can access it.
drwx------ 2 root sys 8192 Oct 8 21:16 /var/spool/mqueue
Roslyn Faicol
Occasional Advisor

Re: Problem with Sendmail 8.13.3

My /var/spool/mqueue permission are as follows :

drwxrwxr-x 2 root mail 8192 Oct 15 08:05 mqueue

What is the correct permission that I should give?
Dennis Handly
Acclaimed Contributor

Re: Problem with Sendmail 8.13.3

>What is the correct permission that I should give?

Yours is probably fine for 11.11. Mine was from 11.23.
Dennis Handly
Acclaimed Contributor

Re: Problem with Sendmail 8.13.3

For 11.11 and earlier I have:
drwxr-xr-x 2 bin bin 88064 Oct 15 19:43 /var/spool/mqueue/
Roslyn Faicol
Occasional Advisor

Re: Problem with Sendmail 8.13.3

I have change the ownership and permission but just the same ordinary user is unable to send mail. Any other suggestions?
Dennis Handly
Acclaimed Contributor

Re: Problem with Sendmail 8.13.3

>but just the same ordinary user is unable to send mail. Any other suggestions?

I think you need to read WK's comments:
>WK: As a workaround, it is simplest to run sendmail without MSP enabled ...
>The sendmail binary delivered with the sendmail 8.13.3 depot is still a set-uid program ...
Roslyn Faicol
Occasional Advisor

Re: Problem with Sendmail 8.13.3

Hi,

Sorry I did not mention that MSP is not enabled in our system. Anyways, I will just wait for the newer version that HP will release. Last questions Dennis, you did mention that you already installed this in HPUX B11.23, did you have any problem with it?
Dennis Handly
Acclaimed Contributor

Re: Problem with Sendmail 8.13.3

>you did mention that you already installed this in HP-UX B.11.23,

No, I was using HP's version.
Roslyn Faicol
Occasional Advisor

Re: Problem with Sendmail 8.13.3

No I have not installed this to B11.23,but have plans to. Since the current installation in B11.11 is not yet working this plan have been defered.