Discussion:
[rancid] Issues with Sendmail using Rancid
vishal.ud
2009-11-24 18:36:25 UTC
Permalink
Hey ,

I am running rancid 2.3 downloaded from the shrew berry website (latest
stable build) . I have managed to configure almost everything for our HP
Procurve switches and have managed to build the CVS repo and CVS web.
rancid-run works perfectly fine . However , i am facing issues with
making rancid use sendmail to notify us about the diffs made . my
/etc/aliases file looks something like this
rancid-Switches: ***@domian.com
The LIST_OF_GROUPS is defined as Switches in the rancid.conf file . Post
that i ran *sudo newaliases* to initialise the sendmail db . Made a
small change in one of the routers and then did a rancid-run but the
logs indicate

home/rancid/var/CVS/Switches/configs/IP_addr v <-- configs/IP addr
new revision: 1.5; previous revision: 1.4
/home/rancid/bin/control_rancid: 477: sendmail: not found

Any help would be appreciated :)
Schmidt, Daniel
2009-11-24 18:41:17 UTC
Permalink
Do you have sendmail installed and configured?

-----Original Message-----
From: rancid-discuss-***@shrubbery.net
[mailto:rancid-discuss-***@shrubbery.net] On Behalf Of vishal.ud
Sent: Tuesday, November 24, 2009 11:36 AM
To: rancid-***@shrubbery.net
Subject: [rancid] Issues with Sendmail using Rancid

Hey ,

I am running rancid 2.3 downloaded from the shrew berry website (latest
stable build) . I have managed to configure almost everything for our HP

Procurve switches and have managed to build the CVS repo and CVS web.
rancid-run works perfectly fine . However , i am facing issues with
making rancid use sendmail to notify us about the diffs made . my
/etc/aliases file looks something like this
rancid-Switches: ***@domian.com
The LIST_OF_GROUPS is defined as Switches in the rancid.conf file . Post

that i ran *sudo newaliases* to initialise the sendmail db . Made a
small change in one of the routers and then did a rancid-run but the
logs indicate

home/rancid/var/CVS/Switches/configs/IP_addr v <-- configs/IP addr
new revision: 1.5; previous revision: 1.4
/home/rancid/bin/control_rancid: 477: sendmail: not found

Any help would be appreciated :)
vishal.ud
2009-11-24 18:52:47 UTC
Permalink
well like i said im pretty new to sendmail . All i did was simply
install it using apt-get install sendmail
Post by Schmidt, Daniel
Do you have sendmail installed and configured?
-----Original Message-----
Sent: Tuesday, November 24, 2009 11:36 AM
Subject: [rancid] Issues with Sendmail using Rancid
Hey ,
I am running rancid 2.3 downloaded from the shrew berry website (latest
stable build) . I have managed to configure almost everything for our HP
Procurve switches and have managed to build the CVS repo and CVS web.
rancid-run works perfectly fine . However , i am facing issues with
making rancid use sendmail to notify us about the diffs made . my
/etc/aliases file looks something like this
The LIST_OF_GROUPS is defined as Switches in the rancid.conf file . Post
that i ran *sudo newaliases* to initialise the sendmail db . Made a
small change in one of the routers and then did a rancid-run but the
logs indicate
home/rancid/var/CVS/Switches/configs/IP_addr v <-- configs/IP addr
new revision: 1.5; previous revision: 1.4
/home/rancid/bin/control_rancid: 477: sendmail: not found
Any help would be appreciated :)
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Schmidt, Daniel
2009-11-24 19:02:49 UTC
Permalink
U probably want postfix

-----Original Message-----
From: Mahaffey, Brian [mailto:***@pelco.com]
Sent: Tuesday, November 24, 2009 12:03 PM
To: vishal.ud; Schmidt, Daniel
Cc: rancid-***@shrubbery.net
Subject: RE: [rancid] Re: Issues with Sendmail using Rancid

You may be missing your Relay if you send mail through another server.

you can edit /etc/mail/sendmail.cf or /etc/sendmail.cf depend on your
operating system.

and edit as

# "Smart" relay host (may be null)
DS<mailserver_hostname>

example
DSmail.domain.com (remove the "< & >")

Restart Sendmail

