メールサーバー設定 · 9 min read · Oct 09, 2025
2台のサーバーでXenを実行する完璧な負荷分散および高可用性Webクラスター - ページ5
11. メールサーバー (web1, web2)
11.1 Postfix, Courier, Saslauthd, MySQL, phpMyAdminのインストール
Postfix, Courier, Saslauthd, MySQL, phpMyAdminをインストールします:
apt-get install postfix postfix-mysql postfix-doc courier-authdaemon courier-authlib-mysql courier-pop courier-pop-ssl courier-imap courier-imap-ssl libsasl2-2 libsasl2-modules libsasl2-modules-sql sasl2-bin libpam-mysql openssl phpmyadmin libpam-smbpass
いくつかの質問が表示されます:
Webベースの管理用のディレクトリを作成しますか? <– いいえ
メール構成の一般的なタイプ: <– インターネットサイト
システムメール名: <– web1.example.com (または web2.example.com)
SSL証明書が必要ですか <– はい
自動的に再構成するWebサーバー: <– apache2
11.2 Postfixの設定
次に、Postfixにデータベース内のすべての情報を見つける場所を教える必要があります。したがって、6つのテキストファイルを作成する必要があります。Postfixにlocalhostの代わりにIPアドレス127.0.0.1でMySQLに接続するように指示していることに気付くでしょう。これは、Postfixがchrootジャイル内で実行されており、localhostを使用するように指示した場合に接続しようとするMySQLソケットにアクセスできないためです。127.0.0.1を使用すると、PostfixはTCPネットワークを使用してMySQLに接続しますが、これはchrootジャイル内でも問題ありません(代替手段はMySQLソケットをchrootジャイルに移動することですが、他の問題を引き起こします)。
では、6つのテキストファイルを作成しましょう。
vi /etc/postfix/mysql-virtual_domains.cf
user = mail_admin
password = mail_admin_password
dbname = mail
query = SELECT domain AS virtual FROM domains WHERE domain='%s'
hosts = 127.0.0.1vi /etc/postfix/mysql-virtual_forwardings.cf
user = mail_admin
password = mail_admin_password
dbname = mail
query = SELECT destination FROM forwardings WHERE source='%s'
hosts = 127.0.0.1vi /etc/postfix/mysql-virtual_mailboxes.cf
user = mail_admin
password = mail_admin_password
dbname = mail
query = SELECT CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/') FROM users WHERE email='%s'
hosts = 127.0.0.1vi /etc/postfix/mysql-virtual_email2email.cf
user = mail_admin
password = mail_admin_password
dbname = mail
query = SELECT email FROM users WHERE email='%s'
hosts = 127.0.0.1vi /etc/postfix/mysql-virtual_transports.cf
user = mail_admin
password = mail_admin_password
dbname = mail
query = SELECT transport FROM transport WHERE domain='%s'
hosts = 127.0.0.1vi /etc/postfix/mysql-virtual_transports_notactive.cf
user = mail_admin
password = mail_admin_password
dbname = mail
query = SELECT transport FROM domains WHERE domain='%s'
hosts = 127.0.0.1次に、これらのファイルの権限とグループを変更します:
chmod o= /etc/postfix/mysql-virtual*.cf
chgrp postfix /etc/postfix/mysql-virtual*.cf
次に、/home/vmailというホームディレクトリを持つvmailというユーザーとグループを作成します。ここにすべてのメールボックスが保存されます。
groupadd -g 5000 vmail
useradd -g vmail -u 5000 vmail -d /home/vmail -m
passwd vmail
次に、Postfixの設定をいくつか行います。
web2.example.comで正しい’myhostname’と’mydestination’を設定してください:
postconf -e ‘myhostname = web1.example.com’
postconf -e ‘mydestination = web1.example.com, localhost, localhost.localdomain’
postconf -e ‘mynetworks = 127.0.0.0/8’
postconf -e ‘virtual_alias_domains =’
postconf -e ‘virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf’
postconf -e ‘virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf’
postconf -e ‘virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf’
postconf -e ‘virtual_mailbox_base = /home/vmail’
postconf -e ‘virtual_uid_maps = static:5000’
postconf -e ‘virtual_gid_maps = static:5000’
postconf -e ‘smtpd_sasl_auth_enable = yes’
postconf -e ‘broken_sasl_auth_clients = yes’
postconf -e ‘smtpd_sasl_authenticated_header = yes’
postconf -e ‘smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination’
postconf -e ‘smtpd_use_tls = yes’
postconf -e ‘smtpd_tls_cert_file = /etc/postfix/smtpd.cert’
postconf -e ‘smtpd_tls_key_file = /etc/postfix/smtpd.key’
postconf -e ‘transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf’
postconf -e ‘virtual_create_maildirsize = yes’
postconf -e ‘virtual_mailbox_extended = yes’
postconf -e ‘proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks’
その後、TLSに必要なSSL証明書を作成します:
cd /etc/postfix
openssl req -new -outform PEM -out smtpd.cert -newkey rsa:2048 -nodes -keyout smtpd.key -keyform PEM -days 365 -x509
国名(2文字コード) [AU]: <– あなたの国名を入力してください(例:「DE」)。
州または県名(正式名称) [Some-State]: <– あなたの州または県名を入力してください。
地方名(例:市) []: <– あなたの市を入力してください。
組織名(例:会社) [Internet Widgits Pty Ltd]: <– あなたの組織名を入力してください(例:会社名)。
組織単位名(例:部門) []: <– あなたの組織単位名を入力してください(例:「IT部門」)。
共通名(例:あなたの名前) []: <– システムの完全修飾ドメイン名を入力してください(例:「server1.example.com」)。
メールアドレス []: <– あなたのメールアドレスを入力してください。
次に、smtpd.keyの権限を変更します:
chmod o= /etc/postfix/smtpd.key
11.3 web2.example.comのローカルメール問題の解決
ldirectordを設定するとき、web1.example.comのみがSMTP(ポート25)用にアクティブになります。2台目のサーバーは待機状態になり、web1.example.comでPostfixが失敗した場合にのみアクティブな役割を引き受けます。
これを行う理由は、両方のサーバーがポート25でアクティブな場合、外部からのメールの半分がweb1に、もう半分がweb2に送信されるためです。同期するのは悪夢です…
これは外部からのメールには問題ありませんが、web2.example.comのローカルメールはローカルに配信されます。言い換えれば、あなたのウェブサイトに「お問い合わせ」フォームがあり、訪問者がweb2.example.comにいる場合、メールはすべてのメールが送信されるべきweb1.example.comには届きません。これは、web2.example.comから例えば[email protected]にメールが送信されると、DNSサーバーにexample.comのメールサーバーアドレスを尋ね、192.168.1.106という回答を得て、自分自身を指すため、メールはサーバーを離れないためです。
トリックは、Postfixトランスポートを使用してローカルメールをweb1.example.comに送信することです。
これを実現するために、毎分実行されるbashスクリプトを使用して、ローカルメールをweb1.example.comに送信します:
web2.example.com
vi /root/check_smtp
#!/bin/bash
# 負荷分散のためのローカルメール修正
# Copyright (c) 2008 blogama.org
# このスクリプトはGNU GPLバージョン2.0以上の下でライセンスされています
# ---------------------------------------------------------------------
### このスクリプトの目的は、負荷分散によるローカルメールの問題を修正することです ###
### 誰かがこのスクリプトをsed(醜い)ではなくpostconf -eで動作させることができるなら、私に知らせてください。私にはうまくいきませんでした
### 修正する必要があります ###
MASTERSERVER="web1.example.com"
###### 以下の修正は行わないでください ######
### バイナリ ###
MAIL=$(which mail)
TELNET=$(which telnet)
#これ
POSTCONF="/etc/postfix/main.cf"
### サーバー1がsmtpで応答しているか確認します ###
(
echo "quit"
) | $TELNET $MASTERSERVER 25 | grep Connected > /dev/null 2>&1
if [ "$?" -ne "1" ]; then
### 前の試行でweb1が接続できなかったが、今は接続できる場合、web2はすべてのローカルメールをweb1に転送します ###
if [ -f smtpactive ]; then
sed -i 's/transport_maps = .*/transport_maps = proxy:mysql:\/etc\/postfix\/mysql-virtual_transports_notactive.cf/' $POSTCONF
/etc/init.d/postfix restart
rm /root/smtpactive
### 前の試行でweb1が接続できていて、今も接続できる場合、何もしないで終了します ###
else
exit 1;
fi
else
### 前の試行でweb1が接続できなかったが、今も接続できない場合、web2はすでにローカルメール用にアクティブです。何もしないで終了します ###
cd /root
if [ -f smtpactive ]; then
exit 1;
fi
### 前の試行でweb1が接続できていたが、今は接続できない場合、web2はローカルメールのアクティブな役割を引き受けます ###
echo "SMTP active on web2" > /root/smtpactive
sed -i 's/transport_maps = .*/transport_maps = proxy:mysql:\/etc\/postfix\/mysql-virtual_transports.cf/' $POSTCONF
/etc/init.d/postfix restart
fichmod +x /root/check_smtp
次に、次のようにしてすべてのローカルメールをweb1.example.comに転送します:
postconf -e ‘transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports_notactive.cf
/etc/init.d/postfix restart
そして、スクリプトをcrontabに追加します:
crontab -e
[...]
* * * * * /root/check_smtp >/dev/null 2>&1
[...] 11.4 Saslauthdの設定
mkdir -p /var/spool/postfix/var/run/saslauthd
次に、/etc/default/saslauthdを編集します。STARTをyesに設定し、OPTIONS=”-c -m /var/run/saslauthd”の行をOPTIONS=”-c -m /var/spool/postfix/var/run/saslauthd -r”に変更します:
vi /etc/default/saslauthd
#
# saslauthdデーモンの設定
# 詳細については/usr/share/doc/sasl2-bin/README.Debianをお読みください。
#
# saslauthdは自動的に起動しますか?(デフォルト:いいえ)
START=yes
# このsaslauthdインスタンスの説明。推奨されます。
#(提案:SASL認証デーモン)
DESC="SASL認証デーモン"
# このsaslauthdインスタンスの短い名前。強く推奨されます。
#(提案:saslauthd)
NAME="saslauthd"
# saslauthdが使用する認証メカニズムは何ですか?(デフォルト:pam)
#
# このDebianパッケージで利用可能なオプション:
# getpwent -- getpwent()ライブラリ関数を使用
# kerberos5 -- Kerberos 5を使用
# pam -- PAMを使用
# rimap -- リモートIMAPサーバーを使用
# shadow -- ローカルシャドウパスワードファイルを使用
# sasldb -- ローカルsasldbデータベースファイルを使用
# ldap -- LDAPを使用(設定は/etc/saslauthd.confにあります)
#
# 一度に1つのオプションのみを使用できます。詳細についてはsaslauthdマニュアルページを参照してください。
#
# 例:MECHANISMS="pam"
MECHANISMS="pam"
# このメカニズムの追加オプション。(デフォルト:なし)
# メカニズム固有のオプションについてはsaslauthdマニュアルページを参照してください。
MECH_OPTIONS=""
# saslauthdプロセスをいくつ実行しますか?(デフォルト:5)
# 0の値は、各接続のために新しいプロセスをフォークします。
THREADS=5
# その他のオプション(デフォルト:-c -m /var/run/saslauthd)
# 注:-mオプションを指定しないとsaslauthdは実行されません!
#
# /usr/share/doc/sasl2-bin/README.DebianのDebian特有の情報を参照してください。
# saslauthdマニュアルページの一般的な情報を参照してください。
#
# Postfixユーザーの例:"-c -m /var/spool/postfix/var/run/saslauthd"
#OPTIONS="-c -m /var/run/saslauthd"
OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd -r"次に、/etc/pam.d/smtpというファイルを作成します。以下の2行のみを含める必要があります(正しいデータベースの詳細を入力してください):
vi /etc/pam.d/smtp
auth required pam_mysql.so user=mail_admin passwd=mail_admin_password host=127.0.0.1 db=mail table=users usercolumn=email passwdcolumn=password crypt=1
account sufficient pam_mysql.so user=mail_admin passwd=mail_admin_password host=127.0.0.1 db=mail table=users usercolumn=email passwdcolumn=password crypt=1次に、/etc/postfix/sasl/smtpd.confというファイルを作成します。以下のようになります:
vi /etc/postfix/sasl/smtpd.conf
pwcheck_method: saslauthd
mech_list: plain login
allow_plaintext: true
auxprop_plugin: mysql
sql_hostnames: 127.0.0.1
sql_user: mail_admin
sql_passwd: mail_admin_password
sql_database: mail
sql_select: select password from users where email = '%u'次に、Postfixユーザーをsaslグループに追加します(これにより、Postfixがsaslauthdにアクセスする権限を持つことが保証されます):
adduser postfix sasl
次に、PostfixとSaslauthdを再起動します:
/etc/init.d/postfix restart
/etc/init.d/saslauthd restart
11.5 Courierの設定
次に、CourierにMySQLデータベースに対して認証するように指示する必要があります。まず、/etc/courier/authdaemonrcを編集し、authmodulelistの値を次のように変更します:
vi /etc/courier/authdaemonrc
[...]
authmodulelist="authmysql"
[...]次に、/etc/courier/authmysqlrcのバックアップを作成し、古いファイルを空にします:
cp /etc/courier/authmysqlrc /etc/courier/authmysqlrc_orig
cat /dev/null > /etc/courier/authmysqlrc
次に、/etc/courier/authmysqlrcを開き、以下の行を追加します:
vi /etc/courier/authmysqlrc
MYSQL_SERVER localhost
MYSQL_USERNAME mail_admin
MYSQL_PASSWORD mail_admin_password
MYSQL_PORT 0
MYSQL_DATABASE mail
MYSQL_USER_TABLE users
MYSQL_CRYPT_PWFIELD password
#MYSQL_CLEAR_PWFIELD password
MYSQL_UID_FIELD 5000
MYSQL_GID_FIELD 5000
MYSQL_LOGIN_FIELD email
MYSQL_HOME_FIELD "/home/vmail"
MYSQL_MAILDIR_FIELD CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/')
#MYSQL_NAME_FIELD
#MYSQL_QUOTA_FIELD quota次に、Courierを再起動します:
/etc/init.d/courier-authdaemon restart
/etc/init.d/courier-imap restart
/etc/init.d/courier-imap-ssl restart
/etc/init.d/courier-pop restart
/etc/init.d/courier-pop-ssl restart
次に、 telnet localhost pop3
を実行して、POP3サーバーが正しく動作しているか確認できます。+OK Hello there.と返されるはずです。(quitと入力してLinuxシェルに戻ります。)
root@server1:/etc/postfix# telnet localhost pop3
Trying 127.0.0.1…
Connected to localhost.localdomain.
Escape character is ‘^]’.
+OK Hello there.
quit
+OK Better luck next time.
Connection closed by foreign host.
11.6 /etc/aliasesの修正
次に、/etc/aliasesを開く必要があります。postmasterがrootを指し、rootがあなたのユーザー名またはメールアドレスを指すことを確認してください。例えば、次のようにします:
vi /etc/aliases
[...]
postmaster: root
root: [email protected]
[...]/etc/aliasesを変更するたびに、次を実行する必要があります:
newaliases
その後、Postfixを再起動します:
/etc/init.d/postfix restart
11.7 Spamassassin
次に、Spamassassinをインストールします:
apt-get install spamassassin spamc
非rootとして実行するようにしたいので、spamdユーザーとグループを追加します:
groupadd spamd
useradd -g spamd -s /bin/false -d /var/log/spamassassin spamd
mkdir /var/log/spamassassin
chown spamd:spamd /var/log/spamassassin
/etc/default/spamassassinを編集して、これらのオプションを設定します:
vi /etc/default/spamassassin
# /etc/default/spamassassin
# Duncan Findlay
# 警告:使用する前にREADME.spamdをお読みください。
# セキュリティリスクがあるかもしれません。
# spamdを有効にするには1に変更します
ENABLED=1
# オプション
# man spamdを参照して可能なオプションを確認してください。-dオプションは自動的に追加されます。
# SpamAssassinはプリフォークモデルを使用するため、注意が必要です!
# --max-childrenが5より大きく設定されていないことを確認する必要があります。
# そうでないと、問題が発生します。
#OPTIONS="--create-prefs --max-children 5 --helper-home-dir"
SAHOME="/var/log/spamassassin/"
OPTIONS="--create-prefs --max-children 5 --username spamd -H ${SAHOME} -s ${SAHOME}spamd.log"
# Pidファイル
# spamdはPIDをどこに書き込むべきですか?上記の-uまたは--usernameオプションを使用する場合、これにはそのユーザーが書き込み可能である必要があります。
# そうでないと、initスクリプトはspamdをシャットダウンできません。
# PIDFILE="/var/run/spamd.pid"
# spamdのniceレベルを設定します
#NICE="--nicelevel 15"
# Cronジョブ
# spamassassinのルールを毎晩自動的に更新するために0以外に設定します
CRON=0spamassassinデーモンを起動します:
/etc/init.d/spamassassin start
次に、次のようにしてPostfixにspamassassinを追加します:
vi /etc/postfix/master.cf
設定ファイルの最初の行を次のように編集します:
smtp inet n - - - - smtpd -o content_filter=spamassassinそして、ファイルの最後にこれを追加します:
spamassassin unix - n n - - pipe
user=spamd argv=/usr/bin/spamc -f -e
/usr/sbin/sendmail -oi -f ${sender} ${recipient}11.8 Postfixのテスト
PostfixがSMTP-AUTHおよびTLSの準備ができているか確認するには、次を実行します:
telnet localhost 25
Postfixメールサーバーへの接続が確立されたら、次を入力します:
ehlo localhost
250-STARTTLSおよび250-AUTH LOGIN PLAINの行が表示されれば、すべて正常です。
次に、quitと入力してシェルに戻ります。
11.9 データベースの初期化
どちらか一方のサーバーで(両方ではありません!):
mysql -u root -p
USE mail;
INSERT INTO domains (domain) VALUES (‘example.com’);
INSERT INTO users (email, password) VALUES (‘ [email protected] ‘, ENCRYPT(‘secret’));
quit;
パスワードにはMYSQL ENCRYPT関数を使用することを決して忘れないでください!
11.10 Maildir作成のためのウェルカムメールを送信
新しいメールアカウントを作成し、そこからメールを取得しようとすると(POP3/IMAPで)、Maildirが存在しないというエラーメッセージが表示される可能性があります。Maildirは、新しいアカウントに最初のメールが届いたときに自動的に作成されます。したがって、新しいアカウントにウェルカムメールを送信するのは良いアイデアです。
まず、mailxパッケージをインストールします:
apt-get install mailx
[email protected]にウェルカムメールを送信するには、次のようにします:
mailx [email protected]
件名を入力するように求められます。件名を入力し(例:ウェルカム)、ENTERを押し、次の行にメッセージを入力します。メッセージが完了したら、再度ENTERを押して新しい行に移動し、CTRL+Dを押します。メールをCCしたくない場合は、再度ENTERを押します:
root@server1:/usr/local/sbin# mailx [email protected] Subject: Welcome <– ENTER Welcome! Have fun with your new mail account. <– ENTER <– CTRL+D Cc: <– ENTER
11.11 SquirrelMailのインストール
SquirrelMailは、ユーザーがブラウザでメールを送受信できるようにするWebメールインターフェースです。この章では、SquirrelMailをインストールし、ユーザーがSquirrelMailインターフェースからメールアカウントのパスワードを変更できるように設定する方法を示します。
SquirrelMailをインストールするには、次のコマンドを実行します:
apt-get install squirrelmail php-pear
次に、SquirrelMailパッケージに付属のApache設定を/etc/apache2/conf.dディレクトリにコピーし、Apacheを再起動します:
cp /etc/squirrelmail/apache.conf /etc/apache2/conf.d/squirrelmail.conf
/etc/init.d/apache2 restart
SquirrelMailにはいくつかのプラグインがプリインストールされていますが、残念ながらどれもMySQLデータベース内のメールパスワードを変更することはできません。しかし、手動でインストールできるChange SQL Passwordプラグインがあります:
このプラグインはPear-DBパッケージに依存しているため、次のようにインストールします:
pear install DB
次に、Change SQL Passwordプラグイン自体をインストールします:
cd /usr/share/squirrelmail/plugins
wget http://www.squirrelmail.org/countdl.php?fileurl=http%3A%2F%2Fwww.squirrelmail.org%2Fplugins%2Fchange_sqlpass-3.3-1.2.tar.gz
tar xvfz change_sqlpass-3.3-1.2.tar.gz
cd change_sqlpass
cp config.php.sample config.php
次に、config.phpを編集して、設定に合わせて調整する必要があります。$csp_dsn、$lookup_password_query、$password_update_queries、$password_encryption、$csp_salt_static、および$csp_delimiter変数を次のように調整し、$csp_salt_queryをコメントアウトします:
mv /usr/share/squirrelmail/plugins/change_sqlpass/config.php /usr/share/squirrelmail/plugins/change_sqlpass/config.php.bak
vi /usr/share/squirrelmail/plugins/change_sqlpass/config.php
そして、これをコピー&ペーストします:
変更された行は次のとおりです:
[...]
$csp_dsn = 'mysql://mail_admin:mail_admin_password@localhost/mail';
[...]
$lookup_password_query = 'SELECT count(*) FROM users WHERE email = "%1" AND password = %4';
[...]
$password_update_queries = array('UPDATE users SET password = %4 WHERE email = "%1"');
[...]
$password_encryption = 'MYSQLENCRYPT';
[...]
$csp_salt_static = 'LEFT(password, 2)';
[...]
//$csp_salt_query = 'SELECT salt FROM users WHERE username = "%1"';
[...]
$csp_delimiter = '@';
[...] Change SQL PasswordプラグインはCompatibilityプラグインにも依存しているため、次のようにインストールします:
cd /usr/share/squirrelmail/plugins
wget http://www.squirrelmail.org/countdl.php?fileurl=http%3A%2F%2Fwww.squirrelmail.org%2Fplugins%2Fcompatibility-2.0.11-1.0.tar.gz
tar xvfz compatibility-2.0.11-1.0.tar.gz
次に、SquirrelMailの設定に移動し、SquirrelMailにCourierをPOP3およびIMAPサーバーとして使用するように指示し、Change SQL PasswordおよびCompatibilityプラグインを有効にします:
/usr/sbin/squirrelmail-configure
次のメニューが表示されます。指示に従ってナビゲートします:
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Main Menu --
1. Organization Preferences
2. Server Settings
3. Folder Defaults
4. General Options
5. Themes
6. Address Books
7. Message of the Day (MOTD)
8. Plugins
9. Database
10. Languages
D. Set pre-defined settings for specific IMAP servers
C Turn color on
S Save data
Q Quit
Command >> <-- DSquirrelMail Configuration : Read: config.php
---------------------------------------------------------
SquirrelMail Configuration : Read: config.php
---------------------------------------------------------
While we have been building SquirrelMail, we have discovered some
preferences that work better with some servers that don't work so
well with others. If you select your IMAP server, this option will
set some pre-defined settings for that server.
Please note that you will still need to go through and make sure
everything is correct. This does not change everything. There are
only a few settings that this will change.
Please select your IMAP server:
bincimap = Binc IMAP server
courier = Courier IMAP server
cyrus = Cyrus IMAP server
dovecot = Dovecot Secure IMAP server
exchange = Microsoft Exchange IMAP server
hmailserver = hMailServer
macosx = Mac OS X Mailserver
mercury32 = Mercury/32
uw = University of Washington's IMAP server
quit = Do not change anything
Command >> <-- courier imap_server_type = courier
default_folder_prefix = INBOX.
trash_folder = Trash
sent_folder = Sent
draft_folder = Drafts
show_prefix_option = false
default_sub_of_inbox = false
show_contain_subfolders_option = false
optional_delimiter = .
delete_folder = true
Press any key to continue... <-- press some key SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Main Menu --
1. Organization Preferences
2. Server Settings
3. Folder Defaults
4. General Options
5. Themes
6. Address Books
7. Message of the Day (MOTD)
8. Plugins
9. Database
10. Languages
D. Set pre-defined settings for specific IMAP servers
C Turn color on
S Save data
Q Quit
Command >> <-- 8SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Plugins
Installed Plugins
Available Plugins:
1. abook_take
2. administrator
3. bug_report
4. calendar
5. change_sqlpass
6. compatibility
7. delete_move_next
8. demo
9. filters
10. fortune
11. info
12. listcommands
13. mail_fetch
14. message_details
15. newmail
16. sent_subfolders
17. spamcop
18. squirrelspell
19. test
20. translate
R Return to Main Menu
C Turn color on
S Save data
Q Quit
Command >> <-- 6 (or whatever number the compatibility plugin has - it's needed by the change_sqlpass plugin)SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Plugins
Installed Plugins
1. compatibility
Available Plugins:
2. abook_take
3. administrator
4. bug_report
5. calendar
6. change_sqlpass
7. delete_move_next
8. demo
9. filters
10. fortune
11. info
12. listcommands
13. mail_fetch
14. message_details
15. newmail
16. sent_subfolders
17. spamcop
18. squirrelspell
19. test
20. translate
R Return to Main Menu
C Turn color on
S Save data
Q Quit
Command >> <-- 6 (the number of the change_sqlpass plugin)SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Plugins
Installed Plugins
1. compatibility
2. change_sqlpass
Available Plugins:
3. abook_take
4. administrator
5. bug_report
6. calendar
7. delete_move_next
8. demo
9. filters
10. fortune
11. info
12. listcommands
13. mail_fetch
14. message_details
15. newmail
16. sent_subfolders
17. spamcop
18. squirrelspell
19. test
20. translate
R Return to Main Menu
C Turn color on
S Save data
Q Quit
Command >> <-- Qこれで、ブラウザでhttp://192.168.1.104/squirrelmailにアクセスしてSquirrelMailにログインできます。
メールアドレス(例:[email protected])とパスワードでログインします。 パスワードはOptions –> Change Passwordで変更できます。
新しい投稿を受信箱で受け取る
スパムはありません。いつでも購読を解除できます。