LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 02-26-2008, 03:36 AM   #1
montag
LQ Newbie
 
Registered: Feb 2008
Distribution: Slackware 12.0
Posts: 10

Rep: Reputation: 0
Web/Email Server, but some security concerns


So I own a domain name and I want to set up a web server so I can host content on my computer that appears at the domain name. I also want to be able to send and receive mail from (address)@mydomainname.com. To be honest, I have no idea where to start. I tried googling but all I could come up with were some guides for Ubuntu :-/. Any tips about some documentation and/or tutorials I could look at?

I am also worried about security. Does it open up my computer to attacks if I set this up?

~montag
 
Old 02-26-2008, 07:46 AM   #2
Su-Shee
Member
 
Registered: Sep 2007
Location: Berlin
Distribution: Slackware
Posts: 509

Rep: Reputation: 41
Well, first of all you try do understand the overall security stuff - what kinds of problems are there and how do they actually concern your system?

After that, you read per application security - because overall I'm a security idiot, so I use qmail as mail server, for example. What's a good webserver choice? Are there any differences between available IMAP-servers and so on. Is Apache 1.3.x really still a better idea then Apache 2.x? Do I really need an entire Apache or would a simply Python-Twisted two-liner do the trick?

And I add religiously patches and updates into my Slackware of all components I got on my system - of course I just install the necessary stuff. Typically this is something like a zlib update for example which affects many elements of any Linux distribution.

In terms of security of the Linux distribution itself Slackware is rather well cared for, as far as I see it.

Of course, there's always the risk of some security problem not published or known to us common folks yet.
 
Old 02-26-2008, 09:08 AM   #3
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Arch64,Slackware64 -current
Posts: 1,132

Rep: Reputation: 52
Quote:
Originally Posted by montag View Post
So I own a domain name and I want to set up a web server so I can host content on my computer that appears at the domain name. I also want to be able to send and receive mail from (address)@mydomainname.com. To be honest, I have no idea where to start. I tried googling but all I could come up with were some guides for Ubuntu :-/. Any tips about some documentation and/or tutorials I could look at?

I am also worried about security. Does it open up my computer to attacks if I set this up?

~montag
I have a similar setup in place with a webserver running apache/php/mysql and email server with postfix/dovecot/spamassassin/clamav/policyd email server. Anytime, you open up services on the net, you are open to cracking/attacks. However, there are ways to setup preliminary defenses,

1. keep the systems patched/updated and subscribe to mailing lists which can give you valuable tips on configuration and also notify of new releases. This is especially true for Postfix.
2. run firewalls and don't allow unnecessary access.
3. regular backups so you can revert back your configuration if your machine dies.
4. keep monitoring the system logs, there a various softwares to do that. You can also install something like fail2ban which block some offenders.

Personally, I did everything in steps. First step was to setup Apache and PHP and tested out everything. I run a headless server so I absolutely need OpenSSH but I only allow access from local net.

For me, email server was the hardest to setup since I don't come from a CS background. I read "The Book of Postfix" by Ralf Hildebrandt which was a great help. I am in the process of writing a how-to for email server but with work and a toddler, I don't know when I'll finish it up.

Also, I spent a hugh amount of time on perfecting my iptables firewall script so I can keep access in check.

Last edited by tuxrules; 02-26-2008 at 09:11 AM.
 
Old 02-26-2008, 01:39 PM   #4
evilDagmar
Member
 
Registered: Mar 2005
Location: Right behind you.
Distribution: NBG, then randomed.
Posts: 480

Rep: Reputation: 31
This is worth much less than it used to be, but Slackware 12 has a version of GCC that finally contains the pro-police stack protector code in it by default. Something that will help against buffer overflow exploits would be to redo the original Slackware packages (using Pat's slackbuild script, of course) and adding "-fstack-protector-all" to the CFLAGS passed to the compiler.

As to email, I will strongly suggest checking out the documentation over at Sendmail.org about preventing open relays, since that's probably the most direct threat anyone running an email server has to face at the moment.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Web email server from private email server guy_ripper Linux - Server 2 01-17-2008 06:58 AM
kwallet and konqueror security concerns 40mdxer Linux - Security 1 01-01-2008 08:19 AM
First-time server setup, distro questions, and security concerns Cronus Linux - Newbie 2 01-06-2007 05:19 PM
Noob Admin, security concerns Linuxfrog Linux - Security 4 11-26-2006 03:29 AM
MRTG: security concerns? registering Linux - Security 2 08-07-2003 06:56 AM


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

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration