1834450 Members
2864 Online
110067 Solutions
New Discussion

Re: sendmail script

 
hari prasad_4
Advisor

sendmail script

Hi All,

I have written a script to scheduled a job and it is running properly.

I wanted to know how to get notification for either it is successfull or failed by email.

i tried using mail -s "test" a@b.com but i am not getting mails.

Is there anything needs to be configured in the server.[server is not nis domain].

Mail server is windows.

thanks in advance.
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: sendmail script

Shalom,

http://www.hpux.ws/mailfile2

Submit your log file as the attachment.

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
ASOEASTGEOGRAPHY
Occasional Advisor

Re: sendmail script

You need to configure sendmail to use your Windows mail server *AND* your Windows mail administrator must accept mail from your server and allow forwarding or relaying from your server. To setup relaying in your local system, edit the file /etc/mail/sendmail.cf and add your local email server's name on the line with the DS directive. Look at the file /var/adm/syslog/mail.log for details and errors about the mail transmission.
Kristina(:)
Geoff Wild
Honored Contributor

Re: sendmail script

Yes - you need to configure /etc/mail/sendmail.cf

Point it to your Windows mail server:

DShostnameofyourmailserver

Also, you may need to set the DM macro:

DMyourrealdomain.com

Make sure your resolver is configured

/etc/resolv.conf

as well as /etc/nsswitch.conf

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.