SMTP Connection Problems when delivering Email Notifications

KB Home   |   SMTP Connection Problems when delivering Email Notifications

Main.SMTPConnectionIssues History

Hide minor edits - Show changes to markup

March 15, 2016, at 12:03 AM by Brian - Had a customer find this KB and use smtp.server.name when emailing about a SMTP server not working
Added lines 4-5:

Note: The use of “smtp.server.name” in this article is a placeholder. Please use your SMTP server address when testing.

Changed line 31 from:

Categories: Errors, PaperCutNG?

to:

Categories: Errors

Added lines 9-14:

or

   Mail server connection failed; nested exception is javax.mail.MessagingException: 
Could not connect to SMTP host: smtp.server.name, port: 25; nested exception 
is: java.net.SocketException: Connection refused: connect.
Changed line 25 from:

Categories: Error, PaperCutNG

to:

Categories: Errors, PaperCutNG?

Changed lines 3-4 from:

When PaperCut NG tries to deliver email notifications, the following error can occur when there are problems connecting to the SMTP server.

to:

When PaperCut NG tries to deliver email notifications and/or reports, the following error can occur when there are problems connecting to the SMTP server.

Changed lines 5-6 from:
   Mail server connection failed; nested exception is javax.mail.MessagingException: Could not connect to SMTP host: smtp.server.name, port: 25; nested exception is: java.net.SocketException: Software caused connection abort: connect.
to:
   
Mail server connection failed; nested exception is javax.mail.MessagingException: 
Could not connect to SMTP host: smtp.server.name, port: 25; nested exception 
is: java.net.SocketException: Software caused connection abort: connect.
Changed line 23 from:

Categories: Error

to:

Categories: Error, PaperCutNG

Added lines 1-27:

(:title SMTP Connection Problems when delivering Email Notifications:)

When PaperCut NG tries to deliver email notifications, the following error can occur when there are problems connecting to the SMTP server.

   Mail server connection failed; nested exception is javax.mail.MessagingException: Could not connect to SMTP host: smtp.server.name, port: 25; nested exception is: java.net.SocketException: Software caused connection abort: connect.

When you receive this error, first check that the SMTP server is set correctly. If this is OK, then the most common causes of this error are:

1. That there is Antivirus software running on the PaperCut machine that does not allow outbound SMTP connections. This is common because many viruses and spyware use email to spread themselves. So either disable the virus-scan or add a exception/white-list that will allow PaperCut to make the connection.
2. There is a firewall that is stopping the connection. Make sure your firewalls allow this connection.
3. The SMTP server itself is not configured to allow connections from the PaperCut IP address.

One way to do a quick test to see if you can connect to the SMTP server from the PaperCut machine is to try the following from a command prompt:

   telnet smtp.server.name 25

If the screen goes black, then the connection has been established successfully. And this should mean that PaperCut will also be able to connect.


Categories: Error


keywords: email, connection, socket, smtp

Comments

Share your findings and experience with other PaperCut users. Feel free to add comments and suggestions about this Knowledge Base article. Please don't use this for support requests.

Article last modified on March 15, 2016, at 12:03 AM
Printable View   |   Article History   |   Edit Article