Operating System - HP-UX
1833767 Members
2299 Online
110063 Solutions
New Discussion

SMTP Configuration for root on HP 11

 
SOLVED
Go to solution
Manoj Misra
Advisor

SMTP Configuration for root on HP 11

Hi all,

I want to configure SMTP on hp 11. The basic perpose of that to recieve mails from root and all other users on my mailbox when i'm not in the office. I have a SMTP server available in the office.
Please help me.

Thanks
Manoj
4 REPLIES 4
harry d brown jr
Honored Contributor

Re: SMTP Configuration for root on HP 11

If you want to Forward your mail that is being received by root on a server, then create a .forward in the root account.

live free or die
harry
Live Free or Die
Roger Baptiste
Honored Contributor

Re: SMTP Configuration for root on HP 11

hi,

If you want mail to be forwarded to
your personal account (outside office),
then you can setup a .forward file in
your home directory and mention your
email address in the file. For root
mails to go into your account, edit
/etc/mail/aliases and corresponding
to root entry add your mail id.

If you are looking for setting up
SMTP on your system for the first time,
then all you need to do is to run
the sendmail daemon. Go to /etc/rc.config.d/mailsrvs , and
enable the sendmail option to 1.
then run /sbin/init.d/sendmail start.
You can also run sendmail from the command
line.
Since you wanted mail within the local
system, there is no need for anything else.
Otherwise you would need to configure
/etc/mail/sendmail.cf file .

HTH
raj
Take it easy.
Joseph Chakkery
Valued Contributor
Solution

Re: SMTP Configuration for root on HP 11

Hello,

If u want entirely new set up do the following.Do the following.
(1) Get SMTP relay host name and IP address (Eg: 128.9.7.30 abcd_relay)

For sendmail to be activated to send mail to xxxxx.com.

a)put relay hostname to DS on sendmail.cf in /etc/mail directory (eg: DSabcd_relay).

b)Create nsswitch.conf in /etc by copying nsswitch.file as nsswitch.conf. (IF DNS is not enabled on ur HP server).

c)Add relay host IP entry to /etc/hosts file. (IP of abcd_relay)

d)Stop and start sendmail dameon again.

After this u can send a test mail using

# cat /etc/hosts | mailx -m -s "Test mail " mail_id@xxxx.com

If u want to get all mails to root forarded to ur mail_id then add the following in aliases file in /etc directory

# Unix Administration
root :unix_admin
unix_admin :mail_ID@xxxx.com (put ur mail id here.)

After changing the aliases file

stop and start sendmail daemon.

Hope this will help U.

Regards
Joe.
Knowledge is wealth
Sridhar Bhaskarla
Honored Contributor

Re: SMTP Configuration for root on HP 11

Manoj,

If you want to receive mail intended to all the users, the option you have is to create aliases. For ex., if your mail-id is manoj@yourdomain.com, edit your aliases file and keep the following (don't change the default entries).

root: manoj@yourdomain.com

Run newaliases command to get this into affect.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try