#author("2020-06-29T04:53:20+09:00","default:kuji","kuji") #author("2020-06-29T05:01:38+09:00","default:kuji","kuji") CONTENTS #contents ---- Lastmodified &lastmod; ---- *clamav to vscan [#eb7a4b9f] これまで、amavisd-new を clamav というユーザで運用してきたが、オリジナルのvscanで運用することとした。 ports のMakefileは、編集せず、これまでの/usr/local/etc/amavisd.conf の方を編集。 $max_servers = 2; # num of pre-forked children (2..30 is common), -m $daemon_user = 'clamav'; # (no default; customary: vscan or amavis), -u $daemon_group = 'clamav'; # (no default; customary: vscan or amavis), -g ここを max_servers = 2; # num of pre-forked children (2..30 is common), -m $daemon_user = 'vscan'; # (no default; customary: vscan or amavis), -u $daemon_group = 'vscan'; # (no default; customary: vscan or amavis), -g に書き換え。 /var/amavis /var/virusmails/ を消去。 /var/amavis と /var/virusmails/ を消去。 # portupgrade -rf amavisd-new-2.12.0_1,1 && reboot する。 ---- * /var/virusmails/ de error? [#cc36d0a3] # postqueue -p -Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient------- 129D05D137F 12905 Sun Jun 28 02:03:54 CharlesAlexanderueeqm@nsoil.ru (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing, id=01855-02, quar+notif FAILED: temporarily unable to quarantine: 451 4.5.0 Local delivery(1) to /var/virusmails/spam-qd1bQIgTN681.gz failed: File /var/virusmails/spam-qd1bQIgTN681.gz not accessible, refuse to write: Permission denied at (eval 107) line 190., id=01855-02 at /usr/local/sbin/amavisd line 17603. (in reply to end of DATA command)) foo@example.com # chown -R vscan:vscan /var/virusmails/ 1008 4:37 chown -R vscan:vscan /var/virusmails/ 1009 4:38 postqueue -p 1010 4:38 postsuper -r ALL 1011 4:38 postqueue -p 1012 4:38 postfix flush 1013 4:38 postqueue -p ---- Total access &counter(total);:本日 &counter(today);:昨日 &counter(yesterday); #counter([total|today|yesterday]);