Martin, Eric wrote:
[...] I own two domains, and I want to have email from those domains delivered to my server.
The first question is: will your provider allow incoming smtp to your address? If so, you can set up MX pointers to your server... unless it's dynamic. In which case, you could set up with one of the dynamic dns providers, and update it with a short TTL. In which case, everything shulud work, although some systems will reject (RBL) mail originating from your address simply because it IS dynamic. Back in Phoenix, I was set up (with Cox as my provider) with a server at the house directly accepting mail from outside. It was great fun, but due to the worm/virus outbreaks, and various threats from the community at large, they began blocking inbound smtp, and eventually outbound as well. While this was certainly aggravating at the time, and I was annoyed they didn't bother to NOTIFY me of this change, in hindsight it's probalby just as well. I wound up going with a $2/mo. offsite hosting outfit, and have to say my aggravation levels are greatly reduced (not to mention I can down my server and not worry about losing stuff... a real advantage while moving last summer.) It's also nice now that I'm experiencing the not-quite-so-steady power in my new home area. Mail for my domains goes to the hosted server (my MX), and I pull it down at regular (5 min.) intervals using fetchmail via POP3. I run postfix locally, but relay through my provider's (charter) smtp server for outbound to avoid sudden surprises if ToS changes. I've got accounts on the hosted server for my users (family), plus a "wildcard" that I can use to break things out locally via aliases. It's not as sexy as having incoming mail handled directly, but mail for my domains "is delivered to my server" for local reading via POP/IMAP, and I do have control over the local outbound (smtp). I don't have spammers knocking at my server constantly, and I have to admit I don't miss the headaches of an exposed server (though the learning was fun). I'm not sure if that's what you had in mind, but it does work well.
I have Postfix in mind, I've heard it's pretty easy but I'm obviously not set on it.
I used postfix throughout, and found it quite easy to set up and administer. Handling multiple domains locally was no big deal, jsut a matter of setting the "mydestination" option. Again, specifics may vary depending on what your provider allows/requires.
I'd also like to include spamassassin, and antivirus (clamav probaly...)
I do run spamassassin via local delivery, but obviously the stuff's made it onto my server by then. I don't run any MTA-level blocking, due to the setup described above. It does keep the crud out of my family's inboxen though (and quite deftly, I might add.) I also chain bogofilter and spamprobe, experimenting with variations on bayes. I'm on the spamassassin list, and there ways to get MTA-level integration, if you desire. I'm running several anti-virus (3 - bitdefender, f-prot and clamav) in line via procmail on delivery. Each detects some the others miss (depending on the hour.) Again, this could be integrated at a higher level. You might check out amavis or mailscanner. I've got anomy sanitizer as a 3rd level of defense, stripping off active content and defanging (web bugs and the like), for selected accounts. I set this up all as discrete steps, and had no real headaches. The documentation for each package (postfix, fetchmail, procmail, spamassassin, clamav) was sufficient. I run my own linux firewall, but I can understand why some folks prefer to by an appliance. I host my mail server off-site, but have done the "studly mail admin" bit as well. Just a question of trade-offs for a home/hobby system, and how much time you want to spend on it. - Bob