LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-04-2018, 04:52 AM   #1
giggs
LQ Newbie
 
Registered: Oct 2018
Posts: 3

Rep: Reputation: Disabled
Setup secure email server


Hi all,

I'm new to Linux but want to experiment on how to set up a secure email server using centos 7.

Can anyone help, please?

Cheers
 
Old 10-04-2018, 05:06 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,483

Rep: Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556
So what have you done so far and what problems are you having?
 
Old 10-04-2018, 08:01 AM   #3
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,335
Blog Entries: 3

Rep: Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731
First check to make sure that your planned IP address is not on any of the spam blacklsits. If it is, arrange for a different address.

Then you'll probably want to read up on SPF, DKIM, and DMARC to know what they do and plan how you will use them.

Then read up on exim, postfix, and qmail and pick one to start to work with for SMTP. Also look into Dovecot or Cyrus for IMAPS.
 
Old 10-05-2018, 03:03 AM   #4
giggs
LQ Newbie
 
Registered: Oct 2018
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hi,

To set up a secure email, what are some of the security hardening requirements and security controls I could implement in Linux to achieve the requirements.

Need help.
 
Old 10-05-2018, 03:06 AM   #5
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,335
Blog Entries: 3

Rep: Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731
We don't do your homework around here but we can help you over the hard parts if you show what you have tried and where you have gotten stuck. How far did you get in reading about SPF, DKIM, and DMARC?
 
Old 10-05-2018, 03:56 AM   #6
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Expand on your ‘requirements’.
Define “secure”.
 
Old 10-05-2018, 04:04 AM   #7
giggs
LQ Newbie
 
Registered: Oct 2018
Posts: 3

Original Poster
Rep: Reputation: Disabled
What I mean by "secure email" is to implement a fully protected email service which I guess would use Postfix and Dovecot.

I just need guidelines, what to install 1st and so forth then I'll start exploring Linux. Am new to Linux but want to learn more about this operating system.
 
Old 10-05-2018, 04:41 AM   #8
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,335
Blog Entries: 3

Rep: Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731
Mail is more planning than installing. Installation goes in a second or two, that's not the challenge. Setting up MX records and configuring SPF, DMARC, and DKIM are more complicated. Also, be sure to check the blacklists to ensure your IP address is not on them. Otherwise, once you are up and running your mail will be blocked and the domain tainted as a spammer, in practice forever.

Now that you are basing your project on Postfix, what questions do you have from the official documentatoin, especially on setting up TLS?
 
Old 10-05-2018, 04:44 AM   #9
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,483

Rep: Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556
  1. Pick a distro
  2. Find the appropriate security hardening guidelines for it (hint, you may find more for commercial distros like RedHat and its companion CentOS)
  3. Pick an audit standard (if you're feeling really lucky go with PCI-DSS 3)
  4. Once you've hardened your O/S to the relevant levels repeat the same exercise with Postfix and Dovecot.

Your favourite search engine is your friend here.

If you're asking for personal recommendations then use CentOS and follow the CIS Benchmarks
 
Old 10-05-2018, 04:49 AM   #10
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,335
Blog Entries: 3

Rep: Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731Reputation: 3731
Quote:
Originally Posted by TenTenths View Post
  1. Pick a distro
  2. Find the appropriate security hardening guidelines for it (hint, you may find more for commercial distros like RedHat and its companion CentOS)
Canonical's Ubuntu is also a fine commercial distro and the Long Term Support releases have five years of support. Some may find it much easier to maintain. YMMV. Either way stick with a distro that will have some years of support before forcing upgrades.
 
  


Reply



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
Not such a secure email server! hazel Linux - Security 2 04-29-2017 07:24 AM
Create secure email server jefro Linux - Server 7 03-31-2012 12:31 PM
Secure messaging using one single email server xri Linux - Software 1 10-30-2009 12:44 AM
DISCUSSION: HOWTO Setup a Secure Relaying Email Server DavidPhillips LinuxAnswers Discussion 20 07-30-2004 11:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:14 PM.

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