-----Original Message-----
From: rancid-discuss-***@shrubbery.net
[mailto:rancid-discuss-***@shrubbery.net] On Behalf Of vishal.ud
Sent: Tuesday, November 24, 2009 10:53 AM
To: Schmidt, Daniel
Cc: rancid-***@shrubbery.net
Subject: [rancid] Re: Issues with Sendmail using Rancid

well like i said im pretty new to sendmail . All i did was simply
install it using apt-get install sendmail
Post by Schmidt, Daniel
Do you have sendmail installed and configured?
-----Original Message-----
Sent: Tuesday, November 24, 2009 11:36 AM
Subject: [rancid] Issues with Sendmail using Rancid
Hey ,
I am running rancid 2.3 downloaded from the shrew berry website (latest
stable build) . I have managed to configure almost everything for our HP
Procurve switches and have managed to build the CVS repo and CVS web.
rancid-run works perfectly fine . However , i am facing issues with
making rancid use sendmail to notify us about the diffs made . my
/etc/aliases file looks something like this
The LIST_OF_GROUPS is defined as Switches in the rancid.conf file . Post
that i ran *sudo newaliases* to initialise the sendmail db . Made a
small change in one of the routers and then did a rancid-run but the
logs indicate
home/rancid/var/CVS/Switches/configs/IP_addr v <-- configs/IP addr
new revision: 1.5; previous revision: 1.4
/home/rancid/bin/control_rancid: 477: sendmail: not found
Any help would be appreciated :)
_______________________________________________
Rancid-discuss mailing list
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

-
------------------------------------------------------------------------
------
Confidentiality Notice: The information contained in this transmission
is legally privileged and confidential, intended only for the use of the
individual(s) or entities named above. This email and any files
transmitted with it are the property of Pelco. If the reader of this
message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, you
are hereby notified that any review, disclosure, copying, distribution,
retention, or any action taken or omitted to be taken in reliance on it
is prohibited and may be unlawful. If you receive this communication in
error, please notify us immediately by telephone call to +1-559-292-1981
or forward the e-mail to ***@pelco.com and then permanently
delete the e-mail and destroy all soft and hard copies of the message
and any attachments. Thank you for your cooperation.


------------------------------------------------------------------------
------
Mahaffey, Brian
2009-11-24 19:02:37 UTC
Permalink
You may be missing your Relay if you send mail through another server.

you can edit /etc/mail/sendmail.cf or /etc/sendmail.cf depend on your
operating system.

and edit as

# "Smart" relay host (may be null)
DS<mailserver_hostname>

example
DSmail.domain.com (remove the "< & >")

Restart Sendmail

-----Original Message-----
From: rancid-discuss-***@shrubbery.net
[mailto:rancid-discuss-***@shrubbery.net] On Behalf Of vishal.ud
Sent: Tuesday, November 24, 2009 10:53 AM
To: Schmidt, Daniel
Cc: rancid-***@shrubbery.net
Subject: [rancid] Re: Issues with Sendmail using Rancid

well like i said im pretty new to sendmail . All i did was simply
install it using apt-get install sendmail
Post by Schmidt, Daniel
Do you have sendmail installed and configured?
-----Original Message-----
Sent: Tuesday, November 24, 2009 11:36 AM
Subject: [rancid] Issues with Sendmail using Rancid
Hey ,
I am running rancid 2.3 downloaded from the shrew berry website (latest
stable build) . I have managed to configure almost everything for our HP
Procurve switches and have managed to build the CVS repo and CVS web.
rancid-run works perfectly fine . However , i am facing issues with
making rancid use sendmail to notify us about the diffs made . my
/etc/aliases file looks something like this
The LIST_OF_GROUPS is defined as Switches in the rancid.conf file . Post
that i ran *sudo newaliases* to initialise the sendmail db . Made a
small change in one of the routers and then did a rancid-run but the
logs indicate
home/rancid/var/CVS/Switches/configs/IP_addr v <-- configs/IP addr
new revision: 1.5; previous revision: 1.4
/home/rancid/bin/control_rancid: 477: sendmail: not found
Any help would be appreciated :)
_______________________________________________
Rancid-discuss mailing list
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

