Gentoo Archives: gentoo-amd64

From: Richard Freeman <rich@××××××××××××××.net>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] Re: newcomer:
Date: Mon, 09 Oct 2006 23:24:29
Message-Id: 452AD95B.4000807@thefreemanclan.net
In Reply to: Re: [gentoo-amd64] Re: newcomer: by Peter Davoust
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Peter Davoust wrote:
5 > Well, that was also an enlightening e-mail. I just disabled and deleted
6 > all cookies in Firefox, and now I'm going to do as Richard described and
7 > setup my own e-mail account. Any good ideas/howto's about how to setup a
8 > mail server?
9 >
10
11 Well, I'm guessing you don't have much background, so your first
12 objective will probably be to ease yourself into this without getting
13 innundanted and losing all your email for a week due to some glitch.
14
15 I'd SLOWLY go through the following steps:
16
17 1. Get a basic mail server running on your system - you generally need
18 one anyway if only so that cron jobs and such can send mail to your root
19 account. This will be internal-only.
20
21 2. Play around with sending mail to yourself locally - just to get a
22 feel for things.
23
24 3. Get an IMAP server running - and then try viewing your play mail
25 through it using thunderbird/kmail/whatever.
26
27 4. Set up fetchmail to retrieve your real mail and forward it to you.
28 You can use an appropriate option at first so that it only copies your
29 mail and you can still use gmail/etc on the side.
30
31 5. Set up your mailserver to send outgoing mail - probably via your ISP
32 (you can just send it directly but if you have a dynamic IP you might
33 get spamfiltered by the big players). This can be a little tricky.
34
35 6. Start using your local mail in production - send your mail from this
36 box and read it from the IMAP store. You still have your email saved at
37 gmail in case anything goes wrong.
38
39 7. Experiment with procmail/spamassassin/clamav/etc. Again, a good
40 time to do this is when you won't risk losing mail.
41
42 8. Go ahead and cut the umbilical cord if you want.
43
44 9. Look into setting up a dynamic DNS and set up your own incoming
45 mailserver. Play with that for a while before advertising your new address.
46
47 10. Tell the world about your new address.
48
49 If you only get up to step 5/6 or so you'll realize most of the
50 benefits, and you'll learn a ton. If you take your time you won't end
51 up in any frustrating situations.
52
53 There are a ton of howtos out there gentoo and otherwise. I'd probably
54 recommend the following setup:
55
56 postfix as a mail server - powerful but basically works out of the box
57 and is comprehensible.
58
59 courier-imap as an IMAP server. There is also dovecot but I've run into
60 issues with it.
61
62 Use maildir-style mailboxes. They have a number of advantages and are
63 well supported.
64
65 Use fetchmail to retrieve your mail to your local account. This is a
66 very powerful program and pretty simple to set up. Run it as a cron-job
67 once you've gotten it working.
68
69 Once you are ready for the next step clamav is a good virus scanner,
70 spamassassin works well as a junk filter, and procmail is good for mail
71 sorting/autoreplying/etc.
72
73 If you just did an emerge postfix courier-imap you'd probably be able to
74 fumble with config files and get yourself running surprisingly fast. A
75 good starting point is:
76
77 http://www.gentoo.org/doc/en/virt-mail-howto.xml
78
79 It is massive overkill - take it one step at a time and unless you're
80 running an ISP I wouldn't bother with mysql or anything like that.
81
82 Keep in mind that you don't REALLY need to run your own mail server, so
83 take your time and have fun with it. You'll learn a lot about SMTP in
84 the process. And don't open your mail server to the outside world until
85 you are sure it won't relay spam - or you WILL find yourself in this
86 position. There are a ton of open-relay test sites out there which will
87 let you test yourself out.
88
89 Good luck!
90 -----BEGIN PGP SIGNATURE-----
91 Version: GnuPG v1.4.5 (GNU/Linux)
92 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
93
94 iD8DBQFFKtlbG4/rWKZmVWkRAqrcAKCHPd34ANNcSM6PhtfdHD3cy8ApMgCfWf/G
95 S6Qt2Yg2holtIEygYt3+CDI=
96 =3RsF
97 -----END PGP SIGNATURE-----

Attachments

File name MIME type
smime.p7s application/x-pkcs7-signature

Replies

Subject Author
Re: [gentoo-amd64] Re: newcomer: David Guerizec <david@××××××××.net>