cancel
Showing results for 
Search instead for 
Did you mean: 

hp-ux and sendmail 8.9.3

Lu_6
Occasional Visitor

hp-ux and sendmail 8.9.3

hi, all.
I have a hp-ux 10.20 and a sendmail 8.9.3.
When I send a mail to an user which one has a .forward for another host box, I get an *user unknown* error, as it couldn't be relayed. I had a problem with default gateway that I solved.
What config files do I need also check?
Sorry the basic question.
Thanks.
Gustavo
5 REPLIES
Luciano Carvalho
Respected Contributor

Re: hp-ux and sendmail 8.9.3

hi Luiz,

Try to use "sendmail -v" to send the message and post the results. It will give us more information about the problem.

regards
Lu_6
Occasional Visitor

Re: hp-ux and sendmail 8.9.3

Right, here is the command and the answer, I just changed the real users:
# echo test | sendmail -v myuser
/home/myuser/.forward: line 1: forwarding to otheruser@domain.com
/home/myuser/.forward: line 1: otheruser@domain.com... User unknown
/win2/op/dead.letter... Saved message in /win2/op/dead.letter

thanks.
Gustavo
Luciano Carvalho
Respected Contributor

Re: hp-ux and sendmail 8.9.3

This is not a local user right? Have you configured the host relay in the file /etc/mail/sendmail.cf??
You have to find the lines:

# "Smart" relay host (may be null)
DS

You have to change to something like this:

# "Smart" relay host (may be null)
DSmailserver.dominio.com

This will make sendmail send the message to the mail server that has connection and is capable to delivery the message to the internet.

regards
Uday_S_Ankolekar
Honored Contributor

Re: hp-ux and sendmail 8.9.3

Well,

Does this user have an id on other box??

Try sending a mail to a valid user say root on the other box.
sendmail -v root@otherbox.domain and see the result

Check detailed info in /var/adm/syslog/mail.log file on source machine.


-USA..
Good Luck..
Geoff Wild
Honored Contributor

Re: hp-ux and sendmail 8.9.3

If this is all internal, you may want to set the DM macro as well (who I masquerade as"

DMdomain.com

If external - then you have to on the remote machine, allow the internal machine to relay.

Set that in the access db (/etc/mail/access)

Then makemap it:

makemap hash /etc/mail/access
Now stop sendmail: /etc/init.d/sendmail stop"
Now start sendmail: /etc/init.d/sendmail start"


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.