How to check that SMTP service is running OK on a Plesk server?

Created:

2016-11-16 13:23:50 UTC

Modified:

2017-08-16 16:00:51 UTC

1

Was this article helpful?


Have more questions?

Submit a request

How to check that SMTP service is running OK on a Plesk server?

Applicable to:

  • Plesk for Linux

Question

How to check that SMTP service is running OK on a Plesk server?

Answer

Verify either port 25 is listening by performing the following command:

# netstat -ntap | grep 25
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN -

Log in to the Plesk server and try command telnet localhost 25 . If SMTP works and Qmail is used as a mail server, the output should be:

# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 hostname.tld ESMTP

or in case Postfix is used:

# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 hostname.tld ESMTP Postfix

If you run telnet localhost 25 on the Plesk server and see another greeting, check article 213945265 .

If you see an error in /var/log/messages like:

smtp/tcp server failing (looping), service terminated

try an article .

Have more questions? Submit a request
Please sign in to leave a comment.