Operating System - HP-UX
1847851 Members
2266 Online
104021 Solutions
New Discussion

Re: sendmail does not send local mail

 
SOLVED
Go to solution
Roberto Gallis
Regular Advisor

sendmail does not send local mail

Hi all,
I modified sendmail to use a smart relay for external mail delivery, but now my sendmail does not send mail on local user.
I don't want to use external relay for local mail...
The message when I do
sendmail -v root
...

root... connecting to local...
root... insufficient permission
rewrite: map user not found
saving message in .../dead.letter

I also defined CL root but it doesn't run

Anybody can help me??

Regards

Roberto
10 REPLIES 10
Alex Glennie
Honored Contributor

Re: sendmail does not send local mail

Ensure that '/var/mail' ownership is set to bin:mail ?

Also check the ownership and permissions on /usr/lib/sendmail, /usr/mail,
and /bin/mail & /bin/rmail should be similar i think ?
Roberto Gallis
Regular Advisor

Re: sendmail does not send local mail

Hi Alex,
permissions are ok (775 for /var/mail)
I think it's a problem of sendmail.cf...
On an other host local sending is ok. The difference in the host I have the problem I use the relay host to verify external email address. But for local mail I think local host should know destinations...
Alex Glennie
Honored Contributor
Solution

Re: sendmail does not send local mail

I agree .... but try this first just in case & I'll do some more digging :

ps can you attach your .cf file ?

check permissions on /etc/passwd = 444 ?
Roberto Gallis
Regular Advisor

Re: sendmail does not send local mail

Hi Alex,
here's sendmail.cf

Thank's a lot
Regards
Roberto
Roberto Gallis
Regular Advisor

Re: sendmail does not send local mail

Hi Alex,
I think my sendmail.cf is correct.
What's the user map file?
Douglas Cromby_1
Valued Contributor

Re: sendmail does not send local mail

Hello,

Have a look at the following:

The current default behaviour of sendmail is:

(i) If DS is set, sendmail will deliver all mail to relay host specified by DS.

(ii) If DS is not set, sendmail will deliver all mail directly to the host for which it is destined.

If the user wishes to have all mail destined for hosts in the local domain to be delivered directly, the user should UNCOMMENT the following ruleset in S0, and restart sendmail.


# See if we are supposed to deliver to hosts in the local domain
R$* < @ $* > $* $: $>check_local <$m> $1 < @ $2 > $3 Local Domain?
Roberto Gallis
Regular Advisor

Re: sendmail does not send local mail

I use relay to send external mail,
but I need sendmail uses local mail for local users
Uncommenting lined you indicated in S0
the situation is identical...
Here's the output of sending local mail

dcfe02:/etc/mail#>sendmail -v root
ciao
.
root... Connecting to local...
root... Insufficient permission
rewrite: map user not found
/home/con107/dead.letter... Saved message in /home/con107/dead.letter

(I'm connected with my user con107 and su - root)
Roberto Gallis
Regular Advisor

Re: sendmail does not send local mail

Problem solved.
It was a permission problem...
I don't know the reason, but in /var/mail
root had user root and group sys
I did a
chown root:mail root
and that fixed the problem.
So, Alex thought right at the beginning

Best regards

Roberto
Dave Kelly_1
Respected Contributor

Re: sendmail does not send local mail

Please can you provide the output from the following command:

sendmail -d11.1 -v root

This will display some more tracing relating to the local mailer.
Roberto Gallis
Regular Advisor

Re: sendmail does not send local mail

ok,
Dave thank's for the hint

sincerly

Roberto