Operating System - HP-UX
1833758 Members
2531 Online
110063 Solutions
New Discussion

Re: sendmail on hpux 11.0

 
SOLVED
Go to solution
vaman
Frequent Advisor

sendmail on hpux 11.0

I am getting error after issuing following command
file1 | mailx -s "subject" name@mail.com

error-
Can't create transcript file ./xfiA5FP5q27179: Permissiond
hash map "Alias0": unsafe map file /etc/mail/aliases.db: Permission denied
name... User unknown
name@mail.com
name@mail.comqueueup: cannot create queue temp file d
vaman kulkarni
8 REPLIES 8
Sundar_7
Honored Contributor

Re: sendmail on hpux 11.0

Hi Vaman,

Looks like you created an another thread for the same problem :-).

In your last post, I dont see the output of the following command

# ls -lrt /usr/contrib/bin/usr/sbin/sendmail


- Sundar.
Learn What to do ,How to do and more importantly When to do ?
vaman
Frequent Advisor

Re: sendmail on hpux 11.0

Sunder
[/usr/sbin]
lrwxr-xr-x 1 root root 39 Mar 14 2003 sendmail@ -> /usr/contrib/sendmail/usr/sbin/sendmail


ls -lrt /usr/contrib/sendmail/usr/sbin/sendmail
-rwxr-xr-x 1 root mail 974848 Oct 28 2003 /usr/contrib/sendmail/usr/sbin/sendmail*
vaman kulkarni
Sundar_7
Honored Contributor

Re: sendmail on hpux 11.0

I think the permissions of sendmail could as well be the problem.

It should have SUID set so that a normal user can create queue files in /var/spool/mqueue, which otherwise they could not create.

As root , change the permissions of sendmail

# chmod 7555 /usr/contrib/bin/usr/sbin/sendmail

(yes I meant 7555).

Now login as user and send the mail

user> /usr/contrib/bin/usr/sbin/sendmail username@domain.com
Learn What to do ,How to do and more importantly When to do ?
Steven E. Protter
Exalted Contributor

Re: sendmail on hpux 11.0

The user does not exist.

There appears not be be appropriate permissions in /var/mail and/or /etc/mail

Perhaps this can all be fixed by chaning the sendmail binary permissions as noted.

Not sure though. How did you get into this situation? When was the last time mailx worked?

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
vaman
Frequent Advisor

Re: sendmail on hpux 11.0

Sundr
which sendmail
/usr/lib/sendmail


The permissions are i think there
ls -lrt /usr/contrib/bin/usr/sbin/sendmail
/usr/contrib/bin/usr/sbin/sendmail not found

ls -lrt /usr/lib/sendmail
lr-sr-sr-t 1 root sys 18 Dec 28 2001 /usr/lib/sendmail@ -> /usr/sbin/sendmail

ls -lrt /usr/sbin/sendmail
lrwxr-xr-x 1 root root 39 Mar 14 2003 /usr/sbin/sendmail@ -> /usr/contrib/sendmail/usr/sbin/sendmail
vaman kulkarni
Sundar_7
Honored Contributor
Solution

Re: sendmail on hpux 11.0

Permissions of the symbolic link doesnt matter. What matters is the permissions of the target of the link

# chmod 7555 /usr/contrib/sendmail/usr/sbin/sendmail

Execute this and see if it helps.
Learn What to do ,How to do and more importantly When to do ?
zhang wei_2
New Member

Re: sendmail on hpux 11.0

1.Check the permissions of sendmail (Should have SUID/SGID set ,also the owner should be root )
2. Check the permissions of DIR /var/spool/mqueue and /var/mail(The owner should be bin and should have writable permissions)

regard
Bharat Katkar
Honored Contributor

Re: sendmail on hpux 11.0

Hi Vaman,
I have not worked on sendmail but i hope attached sendmail configuration guide would help if you spend some time reaading it.
All the best.
Regards,

You need to know a lot to actually know how little you know