[rancid] issues with email delivery

Alan McKinnon alan.mckinnon at gmail.com
Mon Jun 8 05:51:57 UTC 2015


On 07/06/2015 18:36, Delmiro Campelo wrote:
> Hi Alan, and thank you for helping with this. I was able to get it
> working again by uninstalling postfix and reinstalling it.

Drastic method. You likely "fixed" the problem by causing newaliases to
be run.

> One more
> question, how does rancid find mail server to send the email to ? is it
> based on MX record for the email address specified in the aliases?

That is not a rancid question. It is 100% an email question.

Seeing as it's coming up often nowadays, I'll answer it.

Rancid does not find any mail server at all. It composes the mail and
hands it over to the local MTA (mail transfer agent) which in your case
is Postfix. Rancid's job is to compose a mail, Postfix's job is to get
that mail delivered.

Postfix looks up the MX records of the *domain* in each mail address,
and tries to deliver the mails to each server in that list in turn using
SMTP. How it does this is fully described in many quality articles on
the internet.

http://www.postfix.org has excellent documentation on all aspects of SMTP



> 
> Thanks again,
> Delmiro
> 
> On Sun, Jun 7, 2015 at 2:53 AM, Alan McKinnon <alan.mckinnon at gmail.com
> <mailto:alan.mckinnon at gmail.com>> wrote:
> 
>     On 07/06/2015 03:28, Delmiro Campelo wrote:
>     > Hello guys,
>     >
>     > I'm hoping that you can give me some ideas here. I'm in the process of
>     > installing rancid and I thought I had it working but for some
>     reason my
>     > emails are sent to the wrong email address,
>     > rancid-networking at realdomain.net
>     <mailto:rancid-networking at realdomain.net>
>     > <mailto:rancid-networking at realdomain.net
>     <mailto:rancid-networking at realdomain.net>> is not valid and not what I
>     > have specified in my aliases, I'm stuck on this :( how can I fix
>     it ? i
>     > need them to go to myemail at realdomain.net
>     <mailto:myemail at realdomain.net> <mailto:myemail at realdomain.net
>     <mailto:myemail at realdomain.net>>.
>     >
>     > I'm used this article as the guide to help me set it up
>     >
>     http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch1_:_Network_Backups_With_Rancid#.VXNW70anFjY,
>     > please see below, and thank you for any help you can provide.
>     >
>     >
>     **************************************************************************
>     > rancid.conf file:
>     > #
>     > LIST_OF_GROUPS="networking"
>     >
>     > Aliases file:
>     > /etc/aliases
>     > # Rancid email addresses
>     > #
>     > rancid-networking:              myemail at realdomain.net
>     <mailto:myemail at realdomain.net>
>     > <mailto:myemail at realdomain.net <mailto:myemail at realdomain.net>>
>     > rancid-admin-networking:        myemail at realdomain.net
>     <mailto:myemail at realdomain.net>
>     > <mailto:myemail at realdomain.net <mailto:myemail at realdomain.net>>
>     >
>     > PostFix log below:
>     > Jun  6 20:00:17 vm-rancid postfix/qmgr[2246]: 400828034349: removed
>     > Jun  6 20:00:35 vm-rancid postfix/pickup[2245]: 0464D8034349: uid=1001
>     > from=<rancid>
>     > Jun  6 20:00:35 vm-rancid postfix/cleanup[2302]: 0464D8034349:
>     > message-id=<20150607010035.0464D8034349 at vm-rancid.realdomain.net
>     <mailto:20150607010035.0464D8034349 at vm-rancid.realdomain.net>
>     > <mailto:20150607010035.0464D8034349 at vm-rancid.realdomain.net
>     <mailto:20150607010035.0464D8034349 at vm-rancid.realdomain.net>>>
>     > Jun  6 20:00:35 vm-rancid postfix/qmgr[2246]: 0464D8034349:
>     > from=<rancid at realdomain.net <mailto:rancid at realdomain.net>
>     <mailto:rancid at realdomain.net <mailto:rancid at realdomain.net>>>,
>     size=2360,
>     > nrcpt=1 (queue active)
>     > Jun  6 20:00:35 vm-rancid postfix/smtp[2309]: 0464D8034349:
>     > to=<rancid-networking at realdomain.net
>     <mailto:rancid-networking at realdomain.net>
>     > <mailto:rancid-networking at realdomain.net
>     <mailto:rancid-networking at realdomain.net>>>,
>     orig_to=<rancid-networking>,
>     > relay=mail.realdomain.net <http://mail.realdomain.net>
>     <http://mail.realdomain.net>[10.2.11.22]:25,
>     > delay=0.32, delays=0.01/0/0.01/0.3, dsn=2.6.0, status=sent (250 2.6.0
>     > <20150607010035.0464D8034349 at vm-rancid.realdomain.net
>     <mailto:20150607010035.0464D8034349 at vm-rancid.realdomain.net>
>     > <mailto:20150607010035.0464D8034349 at vm-rancid.realdomain.net
>     <mailto:20150607010035.0464D8034349 at vm-rancid.realdomain.net>>>
>     > [InternalId=7366618] Queued mail for delivery)
>     > Jun  6 20:00:35 vm-rancid postfix/qmgr[2246]: 0464D8034349: removed
> 
> 
>     That howto looks like something from Joe Random Blogger. It's suspect.
>     It also references rancid 2.3.2, which is ancient.
> 
>     Current version is 3.2, and the first problem you are going to run into
>     is the change in format of router.db
> 
>     Don't use that howto.
> 
>     Install rancid using any normal method (rpm, yum, tarball - the method
>     does not matter) and then follow the text files supplied by rancid
>     itself.
> 
>     Have you run newaliases since editing /etc/aliases?
> 
> 
>     --
>     Alan McKinnon
>     alan.mckinnon at gmail.com <mailto:alan.mckinnon at gmail.com>
> 
>     _______________________________________________
>     Rancid-discuss mailing list
>     Rancid-discuss at shrubbery.net <mailto:Rancid-discuss at shrubbery.net>
>     http://www.shrubbery.net/mailman/listinfo/rancid-discuss
> 
> 


-- 
Alan McKinnon
alan.mckinnon at gmail.com



More information about the Rancid-discuss mailing list