添加列表
# /usr/bin/mlmmj-make-ml -L chat -s /var/spool/mlmmj/domain.com -c mlmmj
# echo 'chat: "|/usr/bin/mlmmj-receive -L /var/spool/mlmmj/gotechcn.cn/chat/"' >> /etc/postfix/aliases
# newaliases
邀请用户订阅
# /usr/bin/mlmmj-sub -L /var/spool/mlmmj/domain.com/chat -a xiaofeng.lin@domain.com -C
但是该邀请无法发送出去,提示用户不存在,以下为日志报错:
Jul 18 11:51:56 mail postfix/smtpd[20849]: NOQUEUE: reject: RCPT from mail.domain.com[127.0.0.1]: 550 5.1.0 <chat+bounces-confsub-077e7f5f310f3ed4-xiaofeng.lin=domain.com@domain.com>: Sender address rejected: User unknown in virtual mailbox table; from=<chat+bounces-confsub-077e7f5f310f3ed4-xiaofeng.lin=domain.com@domain.com> to=<xiaofeng.lin@domain.com> proto=ESMTP helo=<mail.domain.com>
Jul 18 11:51:56 mail /usr/bin/mlmmj-send[23591]: mlmmj-send.c:294: Error in RCPT TO. Reply = [550 5.1.0 <chat+bounces-confsub-077e7f5f310f3ed4-xiaofeng.lin=domain.com@domain.com>: Sender address rejected: User unknown in virtual mailbox table#015#012]: No such file or directory
# cat /etc/postfix/main.cf(部分)
smtpd_reject_unlisted_recipient = yes
smtpd_reject_unlisted_sender = yes
smtpd_sender_restrictions =
permit_mynetworks
reject_unlisted_sender
reject_authenticated_sender_login_mismatch
check_policy_service inet:127.0.0.1:7777
permit_sasl_authenticated
check_sender_access pcre:/etc/postfix/sender_access.pcre
smtpd_recipient_restrictions =
check_sender_access hash:/etc/postfix/sender_checks
check_recipient_access hash:/etc/postfix/access
reject_unknown_recipient_domain
reject_non_fqdn_recipient
reject_unlisted_recipient
permit_mynetworks
permit_sasl_authenticated
reject_unauth_destination
check_policy_service inet:127.0.0.1:7777
mynetworks = 127.0.0.1
mydestination = $myhostname, localhost, localhost.localdomain
myhostname = mail.domain.com
myorigin = domain.com
mydomain = domain.com
alias_maps = hash:/etc/postfix/aliases
alias_database = hash:/etc/postfix/aliases
virtual_alias_domains =
virtual_alias_maps =
proxy:mysql:/etc/postfix/mysql/virtual_alias_maps.cf
proxy:mysql:/etc/postfix/mysql/mlmmj.cf
proxy:mysql:/etc/postfix/mysql/domain_alias_maps.cf
proxy:mysql:/etc/postfix/mysql/catchall_maps.cf
proxy:mysql:/etc/postfix/mysql/domain_alias_catchall_maps.cf
transport_maps =
proxy:mysql:/etc/postfix/mysql/transport_maps_user.cf
proxy:mysql:/etc/postfix/mysql/transport_maps_mlmmj.cf
proxy:mysql:/etc/postfix/mysql/transport_maps_domain.cf
mlmmj_destination_recipient_limit = 1