LoginSignup
6
3

More than 5 years have passed since last update.

postfix で構築したサーバでsupport@ のメールが受信できない

Last updated at Posted at 2016-12-23

環境

centos7

cat /etc/redhat-release 
CentOS Linux release 7.3.1611 (Core)

メールサーバ構築support@example.comへのメールが受信できないと連絡があったので調査

調査

他のユーザからsupport宛にメール送信しログ確認

journalctl -xafu postfix
to=<root@example.com>, orig_to=<support@example.com>, relay=local, delay=0.02, delays=0/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to maildir)

メール送信はdsn=2.0.0で成功してるんだが?

ちょっと待てroot宛に送ってるじゃないか!
いろいろ調べた結果/etc/aliasesの記載でsupportがrootに紐づけられているじゃないか
support -> postmaster -> root
てことね

cat /etc/aliases
.
.
.
postmaster: root

support : postmaster

なので

cat /etc/aliases
.
.
.
postmaster: root

#support : postmaster

コメントアウトしてあげれば良い

あとはpostfixをリスタートして完了

systemctl restart postfix

無事メールがsupportのディレクトリに格納されました

6
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
3