[rancid] Rancid notification with SSMTP

Brian De Wolf bldewolf at csupomona.edu
Mon Jul 11 19:07:44 UTC 2011


On Mon, 11 Jul 2011 05:56:22 -0700
Hugo Deprez <hugo.deprez at gmail.com> wrote:

> Hello,
> 
> I am trying to setup e-mail notification for rancid.
> I am currently using rancid 2.3.6 on Debian.
> 
> On the server we are using SSMTP to send mail notification.
> 
> My problem is that SSMTP does not support aliases.
> 
> Is there a way to configure mail notification for rancid with ssmtp ?

I ran into this same problem (the lack of configurable recipients) when
I rolled out RANCID.  Instead of fiddling with my mail config, I
patched RANCID to be configurable.  I have attached the patch I made,
adjusted for 2.3.6.

Two caveats with this patch, now that I review it (it's been a while):
1) It restricts group names to valid environment variable names.  This
bit me when I first used it because I was using dashes.
2) It uses bashisms in control_rancid, so the shebang should probably
be /bin/bash or the "${!var}" expressions should be converted to
something like "$(eval "echo\$${var}")".

Good luck!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rancid-2.3.6-customizations.patch
Type: text/x-patch
Size: 5652 bytes
Desc: not available
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20110711/e5c51138/attachment.bin>


More information about the Rancid-discuss mailing list