[rancid] Re: Issues with Sendmail using Rancid

Jason Ellison infotek at gmail.com
Tue Nov 24 19:45:15 UTC 2009


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 root at 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


2009/11/24 vishal.ud <vishal.ud at directi.com>:
> Funny thing here is if i telnet to localhost on port 25 and send an email
> using my email address at mydomain.com to rancid-switches , it works . but when
> running rancid-run it doesnt
>
> Mahaffey, Brian wrote:
>
> 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-bounces at shrubbery.net
> [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of vishal.ud
> Sent: Tuesday, November 24, 2009 10:53 AM
> To: Schmidt, Daniel
> Cc: rancid-discuss at 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
>
> Schmidt, Daniel wrote:
>
>
> Do you have sendmail installed and configured?
>
> -----Original Message-----
> From: rancid-discuss-bounces at shrubbery.net
> [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of vishal.ud
> Sent: Tuesday, November 24, 2009 11:36 AM
> To: rancid-discuss at 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: ouremail at 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 :)
>
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>
>
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at 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
> administrator at 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.
>
>
> ------------------------------------------------------------------------------
>
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>


More information about the Rancid-discuss mailing list