Operating System - HP-UX
1825720 Members
3256 Online
109686 Solutions
New Discussion

how to configure mail service on HP-UX (B.11.23)

 
SOLVED
Go to solution
Vipin Singhal
Super Advisor

how to configure mail service on HP-UX (B.11.23)

Hi Everybody,
Please let me know
how to configure mail service on HP-UX (B.11.23).

Please tell me step by step commands,
I am very much thankful to all of you
24 REPLIES 24
Steven E. Protter
Exalted Contributor

Re: how to configure mail service on HP-UX (B.11.23)

Hello Vpin,

http://docs.hp.com/en/5991-0707/ch02s01.html

Rejecting unsolicited mail:
http://docs.hp.com/en/5991-0707/ch02s08.html

Configuring and administering sendmail
http://docs.hp.com/en/5991-0707/ch02.html

Good Luck and good reading.

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
Jeff Schussele
Honored Contributor

Re: how to configure mail service on HP-UX (B.11.23)

Hi Vipin,

In a nutshell, at a minimum, you need to do four things:

1) Configure the sendmail.cf files for your fully qualified domain name. That's the Dj parm & you'll enter
Dj$w.company.com. The $w is an alias for hostname & you define your domain here

2) Define the smart relay to send outgoing mail to. That's the DS parm & you'll enter
DSmailhost.subnet.company.com

3) Edit the /etc/rc.config.d/mailservs file to enable auto-starting sendmail
export SENDMAIL_SERVER=1

4) Start sendmail
/sbin/init.d/sendmail start

That'll will get it going for sending & receiving mail.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Vipin Singhal
Super Advisor

Re: how to configure mail service on HP-UX (B.11.23)

Hi Jeff,
Can you please tell me the step by step commands to configure the sendmail(SMTP) server.
Even I am not able to find sendmail.cf and what does DS & Dj means? So please tell me the commands to do it.
Thanks
Vipin
Vijaya Kumar_3
Respected Contributor

Re: how to configure mail service on HP-UX (B.11.23)

Hi Vipin,

nobody can spoonfeed you on sendmail. this is huge and definitely need some time for you to study something about sendmail.

Okay, here is the question:

1. Did you have sendmail installed on your system?

2. What do you mean by mail service? Do you want to send email to another hosts from HP system only?

3. Do you want to receive email if remote host sends email?

rgrds
Vijay Chinnasamy
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
Jeff Schussele
Honored Contributor

Re: how to configure mail service on HP-UX (B.11.23)

Well you need to do the following:

1&2) vi /etc/mail/sendmail.cf
Then search for Dj - specifically the line starting with Dj then add the info following the Dj. Do the same for the line starting with DS

3) vi /etc/rc.config.d/mailservs
change
export SENDMAIL_SERVER=0
to
export SENDMAIL_SERVER=1

4) simply run
/sbin/init.d/sendmail start

And it should be noted that the mail relay server needs to allow sendmail connections from your server to accept it's mail.

And as stated there is more, MUCH more that can be done with sendmail. But the above will get you going.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Vipin Singhal
Super Advisor

Re: how to configure mail service on HP-UX (B.11.23)

ya , I agree with you

These are the answers of your questions:

1. I dont have sendmail installed on my server
2. I just need to configure sendmail to send mails from my server
3. No, I dont want to receive email if remote host sends email

Please try 2 help me
Jeff Schussele
Honored Contributor

Re: how to configure mail service on HP-UX (B.11.23)

OK - if you don't want to receive mail then simply delete steps 3 & 4.
But note that if the relay does not or cannot receive mail on the first attempt then the mail will sit in the queue - literally forever.
Unless the SA maually reattempts delivery OR you set up a cron job to periodically flush the queue.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Vijaya Kumar_3
Respected Contributor

Re: how to configure mail service on HP-UX (B.11.23)

Refer the steps posted by Jeff. Jeff has all the answers for config part.

Before you follow Jeff's steps, you need to install sendmail depots in your HP systems.

Search "install depot" in ITRC, you will find plenty of answers.

rgds
Vijay Chinnasamy
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
A. Kay
Occasional Advisor

Re: how to configure mail service on HP-UX (B.11.23)

After adding the smart relay (DS line as indicated by Jeff). You may have to enable/give access to this server on your relay host.
test the mail with mailx -v your_email_address. If you receive relay denied by the relay server then you will have to add the IP address of this server to the relay host. This depend on the security in place on your mail server.
Let me know if you receive the relay denied and I can help you further.
Steven E. Protter
Exalted Contributor

Re: how to configure mail service on HP-UX (B.11.23)

Re-run my earlier diagnostic test.

