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 was thinking it'd be cool if I set up an e-mail server so that like I can create as many e-mail addresses (POP3?) that I want or w/e. I already have my website and stuff and I figured it'd be cool just to be able to maek e-mail address for stuff
What ports do I need to open?
What software do I need to do this?
What is a good link that I can use to do figure this out?
The biggest thing you need to make sure you do is NOT run an open relay. An open relay is an SMTP server that will let anyone send mail to anywhere through it. It is logical to have an SMTP connection except a connection from anyone (how else would anyone be able to send you mail) but only trusted machines should be able to ask the SMTP server to send mail to another SMTP server.
I configured sendmail after a few attempts got it working pretty good. I bought the O'Reilly sendmail 600 page book. It was like reading assembler for me.
I didn't want to be an open relay, but I wanted to check email remotely. So, I used webmin to configure sendmail and then I use SSH port forwarding to make an ssh tunnel to check my email. It works good and I don't have to worry about spammers.
yup i use sendmail and it works fine. thats all i care about! when it breaks i might try something else but if i can send and receive an email i dont care!
You will need a DNS pointing to your mail server. I don't use my own DNS, I use the DNS from the folks I got my domian through. I have the servers in my basement and run sendmail right from here.
What distro do you have? I know redhat, SuSe already have sendmail on them, it just needs configured. You will need to open port 25. Make sure you're not an open relay. You can test it with various testing tools. One of my favorite is SAM SPADE. Do a search on Google for it.
Originally posted by lucktsm I configured sendmail after a few attempts got it working pretty good. I bought the O'Reilly sendmail 600 page book. It was like reading assembler for me.
I didn't want to be an open relay, but I wanted to check email remotely. So, I used webmin to configure sendmail and then I use SSH port forwarding to make an ssh tunnel to check my email. It works good and I don't have to worry about spammers.
Being able to check e-mail remotely doesn't make you a remote hole at all. You can use all the insecure IMAP and POP you want all day long and nobody else could care less.
It is when you allow uses to connect remotely to your SMTP server and send mail to places other then address on your local machine that you are opperating a open relay. IMAP SSL or POP SSL would be a much more elegant solution (one that would work with regular old e-mail clients) then an SSH tunnel for checking mail.
ok i'm not 100% on all of this but what i have setup is going to a place called http://www.dyndns.org and getting a FREE name linked to my IP address so now if you use amon.is-a-geek.net (there is nothing interesting there so don't look im in the process of building stuff up) it connects you to the small computer in my room running 24/7. this allows for SMTP, POP3, HTTP (apache), ftp etc... all to run off a computer with a free name. the email side means that running both the POP3 & SMTP i can have anything i want @amon.is-a-geek.net which is fantastic for if you have to sign up for something you don't want to have spamed
as far as ports goes you only need to know 2 for a basic setup:
25 SMPT
110 POP3
if your interested look up telnet pop3 or telnet smtp on google as you can telnet into thease servers to send email.
on a securety note it is easy to make your server only allow relay from people who log in with a particular name. some servers will allow you to say only relay from certan IP ranges so if you have a lan you can set it to relay from 192.168.X.X and nothing else
I downloaded, installed hMailserver from hmailserver.com. It was up and running in minutes. Download the latest (3.0) package with MySQL included and follow simple instructions.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.