CONTENTS
Lastmodified 2020-06-29 (月) 05:01:38
これまで、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/ を消去。
# portupgrade -rf amavisd-new-2.12.0_1,1 && reboot
する。
# 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 785:本日 1:昨日 0