Discussion:
[rancid] Rancid and Postfix
michael schnatterer
2011-11-15 10:18:30 UTC
Permalink
Hey every body,

I have a maybe simple problem.
I have installed an configured Rancid 1 year ago, everything runs fine and Rancid backups every config change.
Now i would configure Rancid to send E-Mails with postfix.
I installed postfix and configure it. With telnet localhost 25 i could send E-Mails maually.

But now i have to configure aliases but i don't understand it. I have installed and configured Rancid like in this Tutorial. http://openmaniak.com/rancid_tutorial.php
Please help me to define Aliases i hav tried it with:
rancid-Grp Name: MY EMAIL ADDRESS
rancid-admin-GrpName: MY EMAIL ADDRESS
But nothing happens.

I hope somebody could help me

THANKS !
Best Regards
Michael Schwartzkopff
2011-11-15 12:28:39 UTC
Permalink
> Hey every body,
>
> I have a maybe simple problem.
> I have installed an configured Rancid 1 year ago, everything runs fine and
> Rancid backups every config change. Now i would configure Rancid to send
> E-Mails with postfix.
> I installed postfix and configure it. With telnet localhost 25 i could send
> E-Mails maually.
>
> But now i have to configure aliases but i don't understand it. I have
> installed and configured Rancid like in this Tutorial.
> http://openmaniak.com/rancid_tutorial.php Please help me to define Aliases
> i hav tried it with:
> rancid-Grp Name: MY EMAIL ADDRESS
> rancid-admin-GrpName: MY EMAIL ADDRESS
> But nothing happens.
>
> I hope somebody could help me
>
> THANKS !
> Best Regards

Did you install the mailutils with the "mail" program?

--
Dr. Michael Schwartzkopff
Guardinistr. 63
81375 München

Tel: (0163) 172 50 98
Fax: (089) 620 304 13
michael schnatterer
2011-11-15 12:43:08 UTC
Permalink
Hy,

Thanks for your Answer

But I'am not sure what you mean with this Mailutils is there another Package to install?
I anly have installed postfix via apt-get install postfix like the tutorial descripe.
Could you please give me more Information?

Thank you very much.



________________________________
Von: Michael Schwartzkopff <***@schwartzkopff.org>
An: "rancid-***@shrubbery.net" <rancid-***@shrubbery.net>
Gesendet: 13:28 Dienstag, 15.November 2011
Betreff: Re: [rancid] Rancid and Postfix

> Hey every body,
>
> I have a maybe simple problem.
> I have installed an configured Rancid 1 year ago, everything runs fine and
> Rancid backups every config change. Now i would configure Rancid to send
> E-Mails with postfix.
> I installed postfix and configure it. With telnet localhost 25 i could send
> E-Mails maually.
>
> But now i have to configure aliases but i don't understand it. I have
> installed and configured Rancid like in this Tutorial.
> http://openmaniak.com/rancid_tutorial.php Please help me to define Aliases
> i hav tried it with:
> rancid-Grp Name: MY EMAIL ADDRESS
> rancid-admin-GrpName: MY EMAIL ADDRESS
> But nothing happens.
>
> I hope somebody could help me
>
> THANKS !
> Best Regards

Did you install the mailutils with the "mail" program?

--
Dr. Michael Schwartzkopff
Guardinistr. 63
81375 München

Tel: (0163) 172 50 98
Fax: (089) 620 304 13
michael schnatterer
2011-11-15 14:24:06 UTC
Permalink
Yes i can send E-Mails from Command line with "telnet localhost 25" like the tutorial descripe.
But i dont understand why Rancid don't send the E-Mail after a config change.
I think there is maybe a problem with the aliases see my First Post please. Or know you other troubleshooting tips?


Thanks
Best Regards


________________________________
Von: Michael Schwartzkopff <***@schwartzkopff.org>
An: michael schnatterer <***@yahoo.de>
Gesendet: 14:57 Dienstag, 15.November 2011
Betreff: Re: [rancid] Rancid and Postfix

> Hy,
>
> Thanks for your Answer
>
> But I'am not sure what you mean with this Mailutils is there another
> Package to install? I anly have installed postfix via apt-get install
> postfix like the tutorial descripe. Could you please give me more
> Information?
>
> Thank you very much.

