I think that's a good idea, I'll see what I can do to get a patch that
adds that functionality.
On Tue, Apr 28, 2009 at 9:11 AM, Simon Horman <horms@xxxxxxxxxxxx> wrote:
> On Tue, Apr 28, 2009 at 07:47:07AM -0600, Caleb Anthony wrote:
>> >From 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?
>
> Sorry, I was a bit confused.
>
> I think that Mail::Mailer can probably do what you are after,
> but the current ldirectord code uses Mail::Send, which does
> not apper to be able to access an SMTP server.
>
> With regards to the patch, I think that it might be nice
> to arrance things such that there are two functions,
> one whcih contains the existing Mail::Send code, including
> the call to "use Mail::Send;". One that includes your new code,
> including any calls to use or require. And have ld_emailalert_send()
> call one of these functions depending on if $SMTP is set or not.
>
> --
> Simon Horman
> VA Linux Systems Japan K.K. Satellite Lab in Sydney, Australia
> H: www.vergenet.net/~horms/ W: www.valinux.co.jp/en
>
>
--
To unsubscribe from this list: send the line "unsubscribe lvs-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
|