postfix + dovecot の設定

[環境]
さくらVPS
[IP]182.48.XX.YY
[ドメイン]test1.hoge.com

ユーザーのアドレスを追加

アドレスを設定
useradd -s /sbin/nologin suzuki
passwd suzuki
postfixの設定
yum install postfix
vi /etc/postfix/main.cf
-----------------------------------------------------
myhostname = test1.hoge.com (ホスト設定)
mydomain = test1.hoge.com (ドメイン設定)
myorigin = $mydomain (送信アドレス※@マーク以降)
inet_interface = all(初期設定ではインターネットからのメールが受信できないlocalhostはコメントアウト)
mydestination = $myhostname, localhost.$mydomain, localhost,$mydomain(自ホスト宛として保存するアドレスの@以降)
home_mailbox = Maildir/ (ホームディレクトリ)

smtpd_banner = $myhostname ESMTP unknown(サーバーソフト名の設定)

(サーバーソフト名の設定--下記を最終行に記述)
# SMTP-Auth configuration
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_recipient_restrictions =
    permit_mynetworks
    permit_sasl_authenticated
    reject_unauth_destination
# limit
message_size_limit = 10485760
----------------------------------------------------
認証デーモンを起動
/etc/rc.d/init.d/saslauthd start
chkconfig saslauthd on
chkconfig --list saslauthd
メールボックスの設定
mkdir -p /etc/skel/Maildir/{new,cur,tmp}
chmod -R 700 /etc/skel/Maildir/
sendmailを停止する
/etc/rc.d/init.d/sendmail stop
chkconfig sendmail off
メールサーバーの切替
alternatives --config mta
2のpostfixを選択
postfixの起動
/etc/rc.d/init.d/postfix start
chkconfig postfix on

devecotの設定

sudo yum install dovecot
vi /etc/dovecot.conf
設定を編集。pop3のみ
protocols = pop3
mail_location = maildir:~/Maildir

メールクライアントの設定 例)becky

メールアドレス:suzuki@test1.hoge.com
POP3サーバー:test1.hoge.com
SMPTサーバー:test1.hoge.com
ユーザーID:suzuki パスワード:*****

???不具合かと思ったらまず確認

受信できない場合(110番が空いているか確認)

telnet IP 110
netstat -lanput

postfixのメールディレクトリとdovecotのメールディレクトリが違う

main.cf
home_mailbox = Maildir/ (ホームディレクトリ)
dovecot.conf
mail_location = maildir:~/Maildir

作成したアカウントではなくrootのMaildirに行ってしまう

エイリアスの設定による
#vim /etc/aliases
postmaster: root  (postmaster >> root)