Can you use the mail program from the command line?

--
Dr. Michael Schwartzkopff
Guardinistr. 63
81375 München

Tel: (0163) 172 50 98
Fax: (089) 620 304 13
Alex DEKKER
2011-11-15 16:02:15 UTC
Permalink
On 15.11.2011 14:24, michael schnatterer wrote:
> Or know you other troubleshooting tips?

Have a look in the Postfix log.

alexd
michael schnatterer
2011-11-16 07:11:11 UTC
Permalink
Hy,
Ok in the logs i didn't see anything if i start rancid.
But if i start sending E-Mail manually there is some log entrys.
The thing that i dont understand is, how communicate Rancid with Postfix? i have never configured something like this.

I hope somebody could help me i rotate in that topic since 1 Week :(


Thank you realy much

Best Regards


________________________________
Von: Alex DEKKER <***@ale.cx>
An: rancid-***@shrubbery.net
Gesendet: 17:02 Dienstag, 15.November 2011
Betreff: Re: [rancid] Rancid and Postfix

On 15.11.2011 14:24, michael schnatterer wrote:
> Or know you other troubleshooting tips?

Have a look in the Postfix log.

alexd
o***@gmail.com
2011-11-16 08:06:34 UTC
Permalink
Hi Alex,



Can you verify the followings? I have this running on Ubuntu 10.x server.



1. install postfix (if already not done it)

apt-get install postfix



2. Edit Postfix configuration to reflect your setting, check sys admins for email setting.

#

...

vi /etc/postfix/main.cf

alias_database = hash:/etc/aliases

! if you

relayhost = your-email-server-address

...

#



3. Edit Rancid configuration.



vi /home/rancid/etc/rancid.conf

#

...

LIST_OF_GROUPS="ADMINS"

...

#



4. Edit aliases configuration, step # 3, LIST_OF_GROUPS=ADMINS" (this an example) must match the aliases configuration.

vi /etc/aliases

# Added by installer for initial user

rancid-ADMINS: ***@mydomain.com



HTH,

-oglumavd



From: rancid-discuss-***@shrubbery.net [mailto:rancid-discuss-***@shrubbery.net] On Behalf Of michael schnatterer
Sent: Tuesday, November 15, 2011 11:11 PM
To: Alex DEKKER; rancid-***@shrubbery.net
Subject: Re: [rancid] Rancid and Postfix



Hy,

Ok in the logs i didn't see anything if i start rancid.

But if i start sending E-Mail manually there is some log entrys.

The thing that i dont understand is, how communicate Rancid with Postfix? i have never configured something like this.



I hope somebody could help me i rotate in that topic since 1 Week :(



Thank you realy much



Best Regards

_____

Von: Alex DEKKER <***@ale.cx>
An: rancid-***@shrubbery.net
Gesendet: 17:02 Dienstag, 15.November 2011
Betreff: Re: [rancid] Rancid and Postfix

On 15.11.2011 14:24, michael schnatterer wrote:
> Or know you other troubleshooting tips?

Have a look in the Postfix log.

alexd
o***@gmail.com
2011-11-16 08:12:42 UTC
Permalink
Any changes on email server or aliases?

Are you using relayhost, check vi /etc/postfix/main.cf and make sure admins are not blocking smtp-relay.



From: rancid-discuss-***@shrubbery.net [mailto:rancid-discuss-***@shrubbery.net] On Behalf Of michael schnatterer
Sent: Tuesday, November 15, 2011 2:19 AM
To: rancid-***@shrubbery.net
Subject: [rancid] Rancid and Postfix



Hey every body,



I have a maybe simple problem.

I have installed an configured Rancid 1 year ago, everything runs fine and Rancid backups every config change.

Now i would configure Rancid to send E-Mails with postfix.

I installed postfix and configure it. With telnet localhost 25 i could send E-Mails maually.

But now i have to configure aliases but i don't understand it. I have installed and configured Rancid like in this Tutorial. http://openmaniak.com/rancid_tutorial.php

Please help me to define Aliases i hav tried it with:

rancid-Grp Name: MY EMAIL ADDRESS

rancid-admin-GrpName: MY EMAIL ADDRESS

But nothing happens.



I hope somebody could help me



THANKS !

Best Regards
michael schnatterer
2011-11-16 08:27:41 UTC
Permalink
HY,

My Problem is not to send the E-Mail this works fine with the console "telnet localhost 25" i believe the problem is the communication between Rancid and postfix. I think postfix didn't recognize that Rancid is doing something.
My postfix/main.cf looks like the following:

myhostname = my hostname
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = IP of the E-Mail server,localhost
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 10
recipient_delimiter = +
default_destination_concurrency_limit = 100
relayhost = IP of the E-Mail Server
empty_address_recipient = My E-Mail

As you can see i have an relay host.
Please help me i am realy desperately.

Best Regards



________________________________
Von: "***@gmail.com" <***@gmail.com>
An: 'michael schnatterer' <***@yahoo.de>; rancid-***@shrubbery.net
Gesendet: 9:12 Mittwoch, 16.November 2011
Betreff: RE: [rancid] Rancid and Postfix


Any changes on email server or aliases?   
Are you using relayhost, check vi /etc/postfix/main.cf and make sure admins are not blocking smtp-relay.
 
From:rancid-discuss-***@shrubbery.net [mailto:rancid-discuss-***@shrubbery.net] On Behalf Of michael schnatterer
Sent: Tuesday, November 15, 2011 2:19 AM
To: rancid-***@shrubbery.net
Subject: [rancid] Rancid and Postfix
 
Hey every body,
 
I have a maybe simple problem.
I have installed an configured Rancid 1 year ago, everything runs fine and Rancid backups every config change.
Now i would configure Rancid to send E-Mails with postfix.
I installed postfix and configure it. With telnet localhost 25 i could send E-Mails maually.
But now i have to configure aliases but i don't understand it. I have installed and configured Rancid like in this Tutorial. http://openmaniak.com/rancid_tutorial.php
Please help me to define Aliases i hav tried it with:
rancid-Grp Name: MY EMAIL ADDRESS
rancid-admin-GrpName: MY EMAIL ADDRESS
But nothing happens.
 
I hope somebody could help me
 
THANKS !
Best Regards
o***@gmail.com
2011-11-17 06:37:38 UTC
Permalink
Have you tried to watch log mail logs?



Delete /home/rancid/logs/

Tail /var/logs/mail



Open another terminal window and ssh/telnet into your rancid box



Ø Add a new device or make a change to device then run rancid manual

Ø Rancid will trigger an email alert

Ø Watch mail logs

Ø Watch /home/rancid/logs/the-recentlog





From: michael schnatterer [mailto:***@yahoo.de]
Sent: Wednesday, November 16, 2011 12:28 AM
To: ***@gmail.com; rancid-***@shrubbery.net
Subject: Re: [rancid] Rancid and Postfix



HY,



My Problem is not to send the E-Mail this works fine with the console
"telnet localhost 25" i believe the problem is the communication between
Rancid and postfix. I think postfix didn't recognize that Rancid is doing
something.

My postfix/main.cf looks like the following:



myhostname = my hostname
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = IP of the E-Mail server,localhost
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 10
recipient_delimiter = +
default_destination_concurrency_limit = 100
relayhost = IP of the E-Mail Server
empty_address_recipient = My E-Mail



As you can see i have an relay host.

Please help me i am realy desperately.





Best Regards





_____

Von: "***@gmail.com" <***@gmail.com>
An: 'michael schnatterer' <***@yahoo.de>;
rancid-***@shrubbery.net
Gesendet: 9:12 Mittwoch, 16.November 2011
Betreff: RE: [rancid] Rancid and Postfix

Any changes on email server or aliases?

Are you using relayhost, check vi /etc/postfix/main.cf and make sure admins
are not blocking smtp-relay.



From: rancid-discuss-***@shrubbery.net
[mailto:rancid-discuss-***@shrubbery.net] On Behalf Of michael
schnatterer
Sent: Tuesday, November 15, 2011 2:19 AM
To: rancid-***@shrubbery.net
Subject: [rancid] Rancid and Postfix



Hey every body,



I have a maybe simple problem.

I have installed an configured Rancid 1 year ago, everything runs fine and
Rancid backups every config change.

Now i would configure Rancid to send E-Mails with postfix.

I installed postfix and configure it. With telnet localhost 25 i could send
E-Mails maually.

But now i have to configure aliases but i don't understand it. I have
installed and configured Rancid like in this Tutorial.
http://openmaniak.com/rancid_tutorial.php

Please help me to define Aliases i hav tried it with:

rancid-Grp Name: MY EMAIL ADDRESS

rancid-admin-GrpName: MY EMAIL ADDRESS

But nothing happens.



I hope somebody could help me



THANKS !

Best Regards
Marito ...
2011-11-17 18:06:17 UTC
Permalink
Hi all,

I tried several times to change the aliases file, but it then seems not to update the "little db" that postfix uses (it continued sending the email to the previous configured account).
So I gave up trying to make it work, and ended changing the script that make the thing (control_rancid).

I searched for :

# the receipient(s) of diffs
mailrcpt=${mailrcpt:-"@MAILPLUS@${GROUP}${MAILDOMAIN}"}; export mailrcpt
adminmailrcpt=${mailrcpt:-"@ADMINMAILPLUS@${GROUP}${MAILDOMAIN}"};


Then replaced @MAILPLUS@${GROUP}${MAILDOMAIN} with my desired email account, and I got it working.

Hope this help you.
Regards.-

Mario






From: ***@gmail.com
To: ***@yahoo.de; rancid-***@shrubbery.net
Date: Wed, 16 Nov 2011 22:37:38 -0800
Subject: Re: [rancid] Rancid and Postfix








Have you tried to watch log mail logs?

Delete /home/rancid/logs/
Tail /var/logs/mail

Open another terminal window and ssh/telnet into your rancid box

Ø Add a new device or make a change to device then run rancid manual
Ø Rancid will trigger an email alert
Ø Watch mail logs
Ø Watch /home/rancid/logs/the-recentlog




From: michael schnatterer [mailto:***@yahoo.de]
Sent: Wednesday, November 16, 2011 12:28 AM
To: ***@gmail.com; rancid-***@shrubbery.net
Subject: Re: [rancid] Rancid and Postfix



HY,



My Problem is not to send the E-Mail this works fine with the console "telnet localhost 25" i believe the problem is the communication between Rancid and postfix. I think postfix didn't recognize that Rancid is doing something.

My postfix/main.cf looks like the following:



myhostname = my hostname
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = IP of the E-Mail server,localhost
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 10
recipient_delimiter = +
default_destination_concurrency_limit = 100
relayhost = IP of the E-Mail Server
empty_address_recipient = My E-Mail



As you can see i have an relay host.

Please help me i am realy desperately.





Best Regards









Von: "***@gmail.com" <***@gmail.com>
An: 'michael schnatterer' <***@yahoo.de>; rancid-***@shrubbery.net
Gesendet: 9:12 Mittwoch, 16.November 2011
Betreff: RE: [rancid] Rancid and Postfix




Any changes on email server or aliases?

Are you using relayhost, check vi /etc/postfix/main.cf and make sure admins are not blocking smtp-relay.





From: rancid-discuss-***@shrubbery.net [mailto:rancid-discuss-***@shrubbery.net] On Behalf Of michael schnatterer
Sent: Tuesday, November 15, 2011 2:19 AM
To: rancid-***@shrubbery.net
Subject: [rancid] Rancid and Postfix





Hey every body,





I have a maybe simple problem.


I have installed an configured Rancid 1 year ago, everything runs fine and Rancid backups every config change.


Now i would configure Rancid to send E-Mails with postfix.


I installed postfix and configure it. With telnet localhost 25 i could send E-Mails maually.


But now i have to configure aliases but i don't understand it. I have installed and configured Rancid like in this Tutorial. http://openmaniak.com/rancid_tutorial.php


Please help me to define Aliases i hav tried it with:


rancid-Grp Name: MY EMAIL ADDRESS


rancid-admin-GrpName: MY EMAIL ADDRESS


But nothing happens.





I hope somebody could help me





THANKS !


Best Regards

_______________________________________________ Rancid-discuss mailing list Rancid-***@shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
john heasley
2011-11-17 18:13:42 UTC
Permalink
Thu, Nov 17, 2011 at 03:06:17PM -0300, Marito ...:
>
> Hi all,
>
> I tried several times to change the aliases file, but it then seems not to update the "little db" that postfix uses (it continued sending the email to the previous configured account).

http://lmgtfy.com/?q=updating+aliases.db+postfix&l=1

> So I gave up trying to make it work, and ended changing the script that make the thing (control_rancid).
>
> I searched for :
>
> # the receipient(s) of diffs
> mailrcpt=${mailrcpt:-"@MAILPLUS@${GROUP}${MAILDOMAIN}"}; export mailrcpt
> adminmailrcpt=${mailrcpt:-"@ADMINMAILPLUS@${GROUP}${MAILDOMAIN}"};
>
>
> Then replaced @MAILPLUS@${GROUP}${MAILDOMAIN} with my desired email account, and I got it working.
>
> Hope this help you.
> Regards.-
>
> Mario
>
>
>
>
>
>
> From: ***@gmail.com
> To: ***@yahoo.de; rancid-***@shrubbery.net
> Date: Wed, 16 Nov 2011 22:37:38 -0800
> Subject: Re: [rancid] Rancid and Postfix
>
>
>
>
>
>
>
>
> Have you tried to watch log mail logs?
>
> Delete /home/rancid/logs/
> Tail /var/logs/mail
>
> Open another terminal window and ssh/telnet into your rancid box
>
> ? Add a new device or make a change to device then run rancid manual
> ? Rancid will trigger an email alert
> ? Watch mail logs
> ? Watch /home/rancid/logs/the-recentlog
>
>
>
>
> From: michael schnatterer [mailto:***@yahoo.de]
> Sent: Wednesday, November 16, 2011 12:28 AM
> To: ***@gmail.com; rancid-***@shrubbery.net
> Subject: Re: [rancid] Rancid and Postfix
>
>
>
> HY,
>
>
>
> My Problem is not to send the E-Mail this works fine with the console "telnet localhost 25" i believe the problem is the communication between Rancid and postfix. I think postfix didn't recognize that Rancid is doing something.
>
> My postfix/main.cf looks like the following:
>
>
>
> myhostname = my hostname
> alias_maps = hash:/etc/aliases
> alias_database = hash:/etc/aliases
> myorigin = /etc/mailname
> mydestination = IP of the E-Mail server,localhost
> mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
> mailbox_size_limit = 10
> recipient_delimiter = +
> default_destination_concurrency_limit = 100
> relayhost = IP of the E-Mail Server
> empty_address_recipient = My E-Mail
>
>
>
> As you can see i have an relay host.
>
> Please help me i am realy desperately.
>
>
>
>
>
> Best Regards
>
>
>
>
>
>
>
>
>
> Von: "***@gmail.com" <***@gmail.com>
> An: 'michael schnatterer' <***@yahoo.de>; rancid-***@shrubbery.net
> Gesendet: 9:12 Mittwoch, 16.November 2011
> Betreff: RE: [rancid] Rancid and Postfix
>
>
>
>
> Any changes on email server or aliases?
>
> Are you using relayhost, check vi /etc/postfix/main.cf and make sure admins are not blocking smtp-relay.
>
>
>
>
>
> From: rancid-discuss-***@shrubbery.net [mailto:rancid-discuss-***@shrubbery.net] On Behalf Of michael schnatterer
> Sent: Tuesday, November 15, 2011 2:19 AM
> To: rancid-***@shrubbery.net
> Subject: [rancid] Rancid and Postfix
>
>
>
>
>
> Hey every body,
>
>
>
>
>
> I have a maybe simple problem.
>
>
> I have installed an configured Rancid 1 year ago, everything runs fine and Rancid backups every config change.
>
>
> Now i would configure Rancid to send E-Mails with postfix.
>
>
> I installed postfix and configure it. With telnet localhost 25 i could send E-Mails maually.
>
>
> But now i have to configure aliases but i don't understand it. I have installed and configured Rancid like in this Tutorial. http://openmaniak.com/rancid_tutorial.php
>
>
> Please help me to define Aliases i hav tried it with:
>
>
> rancid-Grp Name: MY EMAIL ADDRESS
>
>
> rancid-admin-GrpName: MY EMAIL ADDRESS
>
>
> But nothing happens.
>
>
>
>
>
> I hope somebody could help me
>
>
>
>
>
> THANKS !
>
>
> Best Regards
>
> _______________________________________________ Rancid-discuss mailing list Rancid-***@shrubbery.net http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

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