Postfix
Mailman 從 mylist-bounce 地址發送列表電子郵件
我以兩種不同的方式為郵遞員配置了後綴,並且在這兩種方式中,當我向列表發送電子郵件時(例如:mylist@lists.example.com),所有訂閱者都會收到來自“ mylist-bounces@mylists的電子郵件.example.com ”。我不知道為什麼發件人地址中有“ -bounces ”,所以我設置了一個“Reply-To”標題,以便回復到列表電子郵件(而不是 -bounces),但我想知道我做錯了什麼。
從有效訂閱者向列表發送電子郵件,以正確接收電子郵件結束,但來自 mylist-bounces@,而不是來自 mylist@:
Jan 13 09:56:09 server postfix/qmgr[17951]: C694C20A2EEE: from=<user@example.com>, size=2299, nrcpt=1 (queue active) Jan 13 09:56:10 server postfix/smtpd[18049]: disconnect from mail-qg0-f54.google.com Jan 13 09:56:10 server postfix/pipe[18054]: C694C20A2EEE: to=<mylist@lists.example.com>, relay=mailman, delay=0.72, delays=0.52/0.02/0/0.18, dsn=2.0.0, status=sent (delivered via mailman service) Jan 13 09:56:10 server postfix/qmgr[17951]: C694C20A2EEE: removed Jan 13 09:56:11 server postfix/smtpd[18049]: connect from localhost[127.0.0.1] Jan 13 09:56:11 server postfix/smtpd[18049]: 7AFC720A2EEE: client=localhost[127.0.0.1] Jan 13 09:56:11 server postfix/cleanup[18053]: 7AFC720A2EEE: message-id=<CACUG7ke_xq6w2FM+2KCC_wyENBfM7h7o-7iAuydi4R_+9tb=Yg@mail.gmail.com> Jan 13 09:56:11 server postfix/qmgr[17951]: 7AFC720A2EEE: from=<mylist-bounces@lists.example.com>, size=3782, nrcpt=1 (queue active) Jan 13 09:56:11 server postfix/smtpd[18049]: disconnect from localhost[127.0.0.1] Jan 13 09:56:12 server postfix/smtp[18056]: 7AFC720A2EEE: to=<user@example.com>, relay=gmail-smtp-in.l.google.com:25, delay=0.71, delays=0.01/0.04/0.07/0.59, dsn=2.0.0, status=sent (250 2.0.0 OK 1421139372 4si40583259wjv.55 - gsmtp) Jan 13 09:56:12 server postfix/qmgr[17951]: 7AFC720A2EEE: removed
這些是電子郵件標題:
Delivered-To: user@example.com Received: by X.Y.Z.X with SMTP id e107csp383549qge; Tue, 13 Jan 2015 02:40:25 -0800 (PST) X-Received: by A.B.C.D with SMTP id d16mr4467352wiw.77.1421145624883; Tue, 13 Jan 2015 02:40:24 -0800 (PST) Return-Path: <mylist-bounces@lists.example.com> Received: from myserver.example.com (myserver.example.com) by mx.google.com with ESMTP id un10si40938267wjc.103.2015.01.13.02.40.24 for <user@example.com>; Tue, 13 Jan 2015 02:40:24 -0800 (PST) Received: from myserver.example.com (localhost [127.0.0.1]) by myserver.example.com (Postfix) with ESMTP id B49BD20A3379 for <user@example.com>; Tue, 13 Jan 2015 11:40:23 +0100 (CET) Subject: [mylist] test X-BeenThere: mylist@lists.example.com X-Mailman-Version: 2.1.15 Precedence: list Reply-To: mylist@lists.example.com List-Id: <mylist.lists.example.com> List-Unsubscribe: <http://lists.example.com/mailman/options/mylist>, <mailto:mylist-request@lists.example.com?subject=unsubscribe> List-Post: <mailto:mylist@lists.example.com> List-Help: <mailto:mylist-request@lists.example.com?subject=help> List-Subscribe: <http://lists.example.com/mailman/listinfo/mylist>, <mailto:mylist-request@lists.example.com?subject=subscribe> Errors-To: mylist-bounces@lists.example.com Sender: "mylist" <mylist-bounces@lists.example.com> Date: Tue, 13 Jan 2015 11:40:23 +0100 (CET) From: mylist-bounces@lists.example.com
列表配置:
root@myserver: /usr/lib/mailman/bin # ./config_list -o temp mylist root@myserver: /usr/lib/mailman/bin # grep -vE "^#|^$" temp real_name = 'mylist' owner = ['user@example.com'] moderator = [] subject_prefix = '[mylist] ' anonymous_list = False first_strip_reply_to = False reply_goes_to_list = 1 reply_to_address = '' umbrella_list = False umbrella_member_suffix = '-owner' send_reminders = True admin_immed_notify = True admin_notify_mchanges = False respond_to_post_requests = True new_member_options = 256 administrivia = True max_message_size = 10240 admin_member_chunksize = 30 host_name = 'lists.example.com' include_rfc2369_headers = 1 include_list_post_header = 1 include_sender_header = 1 preferred_language = 'en' available_languages = ['en'] encode_ascii_prefixes = 0 nondigestable = True scrub_nondigest = False regular_exclude_lists = [] regular_exclude_ignore = True regular_include_lists = [] digestable = True digest_is_default = False mime_is_default_digest = False advertised = 1 subscribe_policy = 3 unsubscribe_policy = 1 ban_list = [] private_roster = 1 obscure_addresses = 1 default_member_moderation = False member_moderation_action = 0 member_moderation_notice = '' generic_nonmember_action = 1 forward_auto_discards = True nonmember_rejection_notice = '' require_explicit_destination = 0 acceptable_aliases = '' max_num_recipients = 10 header_filter_rules = [] bounce_matching_headers = """ 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 = True bounce_notify_owner_on_disable = True bounce_notify_owner_on_removal = True autorespond_postings = 0 autoresponse_postings_text = '' autorespond_admin = 0 autoresponse_admin_text = '' autorespond_requests = 0 autoresponse_request_text = '' autoresponse_graceperiod = 90 collapse_alternatives = True convert_html_to_plaintext = True filter_action = 0 topics_enabled = 0 topics_bodylines_limit = 5 topics = []
編輯:我正在刪除後綴配置,因為它似乎沒問題(剪斷)
任何人都可以告訴我上述配置中有什麼問題,以便從該 FROM 地址發送電子郵件的列表嗎?
OK:我想我知道發生了什麼。如果 mailman 找不到有效的 From: 標頭,它會將 mylist-bounces@ 添加為 From 標頭。
進行“telnet 25”測試,沒有 From 標頭(只是 Subject: 在 DATA 之後),我得到了 -bounces。
從 MUA (Gmail) 發送電子郵件時,它會顯示“發件人”發件人標頭。我可以假設沒有人會嘗試使用 From 向列表發送電子郵件,所以沒有人會看到“-bounces”電子郵件地址,對吧?
非常感謝@masegaloeh 指出我的答案:)。