Windows Exchange and other mail servers require explicit authorization for relay. If this is not properly granted the mailq command will show the mail start to pile up.

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
Vipin Singhal
Super Advisor

Re: how to configure mail service on HP-UX (B.11.23)

So these will be steps from scratch:

1.Download the software depot to any directory. For example: /tmp.

2. #swinstall -s /tmp/Sendmail-811_11.00.depot

3. #vi /etc/mail/sendmail.cf
then I will change in "#Dj$w.Foo.COM"
I will do it "Djserver_name.company_name.COM"
Then
I will change in "DS"
I will do it "DSserver_name.company_name.COM"

4. vi /etc/rc.config.d/mailservs
change
export SENDMAIL_SERVER=0
to
export SENDMAIL_SERVER=1

5. simply run
/sbin/init.d/sendmail start

6. mailx -v vipin@yahoo.com
then i will get a mail on my yahoo ID.

Please give me your feedbacks





Vipin Singhal
Super Advisor

Re: how to configure mail service on HP-UX (B.11.23)

Please update
Deoncia Grayson_1
Honored Contributor

Re: how to configure mail service on HP-UX (B.11.23)

yes, those are the steps you should take if the sendmail is not already loaded on your server. if it is just start at vi sendmail.cfg



If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
Vipin Singhal
Super Advisor

Re: how to configure mail service on HP-UX (B.11.23)

1.How will i find out that software is installed or not.

2.are all my these steps are correct?

3. If suppose, sendmail is already installed in my system,
I do all these my steps. Is there will be any problem ?

4. here is the output of
#swlist | grep sendmail
#
I couldnot find any output, i think , no sendmail is installed on my system

please update

Vipin Singhal
Super Advisor

Re: how to configure mail service on HP-UX (B.11.23)

Please update...
Deoncia Grayson_1
Honored Contributor
Solution

Re: how to configure mail service on HP-UX (B.11.23)

sendmail resides /etc/mail, you should see the files sendmail.cf, aliases, sendmail.cw...etc
let me know if you see the files listed there
If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
Vipin Singhal
Super Advisor

Re: how to configure mail service on HP-UX (B.11.23)

yes, all these 3 files ( sendmail.cf,sendmail.cw & aliases) are in /etc/mail

Please update
Arunvijai_4
Honored Contributor

Re: how to configure mail service on HP-UX (B.11.23)

Alternative to sendmail, you can try anyone of
1) Qmail 2) Postfix also, installing Webmin on your server will allow you to configure these server (including sendmail) via browser.

http://www.faqs.org/faqs/hp/hpux-faq/section-233.html

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Vipin Singhal
Super Advisor

Re: how to configure mail service on HP-UX (B.11.23)

I need to configure sendmail as per client requirement
Yogeeraj_1
Honored Contributor

Re: how to configure mail service on HP-UX (B.11.23)

hi vipin

sendmail already be there.

swlist would not really show it to you.

e.g. on my system, when i run swlist, this is what i get:
# swlist -l product|grep -i sendmail
PHNE_29774 1.0 sendmail(1m) 8.9.3 patch

man sendmail also show me the man page...

also,
# ll /sbin/init.d/sendmail
-r-xr-xr-x 1 bin bin 3688 Nov 14 2000 /sbin/init.d/sendmail


hope this helps!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Arunvijai_4
Honored Contributor

Re: how to configure mail service on HP-UX (B.11.23)

Hi Vipin,

Sendmail is already present in your system. You can read this chpater for Installing and Administering sendmail http://docs.hp.com/en/B2355-90685/ch04.html

Also, make sure you have applied PHNE_29774 on your server. You can get it from,

http://www2.itrc.hp.com/service/patch/patchDetail.do?BC=patch.breadcrumb.main|patch.breadcrumb.search|&patchid=PHNE_29774&context=hpux:800:11:11

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Vipin Singhal
Super Advisor

Re: how to configure mail service on HP-UX (B.11.23)

thanks
i will see it and update you
vipin
diwa
Frequent Advisor

Re: how to configure mail service on HP-UX (B.11.23)

Hi Vipin,

Thanks a lot for your query. I also have similar requirement to configure the SMTP server on HP Unix.
All the necessary files are present and also
send mail is configured. But when i trying to send mail to yahoo mail i am not getting any mail. But command is executing successfully. Can you please suggest or forward it to some one who can help?

Thanks in Advance.
Steven E. Protter
Exalted Contributor

Re: how to configure mail service on HP-UX (B.11.23)

diwa,

welcome. ettiqute requests you write your own question so you can assign points and direct the discussion.

Post a link to this thread in your question.

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