Centos SMTP error command not implemented

Hamid asked:

I have a vps with Centos 6.5 and postfix installed. When I want to connect to a smtp server like google or mail gun, I get the error 502 command not implemented. Can anybody help me please?

This is the full story:

[root@mail ~]# telnet smtp.gmail.com 25
Trying 74.125.196.108...
Connected to smtp.gmail.com.
Escape character is '^]'.
220 smtp.passthru
HELO
250 smtp.passthru
STARTTLS
502 Command not implemented

I think the problem is “smtp.passthru” … What is that?!

My answer:


This SMTP exchange is generated by Copfilter, an addon to the IPCop firewall.

Its presence here indicates that your VPS service provider is intercepting outbound SMTP traffic in order to filter it.

Typically Copfilter is used to run anti-virus and anti-spam checks on email, though it could be used for other purposes.

In other words, instead of reaching Gmail’s servers, you have connected to the firewall, and the firewall will decide whether to pass your email along. It could also do other things such as keep a copy of the email you send.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.