How to config external SMTP for mail command

General support questions including new installations
Post Reply
hotriver
Posts: 8
Joined: 2011/08/11 20:29:43

How to config external SMTP for mail command

Post by hotriver » 2012/01/26 17:50:02

Hi Experts

I want to use mail command for Nagios to send Nagios notification.

How and where do I configure the SMTP server. I tried to put set smtp=mysmtpserver in mail.rc file. but it does not work.

Can I put my account password to mail.rc too? What's the syntax?

Is there a log file for mail command? I checked the Man Mail it does not provide help for config SMTP.

Thanks in advance.

Laurence :-)

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

How to config external SMTP for mail command

Post by gerald_clark » 2012/01/26 17:53:46

Please do not double post.
http://www.centos.org/modules/newbb/viewtopic.php?topic_id=35499&forum=38

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: How to config external SMTP for mail command

Post by pschaff » 2012/01/26 19:13:52

Welcome to the CentOS fora. Please see the recommended reading for new users linked in my signature.

Please see the Wiki [url=http://wiki.centos.org/HowTos/postfix]postfix[/url] articles.

Post Reply