Postfix + SASL

安裝 /usr/ports/mail/postfix-current

1.
在 postfix-current config 中選擇 TLS 和 SASL(cyrus-sasl)
在 cyrus-sasl config 中選擇 pwcheck (沒需要的話其他的選項都去掉)

2.
安裝過程中選擇 yes
Would you like to activate Postfix in /etc/mail/mailer.conf [n]? yes
3.
將下列加入 /etc/rc.conf 中將原本的 sendmail disable 掉
sendmail_enable="YES"
sendmail_flags="-bd"
sendmail_pidfile="/var/spool/postfix/pid/master.pid"
sendmail_procname="/usr/local/libexec/postfix/master"
sendmail_outbound_enable="NO"
sendmail_submit_enable="NO"
sendmail_msp_queue_enable="NO"

cyrus_pwcheck_enable="yes"
4.
將下列加入 /etc/periodic.conf
daily_clean_hoststat_enable="NO"
daily_status_mail_rejects_enable="NO"
daily_status_include_submit_mailq="NO"
daily_submit_queuerun="NO"
5.
設定 SASL 認證

修改 /etc/group
cyrus:*:60:daemon,postfix
新增/usr/local/lib/sasl/smtpd.conf
pwcheck_method: pwcheck

啟動 cyrus_pwcheck
/usr/local/etc/rc.d/cyrus_pwcheck start

6.
設定 postfix

依照個人需求設定 /usr/local/etc/postfix/main.cf
myhostname = mail.twku.net
mydomain = twku.net
mydestination = mail.twku.net, winfore.com, winnow-intl.com
smtpd_recipient_restrictions = permit_sasl_authenticated, check_relay_domains, permit_mynetworks
smtpd_client_restrictions = permit_sasl_authenticated
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options= noanonymous
smtpd_sasl_local_domain = twku.net
alias_maps = hash:/usr/local/etc/postfix/etc/aliases
virtual_alias_maps = hash:/usr/local/etc/postfix/virtual
message_size_limit = 1024000000
mailbox_size_limit = 2048000000
virtual_mailbox_limit = 2048000000

修改與建立 aliases
postalias /usr/local/etc/postfix/aliases (用來重新導向)

修改與建立 virtual
postmap /usr/local/etc/postfix/virtual (用來產生虛擬的 mail address)

0 Responses to “Postfix + SASL”


  1. 1 ErnieErata

    can you buy mobic pill: where can i get cheap mobic without a prescription – can i purchase mobic online

  2. 2 JerryFifox

    http://levitra.eus/# Generic Levitra 20mg

  3. 3 JamesSon

    http://viagra.eus/# Cheap Sildenafil 100mg

  4. 4 JamesKnomo

    https://kamagra.icu/# п»їkamagra

  5. 5 MichaelWab
  6. 6 JamesKnomo

    http://kamagra.icu/# super kamagra

  7. 7 Arthurmam

    Levitra 10 mg best price Levitra online USA fast or Buy generic Levitra online
    http://medeops.org/__media__/js/netsoltrademark.php?d=levitra.eus Buy generic Levitra online
    Buy Vardenafil 20mg Levitra generic best price and Buy Vardenafil 20mg online Levitra online USA fast

  8. 8 JamesSon

    http://cialis.foundation/# Cialis over the counter

  9. 9 JamesKnomo

    https://kamagra.icu/# Kamagra tablets

  10. 10 เว็บแทงหวยออนไลน์

    You’ve made some really good points there. I checked on the web for additional information about the issue and found most individuals will go along with your views on this website.

    my web-site; เว็บแทงหวยออนไลน์

  11. 11 chlorthalidone 25 mg weight loss

    hygroton for high blood pressure hygroton 25 mg

  12. 12 Shekeype
  13. 13 เซรั่มหน้าใส

    I’ve been surfing on-line more than three hours nowadays, but I never
    discovered any attention-grabbing article like yours.

    It is beautiful price enough for me. In my opinion, if all website owners and
    bloggers made excellent content material as you did, the internet shall be a
    lot more useful than ever before.

    Also visit my web blog: เซรั่มหน้าใส

  14. 14 Srngkeype
  15. 15 Ctmvfloaf
  16. 16 Zolkneeda
  17. 17 Cndyfloaf
  1. 1 สาระน่ารู้

Leave a Reply