Running my own server mail

I did not think about damage to the internet.

1 Like

Readin your post and seeing your question. My advice to you: don’t start with your own mail server. Read through the many useful comments and learn about server admin first. Get yourself a virtual server (full blown debian with ssh access to it) from a hosting provider. Set up a web server (apache or nginx) start with your own website. Enough if it is just a nice picture of the flower on your shelf. Get a domain name. Learn about setting up DNS records for your website. Get let’s encrypt certificates. Set up a proper https website. Set fireqall rules as strict as you can until your site breaks. Maybe also try setting up your own cloud. Upload some files and download them somewhere else. Adjust your firewall accordingly. Then, start learning about mail servers. Set it up on your virtual server with fixed ip and properly set DNS records, not at your home with a dynamic dns service.
I’ve run my own mail server for some years, also having my own website running for more than 10 years. A mail server is quite a work load, needs constant updating of software (especially spam filters) and protocol support (grey listing with SPF, DKIM, reverse lookup, to name some). It is much easier to mess up than to do properly. Certainly nothing if you just start learning about networking and running servers. I lately quit running my own mail servers and chose a trustworthy provider to send my mail. The work load was just no longer justified.

4 Likes

Hello, thanks for the advice, but is not about spam or virus. Im scared for opening ports :wink:

1 Like

Its not the internet, just the domain name.
Say, he has the precious.domain.com.
If it gets blacklisted, he won’t be able to send mails from that domain, so if he needs to send legit mail, has to start over with a new, clean domain.

I don’t know how long a domain stays on spamhaus.org for example, and if there is a way to get off the blacklist at all?
It’s better to avoid to get there :wink:

2 Likes

So, SMTP requires port 25 to be open.
If you are afraid to meet that requirement, then you can’t run an SMTP server.

Excuse me, but i don’t need a web server, but not feeling confident, I switched to using Virtualmin. Also i don’t need to run an ssh server. I already used for some days my own server mail, everything in the domain part is already done and ready to start…

Are you sure?
How are you going to maintain that server?

2 Likes

Yes, i know :wink: you have convinced me, I will stay for some more time on Protonmail which “guarantees” a minimum of privacy.

“How are you going to maintain that server?” Not sure, but i need ssh if the server is located in another machine, or not :slight_smile: Why would i use ssh if is located in my Desktop pc?

A server has to run (approximately :slight_smile: ) 7/24

I don’t recommend to use your desktop as a server.
Not because it could not serve the requests but because you will leave your pants at the pawnshop to pay the bill for the electricity.
A desktop usually a powerful machine, which draws some electricity from the mains.
Typical desktop needs 25…50W for idling, this can go as high as 350…400W on load (if it’s a gaming station with an appropriate graphics card).

My home server is an Odroid HC4.

I don’t have a dedicated keyboard nor monitor for it, it runs headless, under my desk. Yes, you guess right, ssh server runs on it, so I can log-in and do whatever I want.
It is exposed to the internet, so the services which I need to be accessible, are accessible for me from anywhere.

But yet, if you decide to run your desktop as server, you really don’t need an ssh server on it.

2 Likes

I already spend about €250 /m :rofl, i know how expensive is :wink: Maybe a laptop would me better? :wink:
“Please wait 13 hours and you’ll be able to create more replies.”
Have to edit this :wink:
I’m checking… should be a good idea.

:astonished:

Probably, but not the best option.
I’m highly satisfied with the Odroid. Other than that, ask @Tech_JA about MiniPC.

Edit: found the topic:

2 Likes

I did not appreciate that issue.
What I would do is do an experiment without making it my main mail feed.
and
as you said, on a separate machine with low power consumption.

3 Likes

fail2ban has changed “recently”…

you have to initiate it first :

And also here - @Rosika’s answers in that thread too :

It used to work “out of the box” - i.e. install it, start it, and forget about it…

3 Likes

That is a function of the way the package interacts with the init system.
The package has to supply a startup script and the package install has to enable the service.

But on previous versions - e.g. in Debian Stretch or Bullseye - getting Fail2Ban to run was simple as :

sudo apt install fail2ban
sudo systemctl enable fail2ban
sudo systemctl start fail2ban

Simpler even than “set it and forget it” - install it - enable it - start it…

But now you have to initialize it manually…

Oh, that is something extra…it must need a database or something?

In Debian , some services only require the package install… the package does the enable and start for you. That does not happen in Void… you always have to make a link, enable and start.

Init systems have a long way to go to work properly with the package system.

MINI PC, Mini Desktop Computer with 12th Gen Alder Lake-N100, 16GB LPDDR5 512GB M.2 SSD, Mini PC Win 11 Pro WiFi6 2*RJ45 Bluetooth 5.2 HDMI DP Type-C USB,4K@60HZ Mini Computer for Business/School

€160 seems to be very good, what do you think?

sounds / looks okay - but it’s a “Celeron”…

Might be able to get a higher core/thread count with an AMD Ryzen…

16 GB DDR5 sounds pretty good though… 512 GB SSD? 4 cores 4 threads - reckon it would be okay - price looks good I think but I don’t think in Euros…

You are of course free to do what you like. I’ just wanted to recommend to learn about the basics of web hosting before having your mail on your own mail server. It’s usually not that funny to not receive all mails because of a rather messy setup. Not talking about having deleted all your mail because they are saved in a hidden folder that you don’t see in your frontend. Anyway, go ahead and find out what works for you, it’s an open standard and we are not all the same.

3 Likes