Page 1 of 1

not able to use SMTP for sendmails

Posted: Fri Mar 15, 2013 12:14 pm
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

Re: not able to use SMTP for sendmails

Posted: Fri Mar 15, 2013 1:44 pm
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?

Re: not able to use SMTP for sendmails

Posted: Fri Mar 15, 2013 2:25 pm
by srikanth.kallu
Actullly i tried in all the ways, but it did not work.

Re: not able to use SMTP for sendmails

Posted: Fri Mar 15, 2013 2:32 pm
by abrist
Any hints in your maillog?

Code: Select all

 tail /var/log/maillog

Re: not able to use SMTP for sendmails

Posted: Fri Mar 15, 2013 2:38 pm
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.

Re: not able to use SMTP for sendmails

Posted: Fri Mar 15, 2013 3:01 pm
by abrist
Have you checked the mail logs on the relay to verify if the relay is receiving the emails?

Re: not able to use SMTP for sendmails

Posted: Fri Mar 15, 2013 3:11 pm
by srikanth.kallu
I found it, it is my nagios password not updated.

Thanks and i appreciate all for looking into this.