Changes between Version 13 and Version 14 of TipAndDoc/network/mail


Ignore:
Timestamp:
May 4, 2011 5:37:12 PM (13 years ago)
Author:
mitty
Comment:

moved to Postfix

Legend:

Unmodified
Added
Removed
Modified
  • TipAndDoc/network/mail

    v13 v14  
    1515 * https://fabicon.ru/tech/telco/e-mail/Ubuntu+Postfix+Dovecot+Clamav+Spamassasin-brief.php 
    1616 
    17  = Postfix = 
    18  * [http://www.postfix-jp.info/ML/arc.3/msg00155.html (postfix-jp:02156) 全メールのバックアップ] 
    19  * [http://www.postfix-jp.info/ML/arc.2/msg00387.html (postfix-jp:01388) 再送のタイミングはどうやって決めるのでしょうか?] 
    20  * http://www.asi.co.jp/techinfo/unix/postfix.html 
    21  * [http://www.postfix-jp.info/ML/arc-2.1/msg00424.html (postfix-jp: 425) Virtual環境での .forward が有効になりません] 
    22  > virtual(8) 
    23  > >        This  delivery  agent  only delivers mail.  Other features such as mail 
    24  > >        forwarding, out-of-office notifications, etc., must be  configured  via 
    25  > >        virtual_alias maps or via similar lookup mechanisms. 
    26  >  
    27  > ということなので、自分はvirtual_alias_mapsでPostgreSQLに問い合わせるよう 
    28  > にしています。また、virtualはコマンドやファイルへの配送もサポートしませ 
    29  > ん。 
    30  * [http://tmtm.org/postfix/tutorial/virtual.html Postfix チュートリアル - バーチャルドメイン] 
    31  * [http://satospo.sakura.ne.jp/blog_archives/tech/linux_server/postfix_tips2.html Postfixでのメールサーバ運用Tips - satospo] 
    32  > * ログの冗長モード 
    33  > * qshape 
    34  > * PostfixのQueueLifeTime 
    35  > * メールのサイズ制限 
    36  > * anvilのログ 
    37  > * Postfixの統計情報 
    38  > * anvilの出力調整 
    39  > * 配送遅延 
    40  > * 逆引きできない送信元を拒否する 
    41  > * キューの削除 
    42  > * 全てのキューの削除 
    43  
    44  * http://www.postfix-jp.info/docs.html 
    45  * http://www.postfix-jp.info/jhtml/ 
    46   * 目的別の設定項目を知りたい際はこちらが良さそう 
    47   * ex) [http://www.postfix-jp.info/jhtml/rate.html Postfix 速度制御] 
    48  * [http://www.postfix-jp.info/ML/arc.1/msg00258.html (postfix-jp:259) Re: IPv6 on Postfix] 
    49  > > mynetworks = IPv4 アドレスブロック, [::1]/128, [IPv6 NLA2ブロック::]/48 
    50   * localhostのみから受け付けるときは以下の通り 
    51 {{{ 
    52 mynetworks = 127.0.0.0/8, [::1]/128 
    53 }}} 
    54  
    55  == backup server == 
    56  * MXを複数記述しておき、メインのSMTPdが死んでいるときにメールを貯めておく 
    57  
    58  * [http://www.akadia.com/services/postfix_mx_backup.html Configuring Postfix as backup MX host] 
    59  
    60  * ex) 
    61   * mail2.mitty.jp:/etc/postfix/main.cf (backup server) 
    62 {{{ 
    63 (snip) 
    64  
    65 relay_domains = /etc/postfix/relay_domains 
    66 relay_transport = smtp:mail1.mitty.jp 
    67 }}} 
    68   * /etc/postfix/relay_domains 
    69 {{{ 
    70 mitty.jp 
    71 test.mitty.jp 
    72  
    73 (snip) 
    74 }}} 
    75  
    76  * 「relayhost」を使うと、外向きの転送が全て「relayhost」を通るように指定されるため、open relayとして拒否される 
    77 {{{ 
    78 Apr 30 06:32:00 www27070u postfix/pickup[8562]: 83C8C40DC5D2: uid=1000 from=<mitty> 
    79 Apr 30 06:32:00 www27070u postfix/cleanup[8703]: 83C8C40DC5D2: message-id=<20110429213200.83C8C40DC5D2(*)www27070u.sakura.ne.jp> 
    80 Apr 30 06:32:00 www27070u postfix/qmgr[8563]: 83C8C40DC5D2: from=<mitty(*)www27070u.mitty.jp>, size=465, nrcpt=1 (queue active) 
    81 Apr 30 06:32:00 www27070u postfix/smtp[8706]: 83C8C40DC5D2: to=<s0711489(*)coins.tsukuba.ac.jp>, relay=www5085u.mitty.jp[59.106.180.123]:25, delay=0.14, delays=0.02/0.01/0.05/0.06, dsn=5.7.1, status=bounced (host www5085u.mitty.jp[59.106.180.123] said: 554 5.7.1 <s0711489(*)coins.tsukuba.ac.jp>: Relay access denied (in reply to RCPT TO command)) 
    82 }}} 
    83   * local MTAでの外への送信も出来なくなるので注意 
    84  
    8517 = open relay test = 
    8618 * telnet localhost 25 「以外」のIPで繋いで(localhostからの転送を拒否している場合を除く)、以下のような例でメール送信できたらOpen relayになっているので注意