ある程度設定しておいたテンプレート用のメーリングリスト設定を mailman_keitai.template として出力しておき、
sudo -u mailman bin/newlist --urlhost=hoge.example.com -l ja ktai_hoge mimoriso@gmail.com ******** sudo -u mailman bin/config_list -i mailman_keitai.template ktai_hoge
という感じで、携帯メール転送環境を作成した。
転送に関する設定は、 <URL:http://example.com/.../admin/ktai_hoge/privacy/sender>(プライバシー・オプションの送信者フィルタ) または <URL:http://example.com/.../admin/ktai_hoge/privacy/recipient>(プライバシー・オプションの宛先フィルタ) に主に記載し、
という感じになる。 動作が定義されていない非会員からの投稿に対する動作は 承認 にしておいて、何かあったときでも送信側には迷惑がかからないように。 …という動作で大丈夫なようにSPAMフィルターの後段に転送を設定してある。
転送先である携帯電話のアドレスは会員として登録する。
今回の mailman_keitai.template はこんな感じ。
owner = [] moderator = [] info = '' subject_prefix = '' anonymous_list = False first_strip_reply_to = False reply_goes_to_list = 0 reply_to_address = '' umbrella_list = False umbrella_member_suffix = '-owner' send_reminders = 0 welcome_msg = '' send_welcome_msg = 0 goodbye_msg = '' send_goodbye_msg = 0 admin_immed_notify = True admin_notify_mchanges = 1 respond_to_post_requests = 0 emergency = 0 new_member_options = 258 administrivia = True max_message_size = 40 # host_name = 'hoge.example.com' include_rfc2369_headers = 1 include_list_post_header = 0 max_days_to_hold = 3 preferred_language = 'ja' available_languages = ['ja'] encode_ascii_prefixes = 2 nondigestable = True msg_header = '' msg_footer = '' scrub_nondigest = False digestable = True digest_is_default = False mime_is_default_digest = False digest_size_threshhold = 30 digest_send_periodic = True digest_header = '' digest_footer = """_______________________________________________ %(real_name)s mailing list %(real_name)s@%(host_name)s %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s""" digest_volume_frequency = 1 advertised = 0 subscribe_policy = 2 unsubscribe_policy = 0 ban_list = [] private_roster = 2 obscure_addresses = 1 default_member_moderation = 0 member_moderation_action = 0 member_moderation_notice = '' accept_these_nonmembers = [] hold_these_nonmembers = [] reject_these_nonmembers = [] discard_these_nonmembers = [] generic_nonmember_action = 0 forward_auto_discards = 1 nonmember_rejection_notice = '' require_explicit_destination = 1 max_num_recipients = 10 header_filter_rules = [] bounce_matching_headers = """ # Lines that *start* with a '#' are comments. to: friend@public.com message-id: relay.comanche.denmark.eu from: list@listme.com from: .*@uplinkpro.com""" bounce_processing = True bounce_score_threshold = 5.0 bounce_info_stale_after = 7 bounce_you_are_disabled_warnings = 3 bounce_you_are_disabled_warnings_interval = 7 bounce_unrecognized_goes_to_list_owner = 0 bounce_notify_owner_on_disable = True bounce_notify_owner_on_removal = True archive = 0 archive_private = 1 archive_volume_frequency = 1 nntp_host = '' linked_newsgroup = '' gateway_to_news = 0 gateway_to_mail = 0 news_moderation = 0 news_prefix_subject_too = 1 autorespond_postings = 0 autoresponse_postings_text = '' autorespond_admin = 0 autoresponse_admin_text = '' autorespond_requests = 0 autoresponse_request_text = '' autoresponse_graceperiod = 90 filter_content = 1 filter_mime_types = '' pass_mime_types = """multipart/mixed multipart/alternative text/plain""" filter_filename_extensions = """exe bat cmd com pif scr vbs cpl""" pass_filename_extensions = '' convert_html_to_plaintext = True filter_action = 0 topics_enabled = 0 topics_bodylines_limit = 5 topics = []
メーリングリスト運用を複数のドメインに分けてるのにhost_nameが残ったまま、異なるドメインの方に適用してしまって少しはまった。