close
  • 安裝/usr/ports/security/cyrus-sasl、/usr/ports/mail/procmail和/usr/ports/mail/postfix
  • 修改/etc/group,將postfix加入cyrus群組
  • cp /usr/local/lib/sasl/Sendmail.conf /usr/local/lib/sasl/smtpd.conf
  • 設定postfix,修改main.cf:
    mailbox_command = /usr/local/bin/procmail
    myhostname = ms1.zbwei.net
    mydomain = zbwei.net
    mydestination = ms1.zbwei.net,/etc/mail/local-host-names
    relay_domains = /etc/mail/relay-domains
    disable_vrfy_command = yes
    smtpd_sasl_auth_enable = yes
    smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
    smtpd_client_restrictions = reject_rbl_client sbl.spamhaus.org, reject_rbl_client blackholes.mail-abuse.org
    virtual_alias_maps = hash:/usr/local/etc/postfix/virtual
  • 執行pwcheck和postfix start
arrow
arrow
    全站熱搜

    Forth 發表在 痞客邦 留言(0) 人氣()