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
  18. 18 Cndyfloaf
  19. 19 Acxzkeype
  20. 20 เว็บความรู้

    Amazing! This blog looks just like my old one! It’s on a totally different topic but it has pretty much the same page layout
    and design. Wonderful choice of colors!

    Also visit my site เว็บความรู้

  21. 21 WndbStavy
  22. 22 เว็บบทความ

    Do you have a spam issue on this site; I also am a
    blogger, and I was wanting to know your situation; we have developed some nice procedures and we are looking to
    exchange solutions with other folks, why not shoot me an e-mail if interested.

    Here is my web page; เว็บบทความ

  23. 23 สาระน่ารู้

    I like it when folks come together and share views.
    Great site, continue the good work!

    my web-site :: สาระน่ารู้

  24. 24 เว็บบทความ

    You really make it seem really easy together with your presentation however I to find this topic to be
    really one thing which I feel I might never understand.
    It sort of feels too complicated and extremely broad for me.
    I am looking ahead to your subsequent put up, I will try
    to get the cling of it!

    Here is my web page … เว็บบทความ

  25. 25 cvs stromectol

    Should I adjust the dosage during illness or when feeling unwell cvs stromectol?

  26. 26 สาระน่ารู้

    I am genuinely delighted to read this website posts which carries tons of
    valuable data, thanks for providing these kinds of statistics.

    Feel free to surf to my page: สาระน่ารู้

  27. 27 cialis 10 or 20 mg

    Are there pills that should be taken with specific aromatherapy practices no prescription cialis. How can complementary therapies enhance conventional cancer treatments

  28. 28 Axxekeype

    If the test is positive, further tests will be done to pinpoint the exact cause of the bleeding.
    If my does amoxicillin treat uti been approved by the FDA?
    This is called a bowel obstruction.

  29. 29 Aengfloaf

    The very first signs of pregnancy can be seen within two weeks of becoming pregnant, or after ovulation has taken place.
    Looking for a pharmacy thailand valium because it is effective treatment
    Laser-assisted uvuloplasty Continuous positive airway pressure CPAP Radiofrequency ablation Palatal implants Am I Correct?

  30. 30 Azzwkeype

    Remission can last for many years and can even be permanent.
    Stay home, shop your drugs online and enjoy a low price of how long does tadalafil take to work are available online.
    Similar findingswere observed for IHD mortality Black: HR, 1.

  31. 31 Avctbfloaf

    District Court for the Western District of Louisiana.
    Make the maximum savings when buying clomid pharmacy prices pills side-by-side on this site
    If your hip has been damaged by arthritis, a fracture, or other condition, common activities such as walking or getting in and out of a chair may be painful and difficult.

  32. 32 Afsdfloaf

    The doctor may prescribe:If symptoms don’t respond to either of these medicines, the doctor might suggest surgery.
    When you are dealing with a personal medical problem try buying best price on vardenafil if it’s priced too low?
    Pregabalin rapidly relieves anxiety.

  33. 33 Agbfloaf

    Bacterial infections must be treated with antibiotics and fungal infections with anti-fungal medication.
    Change your buying habits. vardenafil wiki for privacy.
    Some people are concerned about the risk of HIV when getting or giving blood.

  34. 34 คอร์สเรียนดำน้ำ

    An intriguing discussion is definitely worth comment. I do believe that you need to publish more on this subject matter, it might not be a taboo matter but generally people
    don’t speak about such subjects. To the next! Cheers!!

    Look at my page: คอร์สเรียนดำน้ำ

  35. 35 buy proair
  1. 1 สาระน่ารู้

Leave a Reply