Jump to content

so... one of the tasks for OS class i had to do was set up a windows mail server.

 

it took the combined effort of all students a few months to get it sorta figured out.

 

 

Ok I will give these a try tomorrow and I will get back to you tomorrow. Thanks

Link to comment
https://linustechtips.com/topic/451168-mail-server-help/#findComment-6049422
Share on other sites

Link to post
Share on other sites

Before you go configuring your own server, have you got a dedicated IP address with a PTR record setup?

Theres no point in configuring your own SMTP if you havent got that. If you don't then you should configure it as a Smarthost or Relay to an intermediate mail server, or you're just going to struggle with constant delivery issues.

 

Also you may need to setup an SSL so you can configure it with TLS on a secure port, most ISP's will block Port 25 mail

 

Bare in mind if you don't setup your security properly, you're going to get on blacklists pretty fast - with many of the providers on MXToolbox.

 

Also what kind of mail are you setting up? An Exchange Server? IMAP?

Spoiler

Desktop: Ryzen9 5950X | ASUS ROG Crosshair VIII Hero (Wifi) | EVGA RTX 3080Ti FTW3 | 32GB (2x16GB) Corsair Dominator Platinum RGB Pro 3600Mhz | EKWB EK-AIO 360D-RGB | EKWB EK-Vardar RGB Fans | 1TB Samsung 980 Pro, 4TB Samsung 980 Pro | Corsair 5000D Airflow | Corsair HX850 Platinum PSU | Asus ROG 42" OLED PG42UQ + LG 32" 32GK850G Monitor | Roccat Vulcan TKL Pro Keyboard | Logitech G Pro X Superlight  | MicroLab Solo 7C Speakers | Audio-Technica ATH-M50xBT2 LE Headphones | TC-Helicon GoXLR | Audio-Technica AT2035 | LTT Desk Mat | XBOX-X Controller | Windows 11 Pro

 

Spoiler

Server: Fractal Design Define R6 | Ryzen 3950x | ASRock X570 Taichi | Asus RTX 4060 Dual OC | 64GB (4x16GB) Corsair Vengeance LPX 3000Mhz | Corsair RM850v2 PSU | Fractal S36 Triple AIO + 4 Additional Venturi 120mm Fans | 8 x 20TB Seagate Exos X22 | 4 x 16TB Seagate Exos X18 | 3 x 2TB Samsung 970 Evo Plus NVMe | LSI 9211-8i HBA

 

Spoiler

NAS: Innovision 4U 24-bay chassis (12GB MiniHD SGIO Backplane) | Intel Core i9-10980xe | EVGA X299 FTW-K | EVGA RTX 2080Ti Super FTW3 | 128GB (8x16GB) Corsair Vengeance LPX 3200Mhz | DEEPCOOL PN1000M PSU| Noctua NH-D12L Chromax Black | 16 x 16TB Seagate Exos X18 | 2 x 2TB Samsung 990 Pro | 2 x 2TB Intel U.2 P4510 | LSI 9305-24i HBA

 

Link to comment
https://linustechtips.com/topic/451168-mail-server-help/#findComment-6049816
Share on other sites

Link to post
Share on other sites

First, in regards to the replies above: An SMTP server is not "a mail server." The SMTP server component is simply the mail transport agent and can do one thing which is move mail around. The Windows SMTP server role doesn't have mailboxes, IMAP, pop, or any kind of storage it is simply an MTA. Generally speaking a mail server needs both an MTA and an IMAP/POP server so for example a standard Linux mail setup will be at minimum Postfix (the MTA) and Dovecot (the IMAP/POP server.)

 

The Windows mail server setup is typically Microsoft Exchange which is both an MTA and a storage server rolled into "one." (The roles can be split between servers.) Note: It also requires Microsoft Active Directory. hMailServer is another option as you mentioned but you won't find much support for it because on Windows it's 99% Exchange for mail. 

 

I do not recommend setting up AD and Exchange for small mail projects and to be honest I wouldn't recommend setting up a Linux environment either. Not only would you want more than just the MTA and IMAP server you'll want Anti-Virus, Spam Protection, a better storage method for user than *nix users so probably MySQL, Stats, Webmail, Backups, and a host of other things when running your own mail. My personal mail server for example is running Postfix, Dovecot, MySQL, PolicyD, ClamAV, Roundcube, Awstats, SpamAssassin, and Apache... It is also all SSL so I have a purchased cert which is also installed. At work it's even more complex due to volume, HA, and a combination of Exchange and Linux mail clusters. 

 

On top of the technology running your own mail requires you to understand DNS (especially MX and SPF records,) DMARC, how to check and deal with blacklists, how to train SpamAssassin or ProofPoint or whatever filtering you're using, what greylists are and how they work, how to trace and troubleshoot mail flow, and a host of other things most people don't think about.

 

It is almost always worth it to just pay $5/mailbox to a company like Rackspace or $9/mo to a company like DreamHost to host all of your mail because they worry about all of that stuff. I am saying that as someone who hosts their own email and works with Exchange and Linux mail in a professional capacity... Mail hosting is not a "hobby." Consider these scenarios:

 

  • Bob sends an email to someaddress@gmail.com and it never arrives even though it says sent.
  • Joe says a friend emailed him something be he never got it.
  • You send an email to yourself from your gmail address and it takes 10 minutes to show up.
  • You setup an address to forward to another email address and the remote server rate limits you because it says you're spamming.

Do you know where to begin troubleshooting those issues? Do you care to learn?

 

If you're dead set on it I highly recommend you use Linux and look at a simplified mail solution like Mail-in-a-Box (https://mailinabox.email/.) You'll have less granular control over the server but it makes it way easier if you're new to mail. You'll still want to look into SPF and possibly DMARC but it will be a lot easier overall. 

 

As someone else mention you may also be unable to host email at all if you're doing this out of your home on consumer internet as most ISPs block standard mail ports to curb spam abuse. 

Link to comment
https://linustechtips.com/topic/451168-mail-server-help/#findComment-6053698
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×