Discussion:
[rancid] issues with email delivery
Delmiro Campelo
2015-06-07 01:28:19 UTC
Permalink
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-***@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 ***@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: ***@realdomain.net
rancid-admin-networking: ***@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=<
***@vm-rancid.realdomain.net>
Jun 6 20:00:35 vm-rancid postfix/qmgr[2246]: 0464D8034349: from=<
***@realdomain.net>, size=2360, nrcpt=1 (queue active)
Jun 6 20:00:35 vm-rancid postfix/smtp[2309]: 0464D8034349: to=<
rancid-***@realdomain.net>, orig_to=<rancid-networking>, relay=
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 <
***@vm-rancid.realdomain.net> [InternalId=7366618]
Queued mail for delivery)
Jun 6 20:00:35 vm-rancid postfix/qmgr[2246]: 0464D8034349: removed

*****************************************************************************

Thanks,
Delmiro
Alan McKinnon
2015-06-07 07:53:16 UTC
Permalink
Post by Delmiro Campelo
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,
have specified in my aliases, I'm stuck on this :( how can I fix it ? i
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.
**************************************************************************
#
LIST_OF_GROUPS="networking"
/etc/aliases
# Rancid email addresses
#
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>
nrcpt=1 (queue active)
relay=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
[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
***@gmail.com
Delmiro Campelo
2015-06-07 16:36:14 UTC
Permalink
Hi Alan, and thank you for helping with this. I was able to get it working
again by uninstalling postfix and reinstalling it. 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?

Thanks again,
Delmiro
Post by Delmiro Campelo
Post by Delmiro Campelo
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,
have specified in my aliases, I'm stuck on this :( how can I fix it ? i
.
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
,
Post by Delmiro Campelo
please see below, and thank you for any help you can provide.
**************************************************************************
Post by Delmiro Campelo
#
LIST_OF_GROUPS="networking"
/etc/aliases
# Rancid email addresses
#
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>
nrcpt=1 (queue active)
relay=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
[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
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Alex DEKKER
2015-06-07 17:32:07 UTC
Permalink
Post by Delmiro Campelo
Hi Alan, and thank you for helping with this. I was able to get it
working again by uninstalling postfix and reinstalling it. 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?
RANCID just submits it locally, local MTA does the rest [hence advice
about /etc/aliases].

alexd
Alan McKinnon
2015-06-08 05:51:57 UTC
Permalink
Post by Delmiro Campelo
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.
Post by Delmiro Campelo
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
Post by Delmiro Campelo
Thanks again,
Delmiro
Post by Delmiro Campelo
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
Post by Delmiro Campelo
emails are sent to the wrong email address,
have specified in my aliases, I'm stuck on this :( how can I fix
it ? i
Post by Delmiro Campelo
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,
Post by Delmiro Campelo
please see below, and thank you for any help you can provide.
**************************************************************************
Post by Delmiro Campelo
#
LIST_OF_GROUPS="networking"
/etc/aliases
# Rancid email addresses
#
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>
size=2360,
Post by Delmiro Campelo
nrcpt=1 (queue active)
orig_to=<rancid-networking>,
Post by Delmiro Campelo
relay=mail.realdomain.net <http://mail.realdomain.net>
<http://mail.realdomain.net>[10.2.11.22]:25,
Post by Delmiro Campelo
delay=0.32, delays=0.01/0/0.01/0.3, dsn=2.6.0, status=sent (250 2.6.0
[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
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
--
Alan McKinnon
***@gmail.com
Hussein, Sazzad
2015-06-08 07:54:26 UTC
Permalink
*Hi Demiro,*

I was experiencing same problem as you were.
Could you please share the document which you are following for integrating
rancid?
Post by Alan McKinnon
Post by Delmiro Campelo
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.
Post by Delmiro Campelo
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
Post by Delmiro Campelo
Thanks again,
Delmiro
Post by Delmiro Campelo
Hello guys,
I'm hoping that you can give me some ideas here. I'm in the
process of
Post by Delmiro Campelo
Post by Delmiro Campelo
installing rancid and I thought I had it working but for some
reason my
Post by Delmiro Campelo
emails are sent to the wrong email address,
what I
Post by Delmiro Campelo
Post by Delmiro Campelo
have specified in my aliases, I'm stuck on this :( how can I fix
it ? i
Post by Delmiro Campelo
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
,
Post by Delmiro Campelo
Post by Delmiro Campelo
please see below, and thank you for any help you can provide.
**************************************************************************
Post by Delmiro Campelo
Post by Delmiro Campelo
#
LIST_OF_GROUPS="networking"
/etc/aliases
# Rancid email addresses
#
Jun 6 20:00:17 vm-rancid postfix/qmgr[2246]: 400828034349: removed
uid=1001
Post by Delmiro Campelo
Post by Delmiro Campelo
from=<rancid>
size=2360,
Post by Delmiro Campelo
nrcpt=1 (queue active)
orig_to=<rancid-networking>,
Post by Delmiro Campelo
relay=mail.realdomain.net <http://mail.realdomain.net>
<http://mail.realdomain.net>[10.2.11.22]:25,
Post by Delmiro Campelo
delay=0.32, delays=0.01/0/0.01/0.3, dsn=2.6.0, status=sent (250
2.6.0
Post by Delmiro Campelo
Post by Delmiro Campelo
[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.
Post by Delmiro Campelo
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
Post by Delmiro Campelo
is the change in format of router.db
Don't use that howto.
Install rancid using any normal method (rpm, yum, tarball - the
method
Post by Delmiro Campelo
does not matter) and then follow the text files supplied by rancid itself.
Have you run newaliases since editing /etc/aliases?
--
Alan McKinnon
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
--
Alan McKinnon
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
--
--*Sazzad Hussein*www.sazzad-hussein.branded.me | ***@gmail.com
Hermann-Ehlers Str. 2, 49082 OsnabrÃŒck, Deutschland
Mobile number: 4915214010461
Delmiro Campelo
2015-06-08 13:15:21 UTC
Permalink
I believe the issue that I was having with postfix was because i had
configured relayhost= in main.cf.

Here is the postfix config which is working with rancid fine right now.
# cat /etc/postfix/main.cf | grep -v ^#
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
myhostname = vm-rancid.myrealdomain.net
mydomain = myrealdomain.net
myorigin = $myhostname
inet_interfaces = localhost
inet_protocols = all
unknown_local_recipient_reject_code = 550
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.10.1/samples
readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
smtp_generic_maps = hash:/etc/postfix/generic


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.
http://www.cyberciti.biz/tips/howto-postfix-masquerade-change-email-mail-address.html

Thanks,
Delmiro
Post by Hussein, Sazzad
*Hi Demiro,*
I was experiencing same problem as you were.
Could you please share the document which you are following for
integrating rancid?
Post by Alan McKinnon
Post by Delmiro Campelo
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.
Post by Delmiro Campelo
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
Post by Delmiro Campelo
Thanks again,
Delmiro
Post by Delmiro Campelo
Hello guys,
I'm hoping that you can give me some ideas here. I'm in the
process of
Post by Delmiro Campelo
Post by Delmiro Campelo
installing rancid and I thought I had it working but for some
reason my
Post by Delmiro Campelo
emails are sent to the wrong email address,
what I
Post by Delmiro Campelo
Post by Delmiro Campelo
have specified in my aliases, I'm stuck on this :( how can I fix
it ? i
Post by Delmiro Campelo
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
,
Post by Delmiro Campelo
Post by Delmiro Campelo
please see below, and thank you for any help you can provide.
**************************************************************************
Post by Delmiro Campelo
Post by Delmiro Campelo
#
LIST_OF_GROUPS="networking"
/etc/aliases
# Rancid email addresses
#
removed
uid=1001
Post by Delmiro Campelo
Post by Delmiro Campelo
from=<rancid>
size=2360,
Post by Delmiro Campelo
nrcpt=1 (queue active)
orig_to=<rancid-networking>,
Post by Delmiro Campelo
relay=mail.realdomain.net <http://mail.realdomain.net>
<http://mail.realdomain.net>[10.2.11.22]:25,
Post by Delmiro Campelo
delay=0.32, delays=0.01/0/0.01/0.3, dsn=2.6.0, status=sent (250
2.6.0
Post by Delmiro Campelo
Post by Delmiro Campelo
[InternalId=7366618] Queued mail for delivery)
removed
Post by Delmiro Campelo
That howto looks like something from Joe Random Blogger. It's
suspect.
Post by Delmiro Campelo
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
Post by Delmiro Campelo
is the change in format of router.db
Don't use that howto.
Install rancid using any normal method (rpm, yum, tarball - the
method
Post by Delmiro Campelo
does not matter) and then follow the text files supplied by rancid itself.
Have you run newaliases since editing /etc/aliases?
--
Alan McKinnon
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
--
Alan McKinnon
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
--
Hermann-Ehlers Str. 2, 49082 OsnabrÃŒck, Deutschland
Mobile number: 4915214010461
Hussein, Sazzad
2015-06-08 13:54:12 UTC
Permalink
Thanks Delmiro,

I will test it & let you know!
Post by Delmiro Campelo
I believe the issue that I was having with postfix was because i had
configured relayhost= in main.cf.
Here is the postfix config which is working with rancid fine right now.
# cat /etc/postfix/main.cf | grep -v ^#
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
myhostname = vm-rancid.myrealdomain.net
mydomain = myrealdomain.net
myorigin = $myhostname
inet_interfaces = localhost
inet_protocols = all
unknown_local_recipient_reject_code = 550
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.10.1/samples
readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
smtp_generic_maps = hash:/etc/postfix/generic
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.
http://www.cyberciti.biz/tips/howto-postfix-masquerade-change-email-mail-address.html
Thanks,
Delmiro
Post by Hussein, Sazzad
*Hi Demiro,*
I was experiencing same problem as you were.
Could you please share the document which you are following for
integrating rancid?
Post by Alan McKinnon
Post by Delmiro Campelo
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.
Post by Delmiro Campelo
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
Post by Delmiro Campelo
Thanks again,
Delmiro
Post by Delmiro Campelo
Hello guys,
I'm hoping that you can give me some ideas here. I'm in the
process of
Post by Delmiro Campelo
Post by Delmiro Campelo
installing rancid and I thought I had it working but for some
reason my
Post by Delmiro Campelo
emails are sent to the wrong email address,
what I
Post by Delmiro Campelo
Post by Delmiro Campelo
have specified in my aliases, I'm stuck on this :( how can I fix
it ? i
Post by Delmiro Campelo
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
,
Post by Delmiro Campelo
Post by Delmiro Campelo
please see below, and thank you for any help you can provide.
**************************************************************************
Post by Delmiro Campelo
Post by Delmiro Campelo
#
LIST_OF_GROUPS="networking"
/etc/aliases
# Rancid email addresses
#
removed
uid=1001
Post by Delmiro Campelo
Post by Delmiro Campelo
from=<rancid>
size=2360,
Post by Delmiro Campelo
nrcpt=1 (queue active)
orig_to=<rancid-networking>,
Post by Delmiro Campelo
relay=mail.realdomain.net <http://mail.realdomain.net>
<http://mail.realdomain.net>[10.2.11.22]:25,
Post by Delmiro Campelo
delay=0.32, delays=0.01/0/0.01/0.3, dsn=2.6.0, status=sent (250
2.6.0
Post by Delmiro Campelo
Post by Delmiro Campelo
[InternalId=7366618] Queued mail for delivery)
removed
Post by Delmiro Campelo
That howto looks like something from Joe Random Blogger. It's
suspect.
Post by Delmiro Campelo
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
Post by Delmiro Campelo
is the change in format of router.db
Don't use that howto.
Install rancid using any normal method (rpm, yum, tarball - the
method
Post by Delmiro Campelo
does not matter) and then follow the text files supplied by rancid itself.
Have you run newaliases since editing /etc/aliases?
--
Alan McKinnon
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
--
Alan McKinnon
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
--
Hermann-Ehlers Str. 2, 49082 OsnabrÃŒck, Deutschland
Mobile number: 4915214010461
Hussein, Sazzad
2015-06-09 07:12:59 UTC
Permalink
*Hello Delmiro,*

Would you like to share the thred you used to install Rancid?
Because i had installed 2.x.x version & i would rather try to install 3.x.x
version to test for the last time.

Looking forward for your response!
Thanks in advance!
Post by Hussein, Sazzad
Thanks Delmiro,
I will test it & let you know!
Post by Delmiro Campelo
I believe the issue that I was having with postfix was because i had
configured relayhost= in main.cf.
Here is the postfix config which is working with rancid fine right now.
# cat /etc/postfix/main.cf | grep -v ^#
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
myhostname = vm-rancid.myrealdomain.net
mydomain = myrealdomain.net
myorigin = $myhostname
inet_interfaces = localhost
inet_protocols = all
unknown_local_recipient_reject_code = 550
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.10.1/samples
readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
smtp_generic_maps = hash:/etc/postfix/generic
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.
http://www.cyberciti.biz/tips/howto-postfix-masquerade-change-email-mail-address.html
Thanks,
Delmiro
Post by Hussein, Sazzad
*Hi Demiro,*
I was experiencing same problem as you were.
Could you please share the document which you are following for
integrating rancid?
Post by Alan McKinnon
Post by Delmiro Campelo
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.
Post by Delmiro Campelo
One more
question, how does rancid find mail server to send the email to ? is
it
Post by Delmiro Campelo
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
Post by Delmiro Campelo
Thanks again,
Delmiro
On Sun, Jun 7, 2015 at 2:53 AM, Alan McKinnon <
Post by Delmiro Campelo
Hello guys,
I'm hoping that you can give me some ideas here. I'm in the
process of
Post by Delmiro Campelo
Post by Delmiro Campelo
installing rancid and I thought I had it working but for some
reason my
Post by Delmiro Campelo
emails are sent to the wrong email address,
what I
Post by Delmiro Campelo
Post by Delmiro Campelo
have specified in my aliases, I'm stuck on this :( how can I fix
it ? i
Post by Delmiro Campelo
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
,
Post by Delmiro Campelo
Post by Delmiro Campelo
please see below, and thank you for any help you can provide.
**************************************************************************
Post by Delmiro Campelo
Post by Delmiro Campelo
#
LIST_OF_GROUPS="networking"
/etc/aliases
# Rancid email addresses
#
removed
uid=1001
Post by Delmiro Campelo
Post by Delmiro Campelo
from=<rancid>
message-id=<
size=2360,
Post by Delmiro Campelo
nrcpt=1 (queue active)
orig_to=<rancid-networking>,
Post by Delmiro Campelo
relay=mail.realdomain.net <http://mail.realdomain.net>
<http://mail.realdomain.net>[10.2.11.22]:25,
Post by Delmiro Campelo
delay=0.32, delays=0.01/0/0.01/0.3, dsn=2.6.0, status=sent (250
2.6.0
Post by Delmiro Campelo
Post by Delmiro Campelo
[InternalId=7366618] Queued mail for delivery)
removed
Post by Delmiro Campelo
That howto looks like something from Joe Random Blogger. It's
suspect.
Post by Delmiro Campelo
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
Post by Delmiro Campelo
is the change in format of router.db
Don't use that howto.
Install rancid using any normal method (rpm, yum, tarball - the
method
Post by Delmiro Campelo
does not matter) and then follow the text files supplied by rancid
itself.
Have you run newaliases since editing /etc/aliases?
--
Alan McKinnon
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
--
Alan McKinnon
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
--
Hermann-Ehlers Str. 2, 49082 OsnabrÃŒck, Deutschland
Mobile number: 4915214010461
--
--*Sazzad Hussein*www.sazzad-hussein.branded.me | ***@gmail.com
Hermann-Ehlers Str. 2, 49082 OsnabrÃŒck, Deutschland
Mobile number: 4915214010461
Delmiro Campelo
2015-06-09 12:52:53 UTC
Permalink
sure, here it is.

http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch1_:_Network_Backups_With_Rancid#.VXbhXEanFjZ

Thanks,
Delmiro
Post by Hussein, Sazzad
*Hello Delmiro,*
Would you like to share the thred you used to install Rancid?
Because i had installed 2.x.x version & i would rather try to install
3.x.x version to test for the last time.
Looking forward for your response!
Thanks in advance!
Post by Hussein, Sazzad
Thanks Delmiro,
I will test it & let you know!
Post by Delmiro Campelo
I believe the issue that I was having with postfix was because i had
configured relayhost= in main.cf.
Here is the postfix config which is working with rancid fine right now.
# cat /etc/postfix/main.cf | grep -v ^#
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
myhostname = vm-rancid.myrealdomain.net
mydomain = myrealdomain.net
myorigin = $myhostname
inet_interfaces = localhost
inet_protocols = all
unknown_local_recipient_reject_code = 550
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.10.1/samples
readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
smtp_generic_maps = hash:/etc/postfix/generic
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.
http://www.cyberciti.biz/tips/howto-postfix-masquerade-change-email-mail-address.html
Thanks,
Delmiro
Post by Hussein, Sazzad
*Hi Demiro,*
I was experiencing same problem as you were.
Could you please share the document which you are following for
integrating rancid?
Post by Alan McKinnon
Post by Delmiro Campelo
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.
Post by Delmiro Campelo
One more
question, how does rancid find mail server to send the email to ? is
it
Post by Delmiro Campelo
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
Post by Delmiro Campelo
Thanks again,
Delmiro
On Sun, Jun 7, 2015 at 2:53 AM, Alan McKinnon <
Post by Delmiro Campelo
Hello guys,
I'm hoping that you can give me some ideas here. I'm in the
process of
Post by Delmiro Campelo
Post by Delmiro Campelo
installing rancid and I thought I had it working but for some
reason my
Post by Delmiro Campelo
emails are sent to the wrong email address,
what I
Post by Delmiro Campelo
Post by Delmiro Campelo
have specified in my aliases, I'm stuck on this :( how can I
fix
Post by Delmiro Campelo
it ? i
Post by Delmiro Campelo
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
,
Post by Delmiro Campelo
Post by Delmiro Campelo
please see below, and thank you for any help you can provide.
**************************************************************************
Post by Delmiro Campelo
Post by Delmiro Campelo
#
LIST_OF_GROUPS="networking"
/etc/aliases
# Rancid email addresses
#
removed
uid=1001
Post by Delmiro Campelo
Post by Delmiro Campelo
from=<rancid>
message-id=<
size=2360,
Post by Delmiro Campelo
nrcpt=1 (queue active)
orig_to=<rancid-networking>,
Post by Delmiro Campelo
relay=mail.realdomain.net <http://mail.realdomain.net>
<http://mail.realdomain.net>[10.2.11.22]:25,
Post by Delmiro Campelo
delay=0.32, delays=0.01/0/0.01/0.3, dsn=2.6.0, status=sent
(250 2.6.0
Post by Delmiro Campelo
Post by Delmiro Campelo
[InternalId=7366618] Queued mail for delivery)
removed
Post by Delmiro Campelo
That howto looks like something from Joe Random Blogger. It's
suspect.
Post by Delmiro Campelo
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
Post by Delmiro Campelo
is the change in format of router.db
Don't use that howto.
Install rancid using any normal method (rpm, yum, tarball - the
method
Post by Delmiro Campelo
does not matter) and then follow the text files supplied by
rancid
Post by Delmiro Campelo
itself.
Have you run newaliases since editing /etc/aliases?
--
Alan McKinnon
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
--
Alan McKinnon
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
--
Hermann-Ehlers Str. 2, 49082 OsnabrÃŒck, Deutschland
Mobile number: 4915214010461
--
Hermann-Ehlers Str. 2, 49082 OsnabrÃŒck, Deutschland
Mobile number: 4915214010461
Loading...