1752806 Members
5616 Online
108789 Solutions
New Discussion юеВ

How to configure email

 
ng_7
Regular Advisor

How to configure email

hi,

We are planning to configure Oracle Alert by email. The Oracle consultant told me that first things to do is to ensure that we are able to send email from Unix server.

I have try below but the status in maillog is

mail myname@company.com.my

test mail
test mail testmail

ctrl-d

but I got stat=queue in mail.log.

I have add the relay server (DSrelayserver.company.com.my) to
/etc/mail/sendmail.cf

and I have also add relayserver and the ip into my hosts file

but I still could't sent email from my unix server.


I am able to telnet to my relayserver with port 25,

I got the below result for the below command

nslookup -type=MX relayserver
looking up FILES
Name: relay server
Address:

please help. thank you.
3 REPLIES 3
Suraj K Sankari
Honored Contributor

Re: How to configure email

Hi,

You need to configure sendmail see the below links how to configure sendmail, It has got everything

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=999029&admit=109447626+1248235807888+28353475

Suraj
Vinod Kumar Yadav
Trusted Contributor

Re: How to configure email

Hi,

In the most environments a smtp relay server is provided for send a email.

You take the IP address or host name of the server for accept mail from your server then.

Edit /etc/mail/sendmail.cf

Change DS to:

DSname_of_smtp_relay_server

or

DSIP address of smtp relay server

ex

DS telcon.co.in

/sbin/init.d/sendmail stop
/sbin/init.d.sendmail start

Then check few thing for sending the mail sucessfully.

Check the permission of the files related sendmail /var/spool/mqueue or check the
/etc/resolv.conf & Please check the sendmail services running.

root # ps -ef | grep -i sendmail
root 1700 1 0 Jul 11 ? 0:04 sendmail: accepting connections
root 29011 23487 0 16:13:46 pts/tb 0:00 grep -i sendmail

root # ls -ld /var/spool/mqueue
drwxr-xr-x 2 root bin 1024 Jul 13 16:13 /var/spool/mqueue

root # ls -ld resolv.conf
-rw-r--r-- 1 root sys 110 Jun 16 2007 resolv.conf

Try with Permission send mail & check the log /var/adm/syslog/mail.log


Thanks
Vinod Kumar Yadav


Jai Shiv Shankar
Steven E. Protter
Exalted Contributor

Re: How to configure email

Shalom,

http://docs.hp.com/en/B2355-90685/ch04.html

One of the things you need to handle for DS to work is to configure the smtp relay you are sending to to actually accept the email.

This is generally done by IP address. Don't do that and your relay mail will never get through.

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