- ------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this transmission is legally privileged and confidential, intended only for the use of the individual(s) or entities named above. This email and any files transmitted with it are the property of Pelco. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you receive this communication in error, please notify us immediately by telephone call to +1-559-292-1981 or forward the e-mail to ***@pelco.com and then permanently delete the e-mail and destroy all soft and hard copies of the message and any attachments. Thank you for your cooperation.
------------------------------------------------------------------------------
vishal.ud
2009-11-24 19:11:40 UTC
Permalink
Right , so i was intending to use our external smtp server . I edited
the below mentioned file (using UBuntu btw) . restarted sendmail .
However , i still get the
/home/rancid/bin/control_rancid: 477: sendmail: not found error
Post by Schmidt, Daniel
You may be missing your Relay if you send mail through another server.
you can edit /etc/mail/sendmail.cf or /etc/sendmail.cf depend on your
operating system.
and edit as
# "Smart" relay host (may be null)
DS<mailserver_hostname>
example
DSmail.domain.com (remove the "< & >")
Restart Sendmail
-
Joel Krauska
2009-11-24 19:39:52 UTC
Permalink
Look at the code.

I had a similar problem..
I had to explicitly reference /usr/sbin/sendmail.
(/usr/sbin wasn't in the path for the rancid user I set up)

Type 'which sendmail' to figure out where you sendmail binary is and then try replacing the 5 lines in control_rancid that have "sendmail" with "/usr/sbin/sendmail"..
(or whatever 'which' tells you)
Post by vishal.ud
Right , so i was intending to use our external smtp server . I edited
the below mentioned file (using UBuntu btw) . restarted sendmail .
However , i still get the
/home/rancid/bin/control_rancid: 477: sendmail: not found error
Post by Schmidt, Daniel
You may be missing your Relay if you send mail through another server.
you can edit /etc/mail/sendmail.cf or /etc/sendmail.cf depend on your
operating system.
and edit as
# "Smart" relay host (may be null)
DS<mailserver_hostname>
example
DSmail.domain.com (remove the "< & >")
Restart Sendmail
-
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
john heasley
2009-11-24 19:49:41 UTC
Permalink
Post by Joel Krauska
Look at the code.
I had a similar problem..
I had to explicitly reference /usr/sbin/sendmail.
(/usr/sbin wasn't in the path for the rancid user I set up)
then alter PATH in rancid.conf. the configure script should have found
it and included /usr/sbin in the path.
Post by Joel Krauska
Type 'which sendmail' to figure out where you sendmail binary is and then try replacing the 5 lines in control_rancid that have "sendmail" with "/usr/sbin/sendmail"..
(or whatever 'which' tells you)
Post by vishal.ud
Right , so i was intending to use our external smtp server . I edited
the below mentioned file (using UBuntu btw) . restarted sendmail .
However , i still get the
/home/rancid/bin/control_rancid: 477: sendmail: not found error
Post by Schmidt, Daniel
You may be missing your Relay if you send mail through another server.
you can edit /etc/mail/sendmail.cf or /etc/sendmail.cf depend on your
operating system.
and edit as
# "Smart" relay host (may be null)
DS<mailserver_hostname>
example
DSmail.domain.com (remove the "< & >")
Restart Sendmail
-
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
vishal.ud
2009-11-24 19:52:33 UTC
Permalink
@joel u were right :
so it turns out the script rancid_control which controls the flow of
emails after a diff in the conf files , had a relative and not an
absolte path to sendmail . simply subsitituting it with
/usr/sbin/sendmail did the trick :d wohhoooo #rancid is now online !!!
thanks guys for ur help ..rancid is truly a brilliant tool ;)
Post by Joel Krauska
Look at the code.
I had a similar problem..
I had to explicitly reference /usr/sbin/sendmail.
(/usr/sbin wasn't in the path for the rancid user I set up)
Type 'which sendmail' to figure out where you sendmail binary is and
then try replacing the 5 lines in control_rancid that have "sendmail"
with "/usr/sbin/sendmail"..
(or whatever 'which' tells you)
Post by vishal.ud
Right , so i was intending to use our external smtp server . I
edited the below mentioned file (using UBuntu btw) . restarted
sendmail . However , i still get the
/home/rancid/bin/control_rancid: 477: sendmail: not found error
Post by Schmidt, Daniel
You may be missing your Relay if you send mail through another server.
you can edit /etc/mail/sendmail.cf or /etc/sendmail.cf depend on your
operating system.
and edit as
# "Smart" relay host (may be null)
DS<mailserver_hostname>
example
DSmail.domain.com (remove the "< & >")
Restart Sendmail
-
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
vishal.ud
2009-11-24 19:23:57 UTC
Permalink
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Funny thing here is if i telnet to localhost on port 25 and send an
email using my email <a class="moz-txt-link-abbreviated" href="mailto:***@mydomain.com">***@mydomain.com</a> to rancid-switches , it works
. but when running rancid-run it doesnt <br>
<br>
Mahaffey, Brian wrote:
<blockquote
cite="mid:***@CA-EVS02.pelco.org"
type="cite">
<pre wrap="">You may be missing your Relay if you send mail through another server.

you can edit /etc/mail/sendmail.cf or /etc/sendmail.cf depend on your
operating system.

and edit as

# "Smart" relay host (may be null)
DS&lt;mailserver_hostname&gt;

example
DSmail.domain.com (remove the "&lt; &amp; &gt;")

Restart Sendmail

-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:rancid-discuss-***@shrubbery.net">rancid-discuss-***@shrubbery.net</a>
[<a class="moz-txt-link-freetext" href="mailto:rancid-discuss-***@shrubbery.net">mailto:rancid-discuss-***@shrubbery.net</a>] On Behalf Of vishal.ud
Sent: Tuesday, November 24, 2009 10:53 AM
To: Schmidt, Daniel
Cc: <a class="moz-txt-link-abbreviated" href="mailto:rancid-***@shrubbery.net">rancid-***@shrubbery.net</a>
Subject: [rancid] Re: Issues with Sendmail using Rancid

well like i said im pretty new to sendmail . All i did was simply
install it using apt-get install sendmail

Schmidt, Daniel wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Do you have sendmail installed and configured?

-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:rancid-discuss-***@shrubbery.net">rancid-discuss-***@shrubbery.net</a>
[<a class="moz-txt-link-freetext" href="mailto:rancid-discuss-***@shrubbery.net">mailto:rancid-discuss-***@shrubbery.net</a>] On Behalf Of vishal.ud
Sent: Tuesday, November 24, 2009 11:36 AM
To: <a class="moz-txt-link-abbreviated" href="mailto:rancid-***@shrubbery.net">rancid-***@shrubbery.net</a>
Subject: [rancid] Issues with Sendmail using Rancid

Hey ,

I am running rancid 2.3 downloaded from the shrew berry website
</pre>
</blockquote>
<pre wrap=""><!---->(latest
</pre>
<blockquote type="cite">
<pre wrap="">stable build) . I have managed to configure almost everything for our
</pre>
</blockquote>
<pre wrap=""><!---->HP
</pre>
<blockquote type="cite">
<pre wrap="">Procurve switches and have managed to build the CVS repo and CVS web.
rancid-run works perfectly fine . However , i am facing issues with
making rancid use sendmail to notify us about the diffs made . my
/etc/aliases file looks something like this
rancid-Switches: <a class="moz-txt-link-abbreviated" href="mailto:***@domian.com">***@domian.com</a>
The LIST_OF_GROUPS is defined as Switches in the rancid.conf file .
</pre>
</blockquote>
<pre wrap=""><!---->Post
</pre>
<blockquote type="cite">
<pre wrap="">that i ran *sudo newaliases* to initialise the sendmail db . Made a
small change in one of the routers and then did a rancid-run but the
logs indicate

home/rancid/var/CVS/Switches/configs/IP_addr v &lt;-- configs/IP addr
new revision: 1.5; previous revision: 1.4
/home/rancid/bin/control_rancid: 477: sendmail: not found

Any help would be appreciated :)


_______________________________________________
Rancid-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Rancid-***@shrubbery.net">Rancid-***@shrubbery.net</a>
<a class="moz-txt-link-freetext" href="http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss">http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss</a>

</pre>
</blockquote>
<pre wrap=""><!---->
_______________________________________________
Rancid-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Rancid-***@shrubbery.net">Rancid-***@shrubbery.net</a>
<a class="moz-txt-link-freetext" href="http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss">http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss</a>

- ------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this transmission is legally privileged and confidential, intended only for the use of the individual(s) or entities named above. This email and any files transmitted with it are the property of Pelco. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you receive this communication in error, please notify us immediately by telephone call to +1-559-292-1981 or forward the e-mail to <a class="moz-txt-link-abbreviated" href="mailto:***@pelco.com">***@pelco.com</a> and then permanently delete the e-mail and destroy all soft and hard copies of the message and any attachments. Thank you for your cooperation.

------------------------------------------------------------------------------
</pre>
</blockquote>
<br>
</body>
</html>
Jason Ellison
2009-11-24 19:45:15 UTC
Permalink
vishal.ud,

sendmail: not found

It looks to me like rancid could not find the sendmail binary;
"sendmail: not found". Check the path of the user you run rancid as.
Try "which sendmail". Check the permisions.

sendmail config

Also DS smart host should be in brackets if you are specifying the
actual hostname of your SMTP gateway. Other wise sendmail will do a
MX lookup for the hostname you specify in DS

DS[hostname.example.org.]

http://www.sendmail.org/~ca/email/README.cf.8.8.html

Also note that most default sendmail installs expose the root
user... so when sending mail as root the email will lack masquerading
which can cause it to be rejected by basic anti-spam features. My ISP
will not accept email FROM ***@somehost.home.example.org claiming
"somehost.home.example.org" does not exists.

/home/rancid/bin/control_rancid lines 466-510

if [ -s $DIR/routers.failed ]
then
(
echo "To: $adminmailrcpt"
echo "Subject: config fetcher problems - $GROUP"
echo "$MAILHEADERS" | awk '{L = "";LN = $0;while (LN ~
/\\n/) { I = index(LN,"\\n");L = L substr('
echo ""
echo "The following routers have not been successfully contacted for"
echo "more than $OLDTIME hours."

cat $DIR/routers.failed
) | sendmail -t
fi


-Jason Ellison
Funny thing here is if i telnet to localhost on port 25 and send an email
running rancid-run it doesnt
You may be missing your Relay if you send mail through another server.
you can edit /etc/mail/sendmail.cf or /etc/sendmail.cf depend on your
operating system.
and edit as
# "Smart" relay host (may be null)
DS<mailserver_hostname>
example
DSmail.domain.com (remove the "< & >")
Restart Sendmail
-----Original Message-----
Sent: Tuesday, November 24, 2009 10:53 AM
To: Schmidt, Daniel
Subject: [rancid] Re: Issues with Sendmail using Rancid
well like i said im pretty new to sendmail . All i did was simply
install it using apt-get install sendmail
Do you have sendmail installed and configured?
-----Original Message-----
Sent: Tuesday, November 24, 2009 11:36 AM
Subject: [rancid] Issues with Sendmail using Rancid
Hey ,
I am running rancid 2.3 downloaded from the shrew berry website
(latest
stable build) . I have managed to configure almost everything for our
HP
Procurve switches and have managed to build the CVS repo and CVS web.
rancid-run works perfectly fine . However , i am facing issues with
making rancid use sendmail to notify us about the diffs made . my
/etc/aliases file looks something like this
The LIST_OF_GROUPS is defined as Switches in the rancid.conf file .
Post
that i ran *sudo newaliases* to initialise the sendmail db . Made a
small change in one of the routers and then did a rancid-run but the
logs indicate
home/rancid/var/CVS/Switches/configs/IP_addr v <-- configs/IP addr
new revision: 1.5; previous revision: 1.4
/home/rancid/bin/control_rancid: 477: sendmail: not found
Any help would be appreciated :)
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
-
------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this transmission is
legally privileged and confidential, intended only for the use of the
individual(s) or entities named above. This email and any files transmitted
with it are the property of Pelco. If the reader of this message is not the
intended recipient, or an employee or agent responsible for delivering this
message to the intended recipient, you are hereby notified that any review,
disclosure, copying, distribution, retention, or any action taken or omitted
to be taken in reliance on it is prohibited and may be unlawful. If you
receive this communication in error, please notify us immediately by
telephone call to +1-559-292-1981 or forward the e-mail to
all soft and hard copies of the message and any attachments. Thank you for
your cooperation.
------------------------------------------------------------------------------
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Loading...