Mailing List Archive

issues with mail and aliases
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?

Regards,
Max
Re: issues with mail and aliases [ In reply to ]
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
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: issues with mail and aliases [ In reply to ]
After editing /etc/aliases, you must run "newaliases".

I maintain the Centos 7 EPEL package for rancid. It is updated to 3.9--you should get the update in the next update batch (whenever that happens I'm not sure), or you can get it now from epel-testing.

On Wed, Mar 20, 2019 at 08:37:16AM -0500, N. Max Pierson wrote:
> 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?
>
> Regards,
> Max

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: issues with mail and aliases [ In reply to ]
Thanks for the replies. On all occasions, I have edited the /etc/aliases
file and ran the newaliases command without any success.

Regards,
Max

On Wed, Mar 20, 2019 at 8:56 AM Anderson, Charles R <cra@wpi.edu> wrote:

> After editing /etc/aliases, you must run "newaliases".
>
> I maintain the Centos 7 EPEL package for rancid. It is updated to
> 3.9--you should get the update in the next update batch (whenever that
> happens I'm not sure), or you can get it now from epel-testing.
>
> On Wed, Mar 20, 2019 at 08:37:16AM -0500, N. Max Pierson wrote:
> > 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?
> >
> > Regards,
> > Max
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss@shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss
>
Re: issues with mail and aliases [ In reply to ]
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 "rancid-$GROUP@mydomain.com\t\tmailbox@mydomain.com" >> generic
/bin/echo -e "rancid-admin-$GROUP@mydomain.com\tmailbox@mydomain.com" >> generic
done
postmap generic

Hope this helps,
Dave Jones

________________________________
From: Rancid-discuss <rancid-discuss-bounces@shrubbery.net> on behalf of heasley <heas@shrubbery.net>
Sent: Wednesday, March 20, 2019 8:48 AM
To: N. Max Pierson
Cc: rancid-discuss@shrubbery.net
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
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: issues with mail and aliases [ In reply to ]
Wed, Mar 20, 2019 at 08:58:36AM -0500, N. Max Pierson:
> Thanks for the replies. On all occasions, I have edited the /etc/aliases
> file and ran the newaliases command without any success.

- test mail to the alias manually
- make sure that you have the correct aliases file
- ask the postfix support mail list/forum

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss