This is Gentoo's testing wiki. It is a non-operational environment and its textual content is outdated.
Please visit our production wiki at https://wiki.gentoo.org
完全な仮想メールサーバ
このガイドの目的は、複数のドメインと、いくつもの異なったインターフェースの選択肢とを取り扱うことのできる仮想メールシステムの確立です。これはメールクライアントを探している平均的なユーザーに使われることを想定したものではありません。これは自分のドメインをホストしていたり、仮想ドメインのサポートを提供したい個人のための、本物のメール転送エージェント(MTA)です。
このガイドを読み終える頃には、下記の機能をサポートしたメールサーバを管理する簡単なやり方が見えてくるでしょう:
- Web ベースのシステム管理
- 無制限のドメインの数
- シェルアカウント不要の仮想メールユーザ
- ドメインごとのユーザ名
- メールボックスのクォータ
- emailアカウントへの Web アクセス
- IMAP および(任意で)POP3 のサポート
- SMTP 認証によるセキュアなリレー
- SSL によるトランスポート層のセキュリティ
- 強力なスパムフィルタ
- アンチウイルスフィルタ
- ログ解析
本当に素晴らしいのは、これら全てを単一のデータベースで管理できるということです。
はじめに
System Setup and Packages
This section outlines a system setup (a multi-server implementation) as well as the core packages that were used. This is a MUST READ before reading on any further (don't worry, it's short).
Basic Setup
Linux 'vmail' user
メールボックスは通常のファイルシステム上に格納されるので、セキュリティのためにユーザとグループが必要です。
Admin Support Systems
www-apps/postfixadmin and www-servers/apache were key tools in getting through testing and getting this to hang together. While the details of an Apache/PHP setup are not here, there is good information in here all the same.
Linking Postfix to database backend
mail-mta/postfix will be coupled to a database backend allowing virtual users on multiple domains.
Linking Courier-imap to database backend
net-mail/courier-imap will be coupled to the same database.
Enhanced Setup
SMTP Authentication
Having a mailserver that relays local mail is good enough for most, being able to relay mail after authentication is extremely handy.
Web Access
Now that a basic mailserver has been setup, web access can be both useful and helpful during testing.
SSL Certificates
Securing the mail server with SSL certificates.
DKIM
Signing all outgoing messages with verification keys to prevent ending up in the junk box.
Refining the Setup
Using default Postfix configuration options, the server gets some performance tweaks and security settings.
Anti-Spam Measures
Amavisd, Spam-Assassin and ClamAV
Defending against spam using Amavis, Spam-assassin and ClamAV for virus protection.
Log Analyzer
Logging mail traffic with AWStats
Always important is monitoring. To do so AWStats is used to get a useful overview of passed messages.