<div dir="ltr"><div><div>sure, here it is. <br><br><a href="http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch1_:_Network_Backups_With_Rancid#.VXbhXEanFjZ">http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch1_:_Network_Backups_With_Rancid#.VXbhXEanFjZ</a><br><br></div>Thanks,<br></div>Delmiro<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 9, 2015 at 2:12 AM, Hussein, Sazzad <span dir="ltr"><<a href="mailto:ete.sabuj@gmail.com" target="_blank">ete.sabuj@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><b>Hello Delmiro,</b><br><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Would you like to share the thred you used to install Rancid? <br>Because i had installed 2.x.x version & i would rather try to install 3.x.x version to test for the last time.<br><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Looking forward for your response!<br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Thanks in advance!<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 8, 2015 at 3:54 PM, Hussein, Sazzad <span dir="ltr"><<a href="mailto:ete.sabuj@gmail.com" target="_blank">ete.sabuj@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Thanks Delmiro,</p>
<p dir="ltr">I will test it & let you know!<br>
</p><div><div>
<div class="gmail_quote">On 8 Jun 2015 15:15, "Delmiro Campelo" <<a href="mailto:delmiroc@gmail.com" target="_blank">delmiroc@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>I believe the issue that I was having with postfix was because i had configured relayhost= in <a href="http://main.cf" target="_blank">main.cf</a>. <br><br>Here is the postfix config which is working with rancid fine right now. <br><span style="font-size:11pt;line-height:107%;font-family:"Calibri",sans-serif">#
cat /etc/postfix/<a href="http://main.cf" target="_blank">main.cf</a> | grep -v ^#</span><br><span style="font-size:11pt;line-height:107%;font-family:"Calibri",sans-serif">queue_directory
= /var/spool/postfix<br>
command_directory = /usr/sbin<br>
daemon_directory = /usr/libexec/postfix<br>
data_directory = /var/lib/postfix<br>
mail_owner = postfix<br>
myhostname = <a href="http://vm-rancid.myrealdomain.net" target="_blank">vm-rancid.myrealdomain.net</a><br>
mydomain = <a href="http://myrealdomain.net" target="_blank">myrealdomain.net</a><br>
myorigin = $myhostname<br>
inet_interfaces = localhost<br>
inet_protocols = all<br>
unknown_local_recipient_reject_code = 550<br>
alias_maps = hash:/etc/aliases<br>
alias_database = hash:/etc/aliases<br>
debug_peer_level = 2<br>
debugger_command =<br>
<span> </span>PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin<br>
<span> </span>ddd $daemon_directory/$process_name
$process_id & sleep 5<br>
sendmail_path = /usr/sbin/sendmail.postfix<br>
newaliases_path = /usr/bin/newaliases.postfix<br>
mailq_path = /usr/bin/mailq.postfix<br>
setgid_group = postdrop<br>
html_directory = no<br>
manpage_directory = /usr/share/man<br>
sample_directory = /usr/share/doc/postfix-2.10.1/samples<br>
readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES<br>
smtp_generic_maps = hash:/etc/postfix/generic</span> <br><br><br></div>I also wanted to change the way the email addresses appeared when email was delivered from this box, I just this article and worked like a charm. <br><a href="http://www.cyberciti.biz/tips/howto-postfix-masquerade-change-email-mail-address.html" target="_blank">http://www.cyberciti.biz/tips/howto-postfix-masquerade-change-email-mail-address.html</a> <br><br></div>Thanks,<br></div>Delmiro<br><div><div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 8, 2015 at 2:54 AM, Hussein, Sazzad <span dir="ltr"><<a href="mailto:ete.sabuj@gmail.com" target="_blank">ete.sabuj@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><b>Hi Demiro,</b><br><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">I was experiencing same problem as you were. <br>Could you please share the document which you are following for integrating rancid?<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 8, 2015 at 7:51 AM, Alan McKinnon <span dir="ltr"><<a href="mailto:alan.mckinnon@gmail.com" target="_blank">alan.mckinnon@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 07/06/2015 18:36, Delmiro Campelo wrote:<br>
> Hi Alan, and thank you for helping with this. I was able to get it<br>
> working again by uninstalling postfix and reinstalling it.<br>
<br>
</span>Drastic method. You likely "fixed" the problem by causing newaliases to<br>
be run.<br>
<span><br>
> One more<br>
> question, how does rancid find mail server to send the email to ? is it<br>
> based on MX record for the email address specified in the aliases?<br>
<br>
</span>That is not a rancid question. It is 100% an email question.<br>
<br>
Seeing as it's coming up often nowadays, I'll answer it.<br>
<br>
Rancid does not find any mail server at all. It composes the mail and<br>
hands it over to the local MTA (mail transfer agent) which in your case<br>
is Postfix. Rancid's job is to compose a mail, Postfix's job is to get<br>
that mail delivered.<br>
<br>
Postfix looks up the MX records of the *domain* in each mail address,<br>
and tries to deliver the mails to each server in that list in turn using<br>
SMTP. How it does this is fully described in many quality articles on<br>
the internet.<br>
<br>
<a href="http://www.postfix.org" target="_blank">http://www.postfix.org</a> has excellent documentation on all aspects of SMTP<br>
<span><br>
<br>
<br>
><br>
> Thanks again,<br>
> Delmiro<br>
><br>
> On Sun, Jun 7, 2015 at 2:53 AM, Alan McKinnon <<a href="mailto:alan.mckinnon@gmail.com" target="_blank">alan.mckinnon@gmail.com</a><br>
</span><span>> <mailto:<a href="mailto:alan.mckinnon@gmail.com" target="_blank">alan.mckinnon@gmail.com</a>>> wrote:<br>
><br>
> On 07/06/2015 03:28, Delmiro Campelo wrote:<br>
> > Hello guys,<br>
> ><br>
> > I'm hoping that you can give me some ideas here. I'm in the process of<br>
> > installing rancid and I thought I had it working but for some<br>
> reason my<br>
> > emails are sent to the wrong email address,<br>
> > <a href="mailto:rancid-networking@realdomain.net" target="_blank">rancid-networking@realdomain.net</a><br>
> <mailto:<a href="mailto:rancid-networking@realdomain.net" target="_blank">rancid-networking@realdomain.net</a>><br>
</span>> > <mailto:<a href="mailto:rancid-networking@realdomain.net" target="_blank">rancid-networking@realdomain.net</a><br>
<span>> <mailto:<a href="mailto:rancid-networking@realdomain.net" target="_blank">rancid-networking@realdomain.net</a>>> is not valid and not what I<br>
> > have specified in my aliases, I'm stuck on this :( how can I fix<br>
> it ? i<br>
> > need them to go to <a href="mailto:myemail@realdomain.net" target="_blank">myemail@realdomain.net</a><br>
</span>> <mailto:<a href="mailto:myemail@realdomain.net" target="_blank">myemail@realdomain.net</a>> <mailto:<a href="mailto:myemail@realdomain.net" target="_blank">myemail@realdomain.net</a><br>
<span>> <mailto:<a href="mailto:myemail@realdomain.net" target="_blank">myemail@realdomain.net</a>>>.<br>
> ><br>
> > I'm used this article as the guide to help me set it up<br>
> ><br>
> <a href="http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch1_:_Network_Backups_With_Rancid#.VXNW70anFjY" target="_blank">http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch1_:_Network_Backups_With_Rancid#.VXNW70anFjY</a>,<br>
> > please see below, and thank you for any help you can provide.<br>
> ><br>
> ><br>
> **************************************************************************<br>
> > rancid.conf file:<br>
> > #<br>
> > LIST_OF_GROUPS="networking"<br>
> ><br>
> > Aliases file:<br>
> > /etc/aliases<br>
> > # Rancid email addresses<br>
> > #<br>
> > rancid-networking: <a href="mailto:myemail@realdomain.net" target="_blank">myemail@realdomain.net</a><br>
> <mailto:<a href="mailto:myemail@realdomain.net" target="_blank">myemail@realdomain.net</a>><br>
</span>> > <mailto:<a href="mailto:myemail@realdomain.net" target="_blank">myemail@realdomain.net</a> <mailto:<a href="mailto:myemail@realdomain.net" target="_blank">myemail@realdomain.net</a>>><br>
> > rancid-admin-networking: <a href="mailto:myemail@realdomain.net" target="_blank">myemail@realdomain.net</a><br>
> <mailto:<a href="mailto:myemail@realdomain.net" target="_blank">myemail@realdomain.net</a>><br>
> > <mailto:<a href="mailto:myemail@realdomain.net" target="_blank">myemail@realdomain.net</a> <mailto:<a href="mailto:myemail@realdomain.net" target="_blank">myemail@realdomain.net</a>>><br>
<span>> ><br>
> > PostFix log below:<br>
> > Jun 6 20:00:17 vm-rancid postfix/qmgr[2246]: 400828034349: removed<br>
> > Jun 6 20:00:35 vm-rancid postfix/pickup[2245]: 0464D8034349: uid=1001<br>
> > from=<rancid><br>
> > Jun 6 20:00:35 vm-rancid postfix/cleanup[2302]: 0464D8034349:<br>
> > message-id=<<a href="mailto:20150607010035.0464D8034349@vm-rancid.realdomain.net" target="_blank">20150607010035.0464D8034349@vm-rancid.realdomain.net</a><br>
> <mailto:<a href="mailto:20150607010035.0464D8034349@vm-rancid.realdomain.net" target="_blank">20150607010035.0464D8034349@vm-rancid.realdomain.net</a>><br>
</span>> > <mailto:<a href="mailto:20150607010035.0464D8034349@vm-rancid.realdomain.net" target="_blank">20150607010035.0464D8034349@vm-rancid.realdomain.net</a><br>
<span>> <mailto:<a href="mailto:20150607010035.0464D8034349@vm-rancid.realdomain.net" target="_blank">20150607010035.0464D8034349@vm-rancid.realdomain.net</a>>>><br>
> > Jun 6 20:00:35 vm-rancid postfix/qmgr[2246]: 0464D8034349:<br>
> > from=<<a href="mailto:rancid@realdomain.net" target="_blank">rancid@realdomain.net</a> <mailto:<a href="mailto:rancid@realdomain.net" target="_blank">rancid@realdomain.net</a>><br>
</span>> <mailto:<a href="mailto:rancid@realdomain.net" target="_blank">rancid@realdomain.net</a> <mailto:<a href="mailto:rancid@realdomain.net" target="_blank">rancid@realdomain.net</a>>>>,<br>
<span>> size=2360,<br>
> > nrcpt=1 (queue active)<br>
> > Jun 6 20:00:35 vm-rancid postfix/smtp[2309]: 0464D8034349:<br>
> > to=<<a href="mailto:rancid-networking@realdomain.net" target="_blank">rancid-networking@realdomain.net</a><br>
> <mailto:<a href="mailto:rancid-networking@realdomain.net" target="_blank">rancid-networking@realdomain.net</a>><br>
</span>> > <mailto:<a href="mailto:rancid-networking@realdomain.net" target="_blank">rancid-networking@realdomain.net</a><br>
<span>> <mailto:<a href="mailto:rancid-networking@realdomain.net" target="_blank">rancid-networking@realdomain.net</a>>>>,<br>
> orig_to=<rancid-networking>,<br>
> > relay=<a href="http://mail.realdomain.net" target="_blank">mail.realdomain.net</a> <<a href="http://mail.realdomain.net" target="_blank">http://mail.realdomain.net</a>><br>
> <<a href="http://mail.realdomain.net" target="_blank">http://mail.realdomain.net</a>>[10.2.11.22]:25,<br>
> > delay=0.32, delays=0.01/0/0.01/0.3, dsn=2.6.0, status=sent (250 2.6.0<br>
> > <<a href="mailto:20150607010035.0464D8034349@vm-rancid.realdomain.net" target="_blank">20150607010035.0464D8034349@vm-rancid.realdomain.net</a><br>
> <mailto:<a href="mailto:20150607010035.0464D8034349@vm-rancid.realdomain.net" target="_blank">20150607010035.0464D8034349@vm-rancid.realdomain.net</a>><br>
</span>> > <mailto:<a href="mailto:20150607010035.0464D8034349@vm-rancid.realdomain.net" target="_blank">20150607010035.0464D8034349@vm-rancid.realdomain.net</a><br>
<span>> <mailto:<a href="mailto:20150607010035.0464D8034349@vm-rancid.realdomain.net" target="_blank">20150607010035.0464D8034349@vm-rancid.realdomain.net</a>>>><br>
> > [InternalId=7366618] Queued mail for delivery)<br>
> > Jun 6 20:00:35 vm-rancid postfix/qmgr[2246]: 0464D8034349: removed<br>
><br>
><br>
> That howto looks like something from Joe Random Blogger. It's suspect.<br>
> It also references rancid 2.3.2, which is ancient.<br>
><br>
> Current version is 3.2, and the first problem you are going to run into<br>
> is the change in format of router.db<br>
><br>
> Don't use that howto.<br>
><br>
> Install rancid using any normal method (rpm, yum, tarball - the method<br>
> does not matter) and then follow the text files supplied by rancid<br>
> itself.<br>
><br>
> Have you run newaliases since editing /etc/aliases?<br>
><br>
><br>
> --<br>
> Alan McKinnon<br>
</span>> <a href="mailto:alan.mckinnon@gmail.com" target="_blank">alan.mckinnon@gmail.com</a> <mailto:<a href="mailto:alan.mckinnon@gmail.com" target="_blank">alan.mckinnon@gmail.com</a>><br>
><br>
> _______________________________________________<br>
> Rancid-discuss mailing list<br>
> <a href="mailto:Rancid-discuss@shrubbery.net" target="_blank">Rancid-discuss@shrubbery.net</a> <mailto:<a href="mailto:Rancid-discuss@shrubbery.net" target="_blank">Rancid-discuss@shrubbery.net</a>><br>
> <a href="http://www.shrubbery.net/mailman/listinfo/rancid-discuss" target="_blank">http://www.shrubbery.net/mailman/listinfo/rancid-discuss</a><br>
<div><div>><br>
><br>
<br><span><font color="#888888">
<br>
--<br>
Alan McKinnon<br>
<a href="mailto:alan.mckinnon@gmail.com" target="_blank">alan.mckinnon@gmail.com</a><br>
<br>
_______________________________________________<br>
Rancid-discuss mailing list<br>
<a href="mailto:Rancid-discuss@shrubbery.net" target="_blank">Rancid-discuss@shrubbery.net</a><br>
<a href="http://www.shrubbery.net/mailman/listinfo/rancid-discuss" target="_blank">http://www.shrubbery.net/mailman/listinfo/rancid-discuss</a><br>
</font></span></div></div></blockquote></div><span><font color="#888888"><br><br clear="all"><br>-- <br><span class="HOEnZb"><font color="#888888"><div><div dir="ltr"><pre style="font-size:0.9em;vertical-align:baseline;margin:0.5em 0px;padding:1em;outline:0px;border:0px;font-family:Consolas,Monaco,'Andale Mono',monospace;white-space:pre-wrap;word-wrap:break-word;color:rgb(0,0,0);overflow:auto;display:block;direction:ltr;text-align:left;word-spacing:0px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:23.3600006103516px;text-indent:0px;text-transform:none;background:rgb(245,242,240)"><code style="font-size:0.9em;vertical-align:baseline;margin:0px;padding:0px;outline:0px;border:0px;font-family:Consolas,Monaco,'Andale Mono',monospace;white-space:pre-wrap;word-wrap:break-word;color:rgb(0,0,0);direction:ltr;text-align:left;word-spacing:normal;background:0px 0px rgb(245,242,240)">--
<font size="2"><b>Sazzad Hussein</b></font>
<a href="http://www.sazzad-hussein.branded.me" target="_blank">www.sazzad-hussein.branded.me</a> | <a href="mailto:ete.sabuj@gmail.com" target="_blank">ete.sabuj@gmail.com</a>
Hermann-Ehlers Str. 2, 49082 Osnabrück, Deutschland
Mobile number: <a href="tel:4915214010461" value="+4915214010461" target="_blank">4915214010461</a></code></pre></div></div>
</font></span></font></span></div><span class="HOEnZb"><font color="#888888">
</font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888">
</font></span></blockquote></div><span class="HOEnZb"><font color="#888888">
</font></span></div></div></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br><div><div dir="ltr"><pre style="font-size:0.9em;vertical-align:baseline;margin:0.5em 0px;padding:1em;outline:0px;border:0px;font-family:Consolas,Monaco,'Andale Mono',monospace;white-space:pre-wrap;word-wrap:break-word;color:rgb(0,0,0);overflow:auto;display:block;direction:ltr;text-align:left;word-spacing:0px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:23.3600006103516px;text-indent:0px;text-transform:none;background:rgb(245,242,240)"><code style="font-size:0.9em;vertical-align:baseline;margin:0px;padding:0px;outline:0px;border:0px;font-family:Consolas,Monaco,'Andale Mono',monospace;white-space:pre-wrap;word-wrap:break-word;color:rgb(0,0,0);direction:ltr;text-align:left;word-spacing:normal;background:0px 0px rgb(245,242,240)">--
<font size="2"><b>Sazzad Hussein</b></font>
<a href="http://www.sazzad-hussein.branded.me" target="_blank">www.sazzad-hussein.branded.me</a> | <a href="mailto:ete.sabuj@gmail.com" target="_blank">ete.sabuj@gmail.com</a>
Hermann-Ehlers Str. 2, 49082 Osnabrück, Deutschland
Mobile number: 4915214010461</code></pre></div></div>
</font></span></div>
</blockquote></div><br></div>