Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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 have configured the sendmail. Its up and running successfully.
Now, I can telnet from any client to the server on port 25 and send mails. I dont want that. I want to know how i can set authentication to SMTP server.
Your sendmail is reachable from any client (in your domain only, I hope, otherwise
you're a prime target for spammers...), which means simply that it's listening to
the SMTP port for it's external (read: non-localhost) network interface (ie it's reachable
via it's IP address and/or hostname).
If you don't want to have all your clients connecting to this mail server, there are a few options you can use:
-I'm sure it's possible to configure sendmail to restrict access to who gets to send mail.
I won't be able to help you with this, since I'm not a sendmail expert.
-Use a firewall (like iptables) on your mail server to limit access to the SMTP port (for
incoming connections) to only the clients you want on your network.
=> Check out the Linux - Security forum for this one, I suppose.
-Divide your clients into subnets and provide a different mail server for each subnet via
normal routing.
=> Check out Linux - networking forum.
-...
By the way, your mail server can't tell which program (client) is connecting to your mail server (I think).
So you can't prevent clients from using a standard "telnet" to the SMTP port unless by blocking the SMTP
port altogether, but this would prevent any normal mail clients from sending mail as well...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.