wiki:TipAndDoc/network/mail

Version 17 (modified by mitty, 12 years ago) (diff)

--

open relay test

  • telnet localhost 25 「以外」のIPで繋いで(localhostからの転送を拒否している場合を除く)、以下のような例でメール送信できたらOpen relayになっているので注意
    HELO mitty.jp
    MAIL FROM: hoge@mitty.jp
    RCPT TO: fuga@example.org
    DATA
    From: hoge@mitty.jp
    Subject: test
    relay testmail
    .
    QUIT
    

dovecot

  • Ubuntu 12.04では2.0系になったため、設定ファイルの書き方が大きく変わっている
  • $ tail /etc/dovecot/dovecot.conf
    # Most of the actual configuration gets included below. The filenames are
    # first sorted by their ASCII value and parsed in that order. The 00-prefixes
    # in filenames are intended to make it easier to understand the ordering.
    !include conf.d/*.conf
    
    # A config file can also tried to be included without giving an error if
    # it's not found:
    !include_try local.conf
    
    • /etc/dovecot/local.conf にまとめて設定を記述すればよい(後から読み込まれた方が有効になる模様)

dovecot-postfix

  • Ubuntu 10.04
  • Depends: dovecot-common, dovecot-imapd, dovecot-pop3d, postfix
  • パッケージアップデートの際に以下のようにして設定ファイル(/etc/postfix/main.cf)が再生成されてしまうので注意
    Setting up dovecot-postfix (1:1.2.9-1ubuntu6.4) ...
    Configuring postfix for dovecot-postfix integration: .................... done.