Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm trying to use a dummy/DEV smtp server (webster) which by default opens port 5000 to accept SMTP messages.

Previously with Fedora 16/iptables had no problems opening port 25, redirect to port 5000, and everything was fine.

However, using the firewalld UI allowing port 25 for the public zone (confirmed correct zone), port-forwarding from 25 to 5000, nothing is working. (both persistent and runtime checked/confirmed).

netstat -a |grep smtp does not show anything listening, so I think that is where my problem is.

telnet localhost 5000 connects to smtp (as well as real ip) telnet localhost 25 connection refused (as well as real ip)

Question: how can I open a listening port for SMTP (port 25) and redirect it to 5000?

share|improve this question
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.