系統升級後,mailscanner的ms-configure update可能會遇到的問題

spamassassin 4.0.1版本可能會遇到問題 說版本有衝突不能安裝、和無法用sa-update 在這篇找到說明解法,要降版本才能支援新的MariaDB。 https://notes.sagredo.eu/en/qmail-notes-185/installing-and-configuring-spamassassin-37.html 降版: cpan install DVEEDEN/DBD-mysql-4.052.tar.gz 調整規則目錄的讀取權限 要解決 www-data 無法讀取規則檔的問題,您需要讓 www-data 所屬的群組,或所有使用者,都擁有讀取權限。 # 讓 www-data 群組擁有讀取權限 sudo chown -R root:www-data /etc/mail/spamassassin sudo chmod -R 750 /etc/mail/spamassassin # 同樣地,針對 sa-update 的規則目錄進行設定 sudo chown -R root:www-data /var/lib/spamassassin sudo chmod -R… Read more (完整文章內容)系統升級後,mailscanner的ms-configure update可能會遇到的問題

UBUNTU系統升級後,Postfix郵件伺服器配mailscanner、opendikm、opendmarc可能會運作不正常的紀錄

去年好不容易摸索搞定的郵件伺服器,今年Q3又再度發生工作不正常的問題。 MAIL伺服器Dovecot + Postfix + Mailscanner安裝,紀錄&更新 https://jir.idv.tw/wordpress/?p=3124 POSTFIX郵件伺服器,架設Mailscanner可能會遇到OpenDKIM衝突的解決方法 https://jir.idv.tw/wordpress/?p=3146 因為郵件主機配合UBUNTU系統升級,但是陸陸續續發現功能服務有問題,也連帶發現升級後,開始一直收到YAHOO負責任的拒收信件。 今年開始大量利用AI互動來解決我一知半解、或是不熟稔的指令和功能追加。 這次經驗也真的要再來感嘆AI、讚嘆AI了…。 /etc/postfix/master.cf這個檔案。 目前運作方式是這樣: #1.跑OpenDKIM的PORT: 8891 #2.跑OpenDMARC的.sock #3.跑MailScanner的PORT: 33333 smtpd_milters = inet:localhost:8891, local:opendma… Read more (完整文章內容)UBUNTU系統升級後,Postfix郵件伺服器配mailscanner、opendikm、opendmarc可能會運作不正常的紀錄

razor2: razor2 check failed: Permission denied razor2: Can’t read conf file: /etc/spamassassin/razor/razor-agent.conf

升級系統後又遇到一樣的問題,給AI教了一個簡單的檢查方式和修正。  8月 02 18:08:26 spamd[301829]: razor2: razor2 check failed: Permission denied razor2: Can’t read conf file: /etc/spamassassin/razor/razor-agent.conf at /usr/share/perl5/Mail/SpamAssassin/Plugin/Razor2.pm line 350. #nano -l /usr/share/perl5/Mail/SpamAssassin/Plugin/Razor2.pm  339 340   if ($err) { 341     chomp $err; 342     if ($err =~ /(?:could not connect|network is unreachable)/) { 343       # make this a dbg(); SpamAssassin will still continue, 344     … Read more (完整文章內容)razor2: razor2 check failed: Permission denied razor2: Can’t read conf file: /etc/spamassassin/razor/razor-agent.conf

UBUNTU系統版本升級後,每日報告的logwatch無法正常解析clamav的LOG。

我目前自己找到的相關軟體版本: # lsb_release -rd Ubuntu 24.04.2 LTS # apt-cache policy clamav-freshclam *** 1.4.3+dfsg-0ubuntu0.24.04.1 500 1.0.5+dfsg-1.1ubuntu3 500 500 https://free.nchc.org.tw/ubuntu noble/main amd64 Packages # apt-cache policy logwatch *** 7.7-1ubuntu1 500 然後設定檔明明正確的指定它這個位置的LOG,檔案實際也是有正常的產出。 $ tail /var/log/clamav/freshclam.log Fri Aug 1 09:03:31 2025 -> ————————————– Fri Aug 1 09:03:31 2025 -> daily.cld database … Read more (完整文章內容)UBUNTU系統版本升級後,每日報告的logwatch無法正常解析clamav的LOG。

UBUNTU升級到24.04.2後,本來google remote desktop可以用,變成不能用的可能解法

問題關鍵字: xf86OpenConsole: Cannot open virtual console 2 (Permission denied) chrome-remote-desktop[xxxxx]: xdpyinfo:  unable to open display “:20”. 總之,我已經耗了三天在重裝CRD套件,它就是一直不能正常啟動。 每天問AI這個查、那個查,問到我都有懷疑人生的FU…。 今天下班特別沉下心來,好好的研究PYTHON結構的程式碼,和AI蕉流蕉流。 總之,它就是不知道為什麼systemctl服務啟動,讓我的使用者帳號呼叫/dev/tty2螢幕時,明明有tty和video群組權限的狀況,它就是不能通過檢查,說權限不足。 也因為這樣,它就似乎不能觸發判斷迴圈,找不到編號:20的虛擬螢幕,造成啟動失敗的結果。 最後,終於讓我找到辦法,順便給自己記錄遇到的問題如何處理。 試著編輯這個檔案,找到1380行: nano -l /opt/google/chrome-remote-desktop/chrome-remote-deskt… Read more (完整文章內容)UBUNTU升級到24.04.2後,本來google remote desktop可以用,變成不能用的可能解法