not able to use SMTP for sendmails

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

not able to use SMTP for sendmails

Post by srikanth.kallu »

I am getting an error when trying to use SMTP

Not sure about the mistake i am doing

Can you please correct me
You do not have the required permissions to view the files attached to this post.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: not able to use SMTP for sendmails

Post by sreinhardt »

It seems that the first and second images are different. The first is sending without encryption. Whereas the second is using TLS. On port 25 there generally is not encryption, and instead that would be likely handled with port 587. Could you verify which way was intended and maybe try both on your network?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

Re: not able to use SMTP for sendmails

Post by srikanth.kallu »

Actullly i tried in all the ways, but it did not work.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: not able to use SMTP for sendmails

Post by abrist »

Any hints in your maillog?

Code: Select all

 tail /var/log/maillog
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

Re: not able to use SMTP for sendmails

Post by srikanth.kallu »

Mar 15 10:45:20 nagiosxi sendmail[26090]: r2FFjKQm026090: from=<[email protected]>, size=1921, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Mar 15 10:45:20 nagiosxi sendmail[26089]: r2FFjK4U026089: to=[email protected], ctladdr=root@localhost (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31704, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (r2FFjKQm026090 Message accepted for delivery)
Mar 15 10:45:20 nagiosxi sendmail[26092]: STARTTLS=client, relay=webmail.mouser.com., version=TLSv1/SSLv3, verify=FAIL, cipher=AES128-SHA, bits=128/128
Mar 15 10:45:20 nagiosxi sendmail[26093]: r2FFjKrO026093: Authentication-Warning: nagiosxi.mouser.lan: nagios set sender to root@localhost using -f
Mar 15 10:45:20 nagiosxi sendmail[26093]: r2FFjKrO026093: from=root@localhost, size=1700, class=0, nrcpts=1, msgid=<[email protected]>, relay=nagios@localhost
Mar 15 10:45:20 nagiosxi sendmail[26094]: r2FFjKhh026094: from=<[email protected]>, size=1917, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Mar 15 10:45:20 nagiosxi sendmail[26093]: r2FFjKrO026093: to=[email protected], ctladdr=root@localhost (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31700, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (r2FFjKhh026094 Message accepted for delivery)
Mar 15 10:45:20 nagiosxi sendmail[26096]: STARTTLS=client, relay=webmail.mouser.com., version=TLSv1/SSLv3, verify=FAIL, cipher=AES128-SHA, bits=128/128
Mar 15 10:45:20 nagiosxi sendmail[26092]: r2FFjKQm026090: to=<[email protected]>, ctladdr=<[email protected]> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=121921, relay=webmail.mouser.com. [10.0.11.228], dsn=2.0.0, stat=Sent (<[email protected]> [InternalId=7111432] Queued mail for delivery)
Mar 15 10:45:20 nagiosxi sendmail[26096]: r2FFjKhh026094: to=<[email protected]>, ctladdr=<[email protected]> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=121917, relay=webmail.mouser.com. [10.0.11.228], dsn=2.0.0, stat=Sent (<755393a0dde0905d7f4339f5d7d0feca@

The above are the messages but i did not get any hint out of it.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: not able to use SMTP for sendmails

Post by abrist »

Have you checked the mail logs on the relay to verify if the relay is receiving the emails?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

Re: not able to use SMTP for sendmails

Post by srikanth.kallu »

I found it, it is my nagios password not updated.

Thanks and i appreciate all for looking into this.
Locked