qmail+fmlその2

[ Nob's Home | qmail ]

MLのカスタマイズ

MLをカスタマイズするには makefml config を行います
$ makefml config ydent
とすると、以下のようなmenuが現れます。

       <<< makefml --- FML Configuration Interface --- >>>

   === TOP MENU ===

   Mailing List Addresses
        FOR POST          ydent@y-min.or.jp
        FOR COMMAND       ydent-ctl@y-min.or.jp
   _______________________

   0    END
   1    POLICY OF ACCESS (WHO CAN POST AND USE COMMANDS)

        [POST]
          PERMIT_POST_FROM                 members_only
          WHEN POST FROM NOT MEMBER        reject

        [COMMAND]
          PERMIT_COMMAND_FROM              members_only
          WHEN COMMAND FROM NOT MEMBER     reject

   2    REGISTRATION METHOD TYPE

        AUTO_REGISTRATION_TYPE             confirmation
        UNSUBSCRIBE_AUTH_TYPE

   3    SETTINGS AROUND COMMANDS
              address for command          ydent-ctl@y-min.or.jp

   4    REMOTE ADMINISTRATION
                     PERMIT ?              NO
                     AUTH_TYPE             crypt

   5    HEADER CONFIGURATIONS

   6    OPTION

   7    SECURITY & FILTERING
   ************************************************************

   Which section? (0-7) [0]

遠隔管理を可能に

"4"を入力して
   REMOTE ADMINISTRATION
   Do you maintain the ML in remote? NO

   0   END
   1   REMOTE ADMINISTRATION              NO
   2   REMOTE_ADMINISTRATION_AUTH_TYPE    crypt
   3   ADMIN_ADD_SEND_WELCOME_FILE        NO
   ************************************************************

      which (0-3) [0] 1

   Do you maintenance the ML in remote?
   ************************************************************

         Do you maintain in remote? (y/n) [n] y

   REMOTE ADMINISTRATION
   Do you maintain the ML in remote? YES

   0   END
   1   REMOTE ADMINISTRATION              YES
   2   REMOTE_ADMINISTRATION_AUTH_TYPE    crypt
   3   ADMIN_ADD_SEND_WELCOME_FILE        NO
   ************************************************************

      which (0-3) [0] 0
で戻ります。

ヘッダのカスタマイズ

"5"を入力して
        <<< makefml --- FML Configuration Interface --- >>>

   0    END

   * Subject: TAG
   1    SUBJECT_TAG_TYPE
   2    SUBJECT_TAG_FIGURE

   * To:
   3    REWRITE_TO                         To: is original (pass through)

   * Date:
   4    DATE_TYPE                          original-date


   5    PASS_ALL_FIELDS                    YES
   6    PASS_RECEIVED_THROUGH              NO
   ************************************************************

      which type (0-6) [0] 1 (SubjectにMLの名前を入れる)

   SUBJECT_TAG_TYPE

   0    END

   TYPE    Subject Example
   ----------------------------
   1       Subject: NO TAG (Default, Fml recommends)

   2       Subject: (Elena:00100)

   3       Subject: [Elena:00100]    (hml 1.6 compat)

   4       Subject: (Elena 00100)

   5       Subject: [Elena 00100]

   6       Subject: (Elena,00100)

   7       Subject: [Elena,00100]

   8       Subject: (Elena)

   9       Subject: [Elena]

   10      Subject: (00100)

   11      Subject: [00100]
   ************************************************************
  
	SUBJECT TAG TYPE (0-11) [0] 2

その他のcustomize

config.phの最後の1;の前に追加します。
いつも設定するときは、cfの最後に追加しておきます。

  • Multipartのtext部分だけを流すには
    &ADD_CONTENT_HANDLER('multipart/.*', 'text/plain',   'allow');
    
  • Referenceを付けないタコなmailer対策
    $AGAINST_MAIL_WITHOUT_REFERENCE = 1;
    
  • 危険は承知のうえでReply-Toをつける
    &DEFINE_FIELD_FORCED('Reply-To', ml_name¥@y-min.or.jp");
    
  • 100通ずつのarchiveを作成する
    $USE_ARCHIVE = 1;
    
    /usr/local/fml/bin/Archive.shで
    (cd /usr/local/lists/ymin;    /usr/local/bin/perl /usr/local/fml/bin/Archive.pl)
    
    を登録します。
    毎日午前4時に実行させるには、crontab -eで
    0 4 * * * /bin/sh /usr/local/fml/bin/archive.sh
    
    を登録します。

  • [ Nob's Home | qmail ]
    nob@makioka.y-min.or.jp