<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
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.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
/etc/postfix/main.cf</div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
smtp_generic_maps = hash:/usr/local/rancid/etc/generic<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Then setup a script to generate the generic file:</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">LIST_OF_GROUPS=`/bin/grep "^LIST_OF_GROUPS=" /usr/local/rancid/etc/rancid.conf | /bin/cut -f2 -d\"`</span><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span>cp /dev/null generic<br>
</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span>for GROUP in $LIST_OF_GROUPS; do<br>
</span>
<div> /bin/echo -e "rancid-$GROUP@mydomain.com\t\tmailbox@mydomain.com" >> generic<br>
</div>
<div> /bin/echo -e "rancid-admin-$GROUP@mydomain.com\tmailbox@mydomain.com" >> generic<br>
</div>
<div>done<br>
</div>
<span></span>postmap generic<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hope this helps,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Dave Jones</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Rancid-discuss <rancid-discuss-bounces@shrubbery.net> on behalf of heasley <heas@shrubbery.net><br>
<b>Sent:</b> Wednesday, March 20, 2019 8:48 AM<br>
<b>To:</b> N. Max Pierson<br>
<b>Cc:</b> rancid-discuss@shrubbery.net<br>
<b>Subject:</b> Re: [rancid] issues with mail and aliases</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">Wed, Mar 20, 2019 at 08:37:16AM -0500, N. Max Pierson:<br>
> Hi List,<br>
> <br>
> I have a new install on Centos 7 (supplied rpm rancid 3.2) and I am having<br>
> issues with the regular emails that go out when rancid is run. I have<br>
> installed sendmail and couldn't get it to work nor is postfix working. When<br>
> I tail the maillog it shows the messages going to rancid-<repo_name>@<br>
> mydomain.com and it seems as though the aliases that I have entered isn't<br>
> being resolved. I'm ignorant when it comes to email so can anyone point me<br>
> in the right direction that has seen this before?<br>
<br>
newaliases(8). use postfix.<br>
<br>
_______________________________________________<br>
Rancid-discuss mailing list<br>
Rancid-discuss@shrubbery.net<br>
<a href="http://www.shrubbery.net/mailman/listinfo/rancid-discuss">http://www.shrubbery.net/mailman/listinfo/rancid-discuss</a><br>
</div>
</span></font></div>
</div>
</body>
</html>