0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

DDNS+postfix+dovecot 下での 落とし穴

Posted at
初めに

Rockylinux10 の更新に伴い、posfix と dovecot も再インストールしました。
その後 メールの送受信に必要なファイルの設定を行い、サーバーを起動したところ、外部への送信はできるものの受信が出来ません。(ネットワーク内での送受信はできています) そして数分後
外部の送信側の端末には Undelivered Mail REturned to SEnder という件名で
以下のような内容で返ってきます。(Postfix Dovecot の設定は問題ありません。)

Status: 4.4.1 ~
Diagnostic-Code: X-Postfix; connect to mail.*****.*****.jp[***.***.***.****]:25:
    Connection refused

あちこち検索してると、AI の回答の中で以下のような記述がありました。
これは、posfixが名前の解決ができていない、ということのようです。

postfixは /etc/resolv.confを参照せず、postfix用の設定ファイル/var/spool/postfix/etc/resolv.confを参照するためのようです。よって以下の手順で外部からの受信ができるようになりました。

1: /etc/resolv.confの内容を/var/spool/postfix/etc に resolv.conf をコピー
2: postfixを再起動

これで外部からの送受信もできるようになりました。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?