main Something happen while delivering an email exception Errno ECONNREFUSED Connection refused - connect 2 for localhost port 25

0 votes

Hi Guys,

I am trying to send an email using the Logstash server, but it is showing me the below error.

[2020-06-18T04:00:18,683][ERROR][logstash.outputs.email   ][main][80bc95341398842d094d2f839c8eb98b26b1b5a3a313444d14a498b6486efffd] Something happen while delivering an email {:exception=>#<Errno::ECONNREFUSED: Connection refused - connect(2) for "localhost" port 25>}
Jun 18, 2020 in DevOps Tools by akhtar
• 38,260 points
1,862 views

1 answer to this question.

0 votes

Hi@akhtar,

You may get this error if you didn't specify the mail server name. You can go through the below-given example.

output {
email {
  to => "xyz@gmail.com"
  body => "Message: This is Nadeem"
  address => "smtp.gmail.com"
  port => 465
  username => "abc@gmail.com"
  password => "pass"
  use_tls => true
}
}
answered Jun 18, 2020 by MD
• 95,460 points

Related Questions In DevOps Tools

0 votes
1 answer

How do I set maximum queue connection for nginx port in Windows?

Since increasing queue size did not fix your problem ...READ MORE

answered Aug 22, 2018 in DevOps Tools by Damon Salvatore
• 5,980 points
1,120 views
0 votes
1 answer

Getting an Error while trying to push changes to cloud foundry

Here is an approach which you can ...READ MORE

answered Jul 19, 2018 in DevOps Tools by Atul
• 10,240 points
2,027 views
0 votes
1 answer

How to connect log file as an input in Logstash?

Hi@akhtar, You can use the file plugin to ...READ MORE

answered Jun 17, 2020 in DevOps Tools by MD
• 95,460 points
1,786 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,941 views
+2 votes
1 answer
0 votes
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP