Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
General
cancel
Showing results for 
Search instead for 
Did you mean: 

how to i config mail relay in hp-ux 11.11

SOLVED
Go to solution
Vered Sokolovsky
Occasional Contributor

how to i config mail relay in hp-ux 11.11

Hi

i m trying to config a mail relay on my server

can you guide me what to do ?
i know that i need to config the file /etc/mail/sendmail.cf but i dont know how
6 REPLIES
RAC_1
Honored Contributor

Re: how to i config mail relay in hp-ux 11.11

Put the entry of your relay server in /etc/hosts.

Modify /etc/mail/sendmail.cf and modify DS macro.

DSabc.xyz.com
There is no substitute to HARDWORK
Uday_S_Ankolekar
Honored Contributor

Re: how to i config mail relay in hp-ux 11.11

In /etc/mail/sendmail.cf file look for DS macro by /^DS and infront of DS entry put your mail relay domain name. Like this:

DSyourmailrelayserver.domanname

save and quit and restart the sendmail by
/sbin/init.d/sendmail stop and /sbin/init.d/sendmail start

Look for log file for the status of every mail in /var/adm/syslog/mail.log file

Good luck,

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

Re: how to i config mail relay in hp-ux 11.11

Do you want to #1 configure your server as a mail relay or #2 point it at an existing mail relay?

If #1, then add all ip's or FQDM into /etc/mail/access

127.0.0.1 relay
192.168.2.1 relay
somehost.domain.com relay
anotherhost.yourdomain.com relay

Then make map it:

makemap hash /etc/mail/access
Restart sendmail (kill -HUP sendmailpid)

#2 - as other have stated, set the DS macro in sendmail.cf to your mail realy server

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

You may also want to set the DM macro as well:

# who I masquerade as (null for no masquerading) (see also $=M)
DMyourdomain.com

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.
Sanjay_6
Honored Contributor

Re: how to i config mail relay in hp-ux 11.11

Hi,

Use the DS macro.

Try this doc to setup and test your mail relay.

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062972552

The doc id is KBRC00000010

Hope this helps.

Regds
Hemanth Gurunath Basrur
Honored Contributor
Steven E. Protter
Exalted Contributor

Re: how to i config mail relay in hp-ux 11.11

You have good data on how to relay your servers mail to other servers.

If you need to allow your server to relay mail, its the /etc/mail/access file.

IP_address RELAY

will let you define what servers are allowed to relay mail via the server in question.

Sounds like you want to relay your mail off another box. Do remember if thats true that you will have to open up that server for relay or the connection will be reset.

A good email diag:

sendmail -v -d8.99 -d38.99 someone@some.net
type some text

.


You will get good diagnostics from that command.

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