Postfix - how to restrict access by telnet to postfix ?
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I don't think you've really understood what it means to use telnet to connect to postfix. Telnet is just used as a very basic network application which allows direct interaction with something at the other end of a TCP connection. you are not literally "telnetting" to it, despite the language used, as it is not the telnet protocol being used, just basic TCP. You can't block the use of the telnet application itself as there is nothing within SMTP to allow the mail client to identify what it is - thunderbird, outlook, mutt, telnet... all say the same things over SMTP.
If you forget about the telnet side completely, if you want to restrict access you can...
- use ssl / tls instead to encrypt the connection (telnet connections will still work just super if used over a ssl tunnel application like stunnel)
- restrict connections to certain IP addresses (again telnet is still completely possible from those permitted sources but no connectivity at all is allowed from other addresses)
there is *nothing* wrong with using telnet to debug things, it is not evil, and if you think it is, then you're mistaken.
Last edited by acid_kewpie; 01-29-2009 at 01:23 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.