Operating System - HP-UX
1831518 Members
3425 Online
110025 Solutions
New Discussion

Simple question with sendmail (beginer)

 
SOLVED
Go to solution
Wood_2
Frequent Advisor

Simple question with sendmail (beginer)

Hello,

I'm sure that not very hard, but I begin with sendmail.

I have two domain, in a private wan.
XXXX@toto.com
YYYY@tata.com

I have a unique smtp relay at 10.64.0.10

How configure sendmail (if necessary), for forwarded the mail to smtp relay for the 2 domains.

Thank you for help

Nicolas
6 REPLIES 6
R. Sri Ram Kishore_1
Respected Contributor

Re: Simple question with sendmail (beginer)

Hi Nicolas,

Check out the HP-UX Mailing Services Administrator's Guide at:
http://docs.hp.com/hpux/onlinedocs/B2355-90776/B2355-90776.html

HTH.

Regards,
Sri Ram
"What goes up must come down. Ask any system administrator."
Wood_2
Frequent Advisor

Re: Simple question with sendmail (beginer)

Thank you for the documentation.

But, i'm looking for something light.
I'm sure that's easy.

But how can i proceed ?
Joseph Loo
Honored Contributor

Re: Simple question with sendmail (beginer)

hi wood,

refer to this post:

http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=209679

u need to make some modification to /etc/mail/sendmail.cf on the parameters, Kmailertable and Kdomaintable.

by the way, this is not too easy to begin with for a beginner.

regards.
(p.s. please remember to assign points)
what you do not see does not mean you should not believe
Sergejs Svitnevs
Honored Contributor

Re: Simple question with sendmail (beginer)

Your question is answered in detail at sendmail FAQ.

Check out the following link:
http://www.sendmail.org/virtual-hosting.html


Regards,
Sergejs
Wood_2
Frequent Advisor

Re: Simple question with sendmail (beginer)

I'm not sure for your answer.

My problem, It's just to send a mail, to someone tht's not on my local computer.

How saids to mailx, to use smtp gateway.
Jose Mosquera
Honored Contributor
Solution

Re: Simple question with sendmail (beginer)

Hi,

A little brief:

1.- Define in your /etc/hosts file an alias for your smtp relay server:
10.64.0.10 my_smtp_relay

Test it the alias resolution (i.e: ping my_smtp_relay)

2.- Configure in your /etc/mail/sendmail.cf file the previuos relay into the "Smart relay host" section:
DSmy_smtp_relay

3.- Restart the sendmail service:
#/sbin/init.d/sendmail stop
#/sbin/init.d/sendmail start

4.- Try sending a couple of test messages:
#echo "Test One"|/usr/sbin/sendmail -v XXXX@toto.com
#echo "Test Two"|/usr/sbin/sendmail -v YYYY@tata.com

Or, if you prefer, try with both domains once:
#echo "Full Test"|/usr/sbin/sendmail -v "XXXX@toto.com YYYY@tata.com"

If you want, use mailx command:
echo "Hello"|mailx -s "Test" "XXXX@toto.com YYYY@tata.com"

Rgds.