Slashdot Mirror


So You Want To Host Your Own Linux Mail Server ...

Jeff writes "Recently, I moved my personal mail from a hosted Windows 2003 application to my own virtual Linux server. I now have nearly unlimited storage, full control over my e-mail and it's less than $10/month. Here's why I did it and here's how I did it. And I'm not a Linux geek."

28 comments

  1. thanx for the free advertising by Max+von+H. · · Score: 4, Interesting

    It's just an ad for some virtual host that looks like a howto.

    Bleh.

    --
    -- It's always darker before it goes pitch black.
    1. Re:thanx for the free advertising by Ianoo · · Score: 4, Informative

      Actually, it's a Virtual Linux Host, not a Virtual Hosting account. Although this might well be blatant advertising, there is an important difference between the two ideas.

      Virtual Linux hosting is something new that uses UML (I think) to run several completely separate operating system partitions on the same machine. This means that rather than that horrid CPANEL thing you get with most virtual hosting accounts, you get a full Linux install that you can pretty much use however you want, installing new programs and running background processes and cron, using SSH, and so on. You can even have IP addresses assigned to your particular Linux if required.

      This is much better than the standard HTTP/1.1 vhost package that most small-medium sized website hosts have been offering for the last few years.

    2. Re:thanx for the free advertising by hitchhacker · · Score: 1


      Anyone know of other Virtual Linux hosting sites besides Redwood Virtual?

      -metric

    3. Re:thanx for the free advertising by Asgard · · Score: 4, Informative

      I've been very happy with Linode.com. They also have Gentoo and Mandrake images to start off with.

    4. Re:thanx for the free advertising by reifman · · Score: 1

      I am not affiliated with Redwood at all. I just thought this information would be helpful - I spent time editing and improving what I was given. I think people here are smart enough to find their own host or run it on their own box.

    5. Re:thanx for the free advertising by LoneEagle98 · · Score: 2, Informative

      When I stepped up from shared hosting to a virtual plan I looked at two providers.
      Tecktonic.net and JVDS.com. Ended up going with tektonic, and have been pretty happy with them. Support is top-notch and they use Virtuozzo instead UML.

      --
      do || !do try = ""
  2. So simple! by samael · · Score: 2, Funny

    I bet even my grandmother could follow those instructions!

  3. Not a linux geek? by Blackknight · · Score: 4, Insightful

    How many non-geeks know how to install Debian and configure mail services?

    For normal users the best solution is to either get a hosting account somewhere that supports webmail, or open a gmail account. They configure everything for you so all you have to do is login and read your mail.

    1. Re:Not a linux geek? by Anonymous Coward · · Score: 0
      How many non-geeks know how to install Debian and configure mail services?

      His Linux geek friend walked him through it. Anyway, who cares? The only news here is that it had an anti-Microsoft spin. (And an anti-Patriot Act spin in the article but I doubt if Timothy read that far.)

    2. Re:Not a linux geek? by node+3 · · Score: 5, Funny

      How many non-geeks know how to install Debian and configure mail services?

      Dude, what the hell's wrong with you?

      All you have to do is download and burn a Debian .iso, install, configure your firewall, set up DNS, install a mail server, configure the rules for handling your domain and any appropriate aliases and relaying settings, set up IMAP with SSL and any auth schemes you want, test for adequate security and that you aren't an open relay, then keep up with software updates and security bulletins and make sure your system is adequately backed up and stable (including power and network glitches) for adequate availability. Oh yeah, you'll also need to find a domain name that is both available and doesn't suck, and register and administer it as well.

      Piece of cake. I don't see what you're complaining about, but whatever. Go back to using the 1 of 5 free e-mail addresses that came with the ISP you have to have anyway, and use "Outlook" or "Mail.app" or "Evolution" or whatever easy-to-use program your OS comes with. Pshaw.

    3. Re:Not a linux geek? by endx7 · · Score: 1

      Go back to using the 1 of 5 free e-mail addresses that came with the ISP you have to have anyway, and use "Outlook" or "Mail.app" or "Evolution" or whatever easy-to-use program your OS comes with. Pshaw.

      You mean mail(1)?

  4. WOW. by Anonymous Coward · · Score: 3, Insightful

    Amazing. The guy actually learned to set up Debian, and Courier, and SquirrelMail!

    Holy shit!

    This is sort of a blind-leading-the-blind situation, with little reference made to the official docs for any of these packages. And I'm sorry, I don't have time to read some fellow's long, hard journey to understanding Debian apt-get. Or better yet, screwing up the relationship between sudo and visudo and negelecting the latter entirely.

    I also love how 2 gigs is seen as "unlimited" space. Sure, it's a lot more than you'll get from a free webmail account, even gmail, but that's the reason to roll your own server, not buy time on a virtual server and stumble around learning what you shouldn't do with linux.

    Bleh. Don't waste you time.

  5. $10/month for a virtual linux hosts by Anonymous Coward · · Score: 0

    Okay where??

    1. Re:$10/month for a virtual linux hosts by Ayrehtek · · Score: 4, Informative

      From the second line of part two ("how I did it") of the article:

      "I used the instructions below to guide me through the process of setting up a server at Redwood Virtual with the following components..."

      And a little bit further down:
      "I bought a personal account at Redwood Virtual. It's $10 per month..."

    2. Re:$10/month for a virtual linux hosts by reifman · · Score: 1

      Dude, I'm not affiliated at all with Redwood Virtual - I just thought this would help people. It's not hard to find another place to host your stuff - or just run it locally at your house.

  6. mail servers need RBL + Spam assassin by servicepack158 · · Score: 2

    you have to provide at least two layers of spam filtering + antivirus filtering. otherwise you're asking for it. Setting up a linux box to host email is asked to be used as a relay.

    1. Re:mail servers need RBL + Spam assassin by sfjoe · · Score: 3, Informative

      Setting up a linux box to host email is asked to be used as a relay.

      No, it really isn't. I've been hosting email for a handful of domains for a few years now. No relaying, no intrusions, no problems. Spam filtering is done with a few RBLs and relaying is prohibited.

      --
      It's simple: I demand prosecution for torture.
    2. Re:mail servers need RBL + Spam assassin by Deorus · · Score: 2, Informative

      > you have to provide at least two layers of spam filtering + antivirus filtering

      Postfix is really good at dealing with spam, you can compile it with PERL-Compatible Regular Expression support and set up your first strong protective layer right out of the box. In fact, my mail server is only using regular expressions to catch spam and worms and it has been quite effective over time. Evem if for some reason you don't like PCRE, you can always use POSIX regular expressions for filtering.

      > Setting up a linux box to host email is asked to be used as a relay.

      Where tha hell did you came up with that assumption? Postfix is really good at preventing new users from deploying open relays. By default there is no relay at all, so if you ever need to relay, you can set Postfix to relay messages from your own domain, or set it to relay messages from your own network/host addresses. Whatever you chose is pretty well docummented in the bundled main.cf file, so if even after reading all those comments (and believe me, you have to, since that's the only way to understand the configuration) you end up with an open relay, the only thing I can tell is that you did it on purpose.

  7. A virtual host sounds nice and all that . . . by user+no.+590291 · · Score: 2, Insightful

    . . . but when the man wants your mail, all he has to do is get the directories from your vhost. If you host your own, he has to serve a no-knock warrant, and can seize your encrypted drive.

  8. Sudo over-usage by Anonymous Coward · · Score: 1

    What's with running sudo before every command? Just "sudo su -" and be done with it already.

    1. Re:Sudo over-usage by Fweeky · · Score: 2, Informative

      sudo -s surely?

  9. Domains.. by maskedbishounen · · Score: 4, Insightful

    If you do this, just remember to keep your ISP address around (and check it). Why?

    I have a cousin who seemingly does this who forgot to renew his domain. So when e-mails start bouncing because my mother can't send mail to her relatives, who gets called in? Me. Although the errors clearly mention it's a problem on their end .. but since when did average users start reading their past the "Mail Returned" header?

    To summarize: do it right (ie, have a backup plan), or not at all.

    --
    "An infinite number of monkeys typing into GNU emacs would never make a good program."
  10. Sounds expensive by booch · · Score: 2, Informative

    Why would I want to spend $10/month and have to run it myself, when for less than $20/year I can have someone else do all the work for me? Since the article seems to be a case of free advertising, I'll point out that Slashmail will host your email for $13.95 a year. They allow unlimited email storage space, spam and virus filters, and secure access via various means (HTTPS webmail, IMAPS). Oh, and they use all Open Source.

    --
    Software sucks. Open Source sucks less.
  11. Bad form. by adolf · · Score: 2, Interesting

    Registering a domain (or anything else, really) to an ISP email account is a bad idea.

    So your forgetful cousin switches from SBC DSL to Roadrunner. He'll still miss his renewal reminders.

    Case in point: There's a salesman where I work who used to use his personal DSL account to conduct business. That DSL pipe never really worked very well, but for the longest time it was all he could get. Sometime later, he switched to cable. But he's still paying Way Too Much for a DSL account that isn't connected to anything but an open loop, just to keep his old address alive. That old email is printed on thousands of business cards and in Godknowshowmany telephone books. It'll cost him $90, every month, until the end of time.

    Better to just create for yourself an account with a free POP3 provider, so that you don't have so many services and accounts tied to an ISP whose sole purpose in life -should be- to just provide some bandwidth (and, perhaps, Usenet).

    But it's even better to register yourself a free domain (afraid.org is your friend) and use that for all that Important Stuff that relates to one's Other Domain.

    And it's arguably even better than that to use -both- of these techniques, while instructing your free POP3 host to forward mail to an address at your free domain.

    That way, if it all comes to horrible screeching halt (not even Linux is immune to Sudden Catastrophic Failure Syndrome), you've still got a happy free webmail interface to which your Important Stuff is already going.

    This also has the added advantage of being another hop for email to traverse. Normally, this might be considered a bad thing, but it eliminates the need for a secondary MX server (which can be difficult to source for free) for all imaginable home uses. And so, if your email box becomes un-fubar'd within a reasonable amount of time, you never miss a message.

    (If you're having trouble finding a free email host that enables this functionaliry, just look up about 8 paragraphs.)

    Lots of steps? Sure. But nobody ever said it was -easy- to have reliable email without paying anyone an extra cent.

    It wasn't very hard for me to set up such a sytem, here. I've maintained a *nix box at home for printing, storage, and routing for almost a decade. It was rather easy to set up Postfix and amavis on that machine, configure dhcpcd to update my IP address at afraid.org, and get my mail forwarded over to it. Roadrunner does a pretty good job of keeping the machine connected for the $50/month that I was going to be paying anyway, and during those times when they don't, my free email provider keeps a backlog for me. It's not tainted with any of that fetchmailesque nonsense, and if I ever hop ISPs, things keep working automatically.

    So, since I already had the box and the bandwidth, the whole bag cost me precisely dick but a few hours of my time. I get to keep my own backups without worrying about bandwidth or quotas. And it's at least as reliable as Hotmail. (grin, snicker, etc)

  12. You are in denial by Lord+Kano · · Score: 3, Insightful
    And I'm not a Linux geek.

    Let's see.

    • In response to the questions during the install, I chose the following. In almost every case I selected the default options:


    • ? Choose daemon since redwood virtual has a network connection
      ? Select the default URL
      ? Select yes to notify
      ? Select Internet Site when asked for configuration
      ? Select postmaster as the root account
      ? Select default mydomain.org
      ? Select defaults for mail routing etc...

      Be sure to remember to add a user account for the postmaster later. I?ll come back to this shortly.


    If you know enough to alias postmaster to root, set your default domain and set up mail routing you sir are too a linux geek.

    LK
    --
    "Hi. This is my friend, Jack Shit, and you don't know him." - Lord Kano
  13. Er, actually no, thanks. by jotaeleemeese · · Score: 1

    And I *am* a Linux geek (RHCE).

    --
    IANAL but write like a drunk one.
  14. /. hits again by hunte · · Score: 1

    From the website of the virtual hosting company:

    "We are currently at full capacity. We will have more virtual servers available soon. Please check back in a few days..."

    It seems that /. have a very powerful promotional effect... hummm....

    --
    about me A - B