[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 in DevOps Tools by akhtar
• 18,250 points
71 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 by MD
• 42,420 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,540 points
152 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
615 views
0 votes
1 answer

running comands as non-root user while using docker-maven plugin

Docker needs root access therefore maven commands ...READ MORE

answered Apr 30, 2018 in DevOps Tools by ajs3033
• 7,280 points
1,002 views
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,420 points
602 views
0 votes
1 answer
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 in DevOps Tools by MD
• 42,420 points
30 views