Re: [rancid] issues with mail and aliases

David Jones <[email protected]> Wed, 20 Mar 2019 14:00:11 +0000
Newsgroups gmane.network.rancid
Message-ID <MWHPR19MB01589113275AD25F0F2403D2C6410@MWHPR19MB0158.namprd19.prod.outlook.com>
Here's the best way I have found to handle this since I have an automated process that adds and removes Rancid groups in the rancid.conf file.

/etc/postfix/main.cf
smtp_generic_maps = hash:/usr/local/rancid/etc/generic

Then setup a script to generate the generic file:

LIST_OF_GROUPS=`/bin/grep "^LIST_OF_GROUPS=" /usr/local/rancid/etc/rancid.conf | /bin/cut -f2 -d\"`
cp /dev/null generic
for GROUP in $LIST_OF_GROUPS; do
  /bin/echo -e "[email protected]\t\[email protected]" >> generic
  /bin/echo -e "[email protected]\[email protected]" >> generic
done
postmap generic

Hope this helps,
Dave Jones

________________________________
From: Rancid-discuss <[email protected]> on behalf of heasley <[email protected]>
Sent: Wednesday, March 20, 2019 8:48 AM
To: N. Max Pierson
Cc: [email protected]
Subject: Re: [rancid] issues with mail and aliases

Wed, Mar 20, 2019 at 08:37:16AM -0500, N. Max Pierson:
> Hi List,
>
> I have a new install on Centos 7 (supplied rpm rancid 3.2) and I am having
> issues with the regular emails that go out when rancid is run. I have
> installed sendmail and couldn't get it to work nor is postfix working. When
> I tail the maillog it shows the messages going to rancid-<repo_name>@
> mydomain.com and it seems as though the aliases that I have entered isn't
> being resolved. I'm ignorant when it comes to email so can anyone point me
> in the right direction that has seen this before?

newaliases(8).  use postfix.

_______________________________________________
Rancid-discuss mailing list
[email protected]
http://www.shrubbery.net/mailman/listinfo/rancid-discuss

_______________________________________________
Rancid-discuss mailing list
[email protected]
http://www.shrubbery.net/mailman/listinfo/rancid-discuss