From: Caleb Anthony Subject: Re: [PATCH] ldirectord: Allow sending email via external SMTP server Date: Tue, 28 Apr 2009 07:47:07 -0600 Message-ID: <33afbbe70904280647x33fafef1w258303ebe4eec313@mail.gmail.com> References: <33afbbe70904271254j17e1896fqdb51e88ebd71b2b7@mail.gmail.com> <20090428062636.GB19369@verge.net.au> Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=QezAiHQ8naVp8WVa35tTIMsdVC2mufGz84OujQzAfAc=; b=L20dvSyxncVX3lqxoAtd0j7UTDqE/Tjmp0n1ykJxaRBcn9Wrn6WSfnj3wRw/RPkKKS 8Z5dFbx97fwhhin0vrUysbUaX8ggNJlBlYhw1b4fGYBIYuxr1cN18uDR3V/N+rdnawkB ulPGdCvjDAApP7DmtGGcsTZe23cCVTCCYHNX0= In-Reply-To: <20090428062636.GB19369@verge.net.au> Sender: lvs-devel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="iso-8859-1" To: Simon Horman Cc: lvs-devel@vger.kernel.org =46rom what I understand about Mail::Mailer (maybe incorrectly!), in order to use the SMTP functionality, you have to be running an SMTP server on the same server as ldirectord. That isn't an option in our organization, so I had to add the ability to use an external SMTP server. Am I wrong about Mail::Mailer? Can it use an SMTP server other than one on the server that ldirectord is also running on? Thanks. On Tue, Apr 28, 2009 at 12:26 AM, Simon Horman wro= te: > On Mon, Apr 27, 2009 at 01:54:07PM -0600, Caleb Anthony wrote: >> Hello all, >> >> Attached is a patch to ldirectord (version 1.186-ha-2.1.4) that adds= a >> new configuration directive "smtp". This directive allows ldirectord >> to send notification emails via an external SMTP server instead of >> using the built-in Mail::Mailer methods. I wrote this patch because >> none of the methods in Mail::Mailer were convenient for use in our >> environment. However, we do run an enterprise wide SMTP relay for >> internal notifications, such as those generated by ldirectord. I wou= ld >> imagine many other organizations are in the same situation we are, a= nd >> this would be a good addition to ldirectord. >> >> Feel free to add/change/remove anything that doesn't seem right with= the code. >> >> Also, let me know if should post this to the Linux-HA development >> mailing list instead of here. >> >> Thanks. > > Hi Caleb, > > I'm a little confused about how this is different to > Using the "smtp" type for Mail::Mailer? Could you explain > a little about why that wasn't useful for your set-up? > > Thanks > > -- > Simon Horman > =A0VA Linux Systems Japan K.K. Satellite Lab in Sydney, Australia > =A0H: www.vergenet.net/~horms/ =A0 =A0 =A0 =A0 =A0 =A0W: www.valinux.= co.jp/en > >