How to config external SMTP for mail command

General support questions including new installations

How to config external SMTP for mail command

Postby 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 :-)
hotriver
 
Posts: 8
Joined: 2011/08/11 20:29:43

How to config external SMTP for mail command

Postby gerald_clark » 2012/01/26 17:53:46

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

Re: How to config external SMTP for mail command

Postby 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 postfix articles.
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America


Return to CentOS 5 - General Support

Who is online

Users browsing this forum: No registered users and 6 guests