close
這個更新其實已經出了一段時間了
只需要用 portupgrade 更新即可
重點是一定要記得手動更新Spamassassin的規則檔
1.src 及 ports 更新
cd /usr/src
make update
portsdb-uU
pkgdb -F
portupgrade -ayn
確定一下有無模擬更新失敗
--->  Packages processed: 0 done, 400 ignored, 0 skipped and 0 failed

2. portupgrade更新
portupgrade -a
或是
portupgrade p5-Mail-SpamAssassin

3. 手動更新Spamassassin 規則檔
sa-update -D --nogpg
有如下訊息就表示更新已完成

[24229] dbg: logger: adding facilities: all
[24229] dbg: logger: logging level is DBG
[24229] dbg: generic: SpamAssassin version 3.2.4
[24229] dbg: config: score set 0 chosen.
[24229] dbg: dns: no ipv6
[24229] dbg: dns: is Net::DNS::Resolver available? yes
[24229] dbg: dns: Net::DNS version: 0.62
[24229] dbg: generic: sa-update version svn607589
[24229] dbg: generic: using update directory: /var/db/spamassassin/3.002004
[24229] dbg: diag: perl platform: 5.008008 freebsd
[24229] dbg: diag: module installed: Digest::SHA1, version 2.11
[24229] dbg: diag: module installed: HTML::Parser, version 3.56
[24229] dbg: diag: module installed: Net::DNS, version 0.62
[24229] dbg: diag: module installed: MIME::Base64, version 3.07
[24229] dbg: diag: module installed: DB_File, version 1.814
[24229] dbg: diag: module installed: Net::SMTP, version 2.31
[24229] dbg: diag: module installed: Mail::SPF, version v2.004
[24229] dbg: diag: module installed: Mail::SPF::Query, version 1.999001
[24229] dbg: diag: module installed: IP::Country::Fast, version 604.001
[24229] dbg: diag: module installed: Razor2::Client::Agent, version 2.84
[24229] dbg: diag: module installed: Net::Ident, version 1.20
[24229] dbg: diag: module installed: IO::Socket::INET6, version 2.51
[24229] dbg: diag: module installed: IO::Socket::SSL, version 1.12
[24229] dbg: diag: module installed: Compress::Zlib, version 2.008
[24229] dbg: diag: module installed: Time::HiRes, version 1.9711
[24229] dbg: diag: module installed: Mail::DomainKeys, version 1.0
[24229] dbg: diag: module installed: Mail::DKIM, version 0.30
[24229] dbg: diag: module installed: DBI, version 1.601
[24229] dbg: diag: module installed: Getopt::Long, version 2.35
[24229] dbg: diag: module installed: LWP::UserAgent, version 2.033
[24229] dbg: diag: module installed: HTTP::Date, version 1.47
[24229] dbg: diag: module installed: Archive::Tar, version 1.38
[24229] dbg: diag: module installed: IO::Zlib, version 1.07
[24229] dbg: diag: module installed: Encode::Detect, version 1.00
[24229] dbg: channel: attempting channel updates.spamassassin.org
[24229] dbg: channel: update directory /var/db/spamassassin/3.002004/updates_spamassassin_org
[24229] dbg: channel: channel cf file /var/db/spamassassin/3.002004/updates_spamassassin_org.cf
[24229] dbg: channel: channel pre file /var/db/spamassassin/3.002004/updates_spamassassin_org.pre
[24229] dbg: channel: metadata version = 611820
[24229] dbg: dns: 4.2.3.updates.spamassassin.org => 611820, parsed as 611820
[24229] dbg: channel: current version is 611820, new version is 611820, skipping channel
[24229] dbg: diag: updates complete, exiting with code 1

postfix reload
為求保險起見,重置 Postfix ,或是reboot 都可以
PS : module 的部分請記得都要安裝歐

4.將更新指令寫在CronTab,每天定期更新
ee /etc/crontab
31      */12    *       *       *       root    /usr/local/bin/sa-update -D --nogpg
每天2次自動定期更新 Spamassassin 規則檔
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 gary1974tw 的頭像
    gary1974tw

    May the Framework with you !!

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