Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This 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.


  Search this Thread
Old 12-20-2005, 02:01 AM   #1
Registered: Sep 2004
Location: Hyderabad
Posts: 440
Blog Entries: 1

Rep: Reputation: 30
Smile authentication to SMTP server to avoid telnet

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.
Old 12-20-2005, 03:50 AM   #2
Senior Member
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
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.
Old 12-20-2005, 03:52 AM   #3
Senior Member
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
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...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SMTP Authentication jademan83 *BSD 0 10-04-2005 12:20 PM
smtp authentication ashfaq Linux - Software 1 02-25-2004 01:59 AM
Accessing an SMTP server via TELNET ganninu Linux - Security 14 12-10-2003 02:37 AM
Sendmail SMTP Authentication RKris Linux - Software 2 05-29-2003 07:13 AM
SMTP Authentication msmith7735 Linux - Software 1 11-26-2002 05:24 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:32 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration