1748153 Members
3459 Online
108758 Solutions
New Discussion юеВ

Notification by mail

 
SOLVED
Go to solution
Guna_2
Regular Advisor

Notification by mail

Hi

I want to get hpux server root mail to my mail id. My mail server is sendmail in linux.

How i can do this?
13 REPLIES 13
Prasanth B
Trusted Contributor
Solution

Re: Notification by mail

Hi,

Edit sendmail.cf file
chnge DS to DSnameofyourlinuxserver (No space between DS and name of server)
restart sendmail
edit /etc/mail/aliases and add the line below
root :yourmailid
execute newaliases

You should be able to send mails

-PB
Take life as it comes
Guna_2
Regular Advisor

Re: Notification by mail

Dear Prasanth

When i am trying to start sendmail service it's giving error as sendamil service disabled. you can not start it using sendmail script.

Then how to enable it

Plase help me
Keith Johnson
Valued Contributor

Re: Notification by mail

Edit the /etc/rc.config.d/mailservs file and look for a line like

export SENDMAIL_SERVER=

and make sure it is set to 1 like

export SENDMAIL_SERVER=1

Then start sendmail. However, keep in mind that you don't need the sendmail daemon running if you just want to send out mail.

KJ
No matter where you go...there you are.
spex
Honored Contributor

Re: Notification by mail

Hi,

Edit /etc/rc.config.d/mailservs.

Change
export SENDMAIL_SERVER=0
to
export SENDMAIL_SERVER=1

PCS
Guna_2
Regular Advisor

Re: Notification by mail

hi

I enabled the senmail service and when i am starting sendmail it's giving a warning message as local host name is not quailified.
fix $j in config file

I entered a entry in sendmail.cf file as

DSxx.xx.xx.xx (xx -ipaddress)

Is it correct

But i tried to send a mail by
ls | mailx username@domain.com

Tanx to all
Guna_2
Regular Advisor

Re: Notification by mail

I am not getting any mail
spex
Honored Contributor

Re: Notification by mail

Hi,

Make sure your domain is correct in /etc/mail/sendmail.cf:

# my official domain name
Dj$w.yourdomain.com

PCS
Guna_2
Regular Advisor

Re: Notification by mail

Hi

Shall i able to give Ip address instead of domain name
spex
Honored Contributor

Re: Notification by mail

No, a domain name by definition must be a name. For example, if your HP-UX box has FQDN:

shark.fishworld.com

then the j macro def. should read:

Dj$w.fishworld.com

The j macro def. constructs the FQDN of your host by by appending the domain to the hostname (the $w part).

PCS