Groups > SUSE Linux > SUSE Linux Enterprise server > Re: Sending SMTP mail using msmtp




Sending SMTP mail using msmtp

Sending SMTP mail using msmtp
Wed, 12 Jul 2006 12:45:45 GMT
I have a few servers running cron jobs and I would like to have an email 
sent out by these jobs (along with a short status log) when they 
complete.  Rather then setting up SMTP on each server I'm trying to use 
msmtp (http://msmtp.sourceforge.net) to simply pass it to an SMTP server 
we already have running.

I see msmtp is now included with SUSE 10 but since my servers are SLES9, I 
downloaded the generic source and did the ./configure - make - make 
install bit.  Program runs but I have yet to figure out the syntax.  
Setting up the msmtprc config file was well documented and easy enough.  
However there are no examples of actually using msmtp in sendmail mode.  I 
have yet to figure out the command line syntax to simply send an SMTP 
message to one or more recipients. The contents of the message will be a 
short text file.  The SMTP server is defined in the msmtprc config file 
along with "auto_from on".

Anyone out there familiar with this program?  Thanks!

-Chuck
Post Reply
Re: Sending SMTP mail using msmtp
Thu, 13 Jul 2006 00:56:03 GMT
chuck_perilli_nospam@navyfederal.org wrote:
> I have a few servers running cron jobs and I would like to have an email 
> sent out by these jobs (along with a short status log) when they 
> complete.  Rather then setting up SMTP on each server I'm trying to use 
> msmtp (http://msmtp.sourceforge.net) to simply pass it to an SMTP server 
> we already have running.

Why use msmtp ? Just configure postfix as a 'null client' (see 
/etc/sysconfig/postfix) and everything should work out-of-the-box.

Post Reply
Re: Sending SMTP mail using msmtp
Thu, 13 Jul 2006 13:15:53 GMT
I'll give it a try.  Thanks,

-Chuck

> chuck_perilli_nospam@navyfederal.org wrote:
> > I have a few servers running cron jobs and I would like to have an 
email 
> > sent out by these jobs (along with a short status log) when they 
> > complete.  Rather then setting up SMTP on each server I'm trying to 
use 
> > msmtp (http://msmtp.sourceforge.net) to simply pass it to an SMTP 
server 
> > we already have running.
> 
> Why use msmtp ? Just configure postfix as a 'null client' (see 
> /etc/sysconfig/postfix) and everything should work out-of-the-box.
> 
> John P.
Post Reply
about | contact