1832647 Members
2952 Online
110043 Solutions
New Discussion

Re: Mail Notification

 
Vanita_1
Occasional Contributor

Mail Notification

Hi, We have HP-UX 11.11 and we would like to enable mail notification for backup status, diskspace utilisation. We have lotus notes as a email server. COuld you help us to configure the email notification.
8 REPLIES 8
Luk Vandenbussche
Honored Contributor

Re: Mail Notification

Prasanth B
Trusted Contributor

Re: Mail Notification

Hi,

First identify the fully qualified name of your mail server.

Edit /etc/mail/sendmail.cf
look for a line that starts with DS change it to DSmailservername.full.qaul.com . Please note that there is no space between DS and the name of the server. If you do not know the fully qualified name of the server, use IP address, but name is prefered.

Restart sendmail /sbin/init.d/sendmail stop
Wait for one minutes before starting it
/sbin/init.d/sendmail start

After this you should be able to send mail using mailx or any other utlitiy. You may want to modify the /etc/mail/aliases file and redirect all the mails to root (assuming that you are the sys admin)
For eg: If you add the following lines in /etc/mail/aliases file

root : you@yourcompany.com

all mails send to root will be redirected to your inbox. So your scripts which monitors the backup can send emails to root rather than individuals. Please execute the command 'newaliases' after modifying the aliases file.

-PB


Take life as it comes
Vanita_1
Occasional Contributor

Re: Mail Notification

Hi PB,

As you guide I have configured but i am getting this error while starting the services.
I have tried with IP and Emailserver name also.

# /sbin/init.d/sendmail start
WARNING: local host name (tjcsrv) is not qualified; fix $j in config file
/etc/mail/aliases: 8 aliases, longest 26 bytes, 118 bytes total
sendmail
Keith Johnson
Valued Contributor

Re: Mail Notification

Edit the /etc/mail/sendmail.cf file and look for a line like #Dj$w.Foo.COM. Replace whatever is after the $ with the fully qualified domain name of your server (uncomment the line if necessary). Then bounce sendmail.

KJ
No matter where you go...there you are.
Vanita_1
Occasional Contributor

Re: Mail Notification

Hi KJ,

Thanks for your support.
I have chaged as per your guidenace Dj and IP address of mail server. After that I restarted the mail services. It started successfully. I am trying to send a test mail with this command.
#bdf | mailx -s "Diskspace" vanita.tharanath@tjc.co.in

I have changed aliases file
root :vanita.tharanath@tjc.co.in

I have tried with following command also
#bdf | mailx -s "Diskspace" root

Still we have not received mail in my inbox. What could be the problem?
Prasanth B
Trusted Contributor

Re: Mail Notification

Hi,

Check /var/adm/syslog/mail.log to see the error message.

Also, try the following

telnet [your mail server name] 25

The command above should connect you to sendmail. If you are connected you can press control-C to exit. If you are unable to connect,the name of the mail server is incorrect. Please note that the name that you need to configure in sendmail.cf is the name of your lotus notes server, not tjc.co.in which is your domain name.

-PB
Take life as it comes
Vanita_1
Occasional Contributor

Re: Mail Notification

hi,

I am able to telnet my mail server with port no 25. Still i am not able to receive mail.
Please fine mail.log file as an attachment.
Prasanth B
Trusted Contributor

Re: Mail Notification

Hi

Going thorugh your mail.log file, it looks like you have configured tjc.co.in.s8b2.psmtp.com as your mail relay. And it seems that the host name above is not resolveable.

try the command below

nslookup tjc.co.in.s8b2.psmtp.com

If you can't resolve the above, you will need to look at your DNS settings. You can test it by adding tjc.co.in.s8b2.psmtp.com and corresponding IP to /etc/hosts. But the recommedation is to fix the DNS resolution.

-PB
Take life as it comes