[root@centos ~]# vi /etc/postfix/main.cfソス@ソスソスソス@Postfixソスン抵ソスtソス@ソスCソスソスソスメ集
# The mailbox_command parameter specifies the optional external
# command to use instead of mailbox delivery. The command is run as
# the recipient with proper HOME, SHELL and LOGNAME environment settings.
# Exception: delivery for root is done as $default_user.
#
# Other environment variables of interest: USER (recipient username),
# EXTENSION (address extension), DOMAIN (domain part of address),
# and LOCAL (the address localpart).
#
# Unlike other Postfix configuration parameters, the mailbox_command
# parameter is not subjected to $parameter substitutions. This is to
# make it easier to specify shell syntax (see example below).
#
# Avoid shell meta characters because they will force Postfix to run
# an expensive shell process. Procmail alone is expensive enough.
#
# IF YOU USE THIS TO DELIVER MAIL SYSTEM-WIDE, YOU MUST SET UP AN
# ALIAS THAT FORWARDS MAIL FOR ROOT TO A REAL USER.
#
#mailbox_command = /some/where/procmail
#mailbox_command = /some/where/procmail -a "$EXTENSION"
mailbox_command = /usr/bin/procmailソス@ソスソスソス@ソスヌ会ソス(Procmailソスニ連ソスgソスソスソスソス謔、ソスノゑソスソスソス)
[root@centos ~]# systemctl reload postfixソス@ソスソスソス@Postfixソスン定反ソスf
|
ソスソスソスXソスpソスソスソスソスソス[ソスソスソスUソスソスソスソスソスン抵ソス(ソスソスMソスソスソス[ソスソスソスTソス[ソスoソス[ソスソスIMAPソスフ場合ソスフゑソス)
SpamAssassinソスノゑソス閭ソス[ソスソスソスwソスbソス_ソスノスソスpソスソスソスソスソス[ソスソスソスフ茨ソスソスtソスソスソスソス黷スソスソスソス[ソスソスソスヘスソスpソスソスソスソスpソスソスソス[ソスソスソス{ソスbソスNソスXソスヨ、ソスソスソスフ托ソスソスフソスソス[ソスソスソスヘ通擾ソスヌゑソスソスソスフソスソス[ソスソスソス{ソスbソスNソスXソスヨ配ソスソスソスソスソスソス謔、ソスノゑソスソスソスB
ソスiソスPソスjソスXソスpソスソスソスソスpソスソスソス[ソスソスソス{ソスbソスNソスXソス成
ソスソスソスソスソスソスソス[ソスUソス[ソスノつゑソスソストは、ソスソスソス[ソスソスソス{ソスbソスNソスXソスノスソスpソスソスソスソスpソスソスソス[ソスソスソス{ソスbソスNソスXソスソスヌ会ソスソスソスソスソスB
ソスワゑソスソスAソスVソスKソスソスソス[ソスUソス[ソスノつゑソスソストは、ソスソスソス[ソスUソス[ソスヌ会ソスソスソスソスノ趣ソスソスソスソスナスソスpソスソスソスソスpソスソスソス[ソスソスソス{ソスbソスNソスXソスソスソス成ソスソスソスソスソス謔、ソスノゑソスソスソス ソスB
|
ソスyソスソスソスソスソスソスソス[ソスUソス[ソスホ擾ソスソスz
[root@centos ~]# vi spamfolder-createソス@ソスソスソス@ソスXソスpソスソスソスソスpソスソスソス[ソスソスソス{ソスbソスNソスXソス成ソスXソスNソスソスソスvソスgソス成
#!/bin/bash
for user in `ls /home`
do
id -u $user > /dev/null 2>&1
if [ $? -eq 0 ] && [ ! -d /home/$user/Maildir/.Spam/new ]; then
mkdir -p /home/$user/Maildir/.Spam/new
mkdir -p /home/$user/Maildir/.Spam/cur
mkdir -p /home/$user/Maildir/.Spam/tmp
chmod -R 700 /home/$user/Maildir/.Spam
chown -R $user. /home/$user/Maildir/.Spam
echo $user
fi
done
[root@centos ~]# sh spamfolder-createソス@ソスソスソス@ソスXソスpソスソスソスソスpソスソスソス[ソスソスソス{ソスbソスNソスXソス成ソスXソスNソスソスソスvソスgソスソスソスs
user
ソスE
ソスE
ソスE
user
[root@centos ~]# rm -f spamfolder-createソス@ソスソスソス@ソスXソスpソスソスソスソスpソスソスソス[ソスソスソス{ソスbソスNソスXソス成ソスXソスNソスソスソスvソスgソス除
ソスyソスVソスKソスソスソス[ソスUソス[ソスホ擾ソスソスz
[root@centos ~]# mkdir -p /etc/skel/Maildir/.Spam/{new,cur,tmp}ソス@ソスソスソス@ソスVソスKソスソスソス[ソスUソス[ソスヌ会ソスソスソスソスノ趣ソスソスソスソスナスソスpソスソスソスソスpソスソスソス[ソスソスソス{ソスbソスNソスXソス成(1/2)
[root@centos ~]# chmod -R 700 /etc/skel/Maildir/.Spamソス@ソスソスソス@ソスVソスKソスソスソス[ソスUソス[ソスヌ会ソスソスソスソスノ趣ソスソスソスソスナスソスpソスソスソスソスpソスソスソス[ソスソスソス{ソスbソスNソスXソス成(2/2)
|
|
ソスiソスQソスjソスXソスpソスソスソスソスソス[ソスソスソスUソスソスソスソスソスン抵ソス
SpamAssassinソスソスソスXソスpソスソスソスソスソス閧オソスソスソスソスソス[ソスソスソスヘスソスpソスソスソスソスpソスソスソス[ソスソスソス{ソスbソスNソスXソスヨ配ソスソスソスソスソスソス謔、ソスノゑソスソスソスB
|
[root@centos ~]# vi /etc/procmailrcソス@ソスソスソス@procmailソスン抵ソスtソス@ソスCソスソスソスメ集
ソスネ会ソスソスソスソスナ鯉ソスソスソスヨ追会ソス
# SpamAssassinソスソスソスXソスpソスソスソスソスソス閧オソスソスソスソスソス[ソスソスソスヘスソスpソスソスソスソスpソスソスソス[ソスソスソス{ソスbソスNソスX(/home/xxxx/Maildir/.Spam)ソスヨ配ソスソス
:0
*^X-Spam-Flag: YES
$HOME/Maildir/.Spam/
|
|
ソスソスソスソスソス[ソスソスソス\ソスtソスgソスン抵ソス(ソスソスMソスソスソス[ソスソスソスTソス[ソスoソス[ソスソスPOPソスノゑソスソスソス鼾)
SpamAssassinソスノゑソス閭ソス[ソスソスソスソスソスソスソスノ「***SPAM***ソスvソスソスtソスソスソスソス黷スソスソスソス[ソスソスソスヘスソスpソスソスソスソスソス[ソスソスソスpソスtソスHソスソスソス_ソスヨ保托ソスソスソスソスソス謔、ソスノゑソスソスソス
ソスiソスPソスjソスXソスpソスソスソスソスソス[ソスソスソスpソスtソスHソスソスソス_ソス成
ThunderbirdソスソスソスNソスソスソスソスソスAソスソスソスjソスソスソス[ソスフ「ソスtソス@ソスCソスソスソスvソスヒ「ソスVソスKソス成ソスvソスヒ「ソスtソスHソスソスソス_ソス[ソスvソスナ「ソスソスソスOソスvソスソス"Spam"ソスニ難ソスソスヘゑソスソスト「ソスtソスHソスソスソス_ソス[ソスソスソス成ソスvソス{ソス^ソスソスソスソスソスソス
ソスiソスQソスjソスXソスpソスソスソスソスソス[ソスソスソスUソスソスソスソスソスソスソス[ソスソスソスヌ会ソス
ThunderbirdソスソスソスNソスソスソスソスソスAソスソスソスjソスソスソス[ソスフ「ソスcソス[ソスソスソスvソスヒ「ソスソスソスbソスZソス[ソスWソスtソスBソスソスソス^ソス[ソスvソスナ「ソスVソスKソスv
ソスuソスtソスBソスソスソス^ソス[ソスソスソスvソスノ任ソスモの厄ソスソスO(ソスソス:"SpamソスUソス阨ェソスソス")ソスソスソスソスソス
ソスuソスソスソスラての擾ソスソスソスソスノ茨ソスvソスvソスソスIソスソス
ソスuソスソスソスソスソスvソスAソスuソスノ趣ソスソスソスソスワむ」ソスソスIソスソスソスソスソストテソスLソスXソスgソス{ソスbソスNソスXソスソス"***SPAM***"ソスニ難ソスソスソス
ソスuソスネ会ソスソスフ難ソスソスソスソスソスソスソスsソスソスソスソスvソスナ「ソスソスソスbソスZソス[ソスWソスソスソスレ難ソスソスソスソスソスvソスAソス成ソスソスソスソスソスXソスpソスソスソスソスソス[ソスソスソスpソスtソスHソスソスソス_ソスソスIソスソス
ソスuOKソスvソス{ソス^ソスソスソスソスソスソス
|
ソスソスspamass-milterソスmソスF
ソスソスソスソスソスソスソスgソスノ空メーソスソスソス送ゑソスソストみて、ソスソスMソスソスソスソスソスソスソス[ソスソスソスフヘソスbソス_ソスノ以会ソスソスフソスソスbソスZソス[ソスWソスソスソスtソスソスソスソスソスソストゑソスソス驍アソスソス
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on centossrv.com
|
ソスソスソスXソスpソスソスソス`ソスFソスbソスNソスmソスF
ソスソスソスソスソスソスソスgソスノテソスXソスgソスXソスpソスソスソスソスソス[ソスソス(ソスソスソス[ソスソスソス{ソスソスソスソスソスuXJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34Xソスvソスフソスソス[ソスソス)ソス送ゑソスソストみて、ソスソスMソスソスソス[ソスソスソスTソス[ソスoソス[ソスハに以会ソスソスフようソスノなるこソスソス
ソスソスソスeソスXソスgソスXソスpソスソスソスソスソス[ソスソスソスヘスソスpソスソスソスXソスRソスAソスソスソスソスソスソスソスA/etc/procmailrcソスフ「SpamAssassinソスノゑソス阡サソス閧ウソス黷スSpam-Levelソスソスソスソスソスl(ソスソスソスソスソスナゑソス20)ソスネ擾ソスフ場合ソスヘ削除ソスvソスフソスソス[ソスソスソスソスLソスソスソスノゑソスソストゑソスソスソスニサソス[ソスoソス[ソスソスソスナ削除ソスソスソスソストゑソスソスワゑソスソスフで、SpamソスtソスHソスソスソス_ソスヨの配ソスソスソスソスソスmソスFソスソスソスソスロは難ソスソスYソスソスソス[ソスソスソスソスソス齊橸ソスIソスノコソスソスソスソスソスgソスAソスEソスgソスソスソストゑソスソスソスmソスFソスソスソス驍アソスソス
ソスyソスソスMソスソスソス[ソスソスソスTソス[ソスoソス[ソスソスPOPソスフ場合ソスz
ソスソスソス[ソスソスソスソスソスソスソスノ「***SPAM***ソスvソスソスソスtソスソスソスソスソスソスソスSpamソスtソスHソスソスソス_ソスヨ配ソスソスソスソスソスソストゑソスソス驍アソスソス
ソスyソスソスMソスソスソス[ソスソスソスTソス[ソスoソス[ソスソスIMAPソスフ場合ソスz
SpamソスtソスHソスソスソス_ソスヨ配ソスソスソスソスソスソストゑソスソス驍アソスソス
|
ソスソスソスXソスpソスソスソスソスソス[ソスソスソスwソスK(ソスソスMソスソスソス[ソスソスソスTソス[ソスoソス[ソスソスIMAPソスフ場合ソスフゑソス)
SpamAssassinソスソスソスソスソスソスト撰ソスソスメソス[ソスソスソスソスソスXソスpソスソスソスソスソス[ソスソスソスニ費ソスソスfソスソスソスソスソスソスAソスtソスノスソスpソスソスソスソスソス[ソスソスソス正常メソス[ソスソスソスニ費ソスソスfソスソスソストゑソスソスワゑソスソスソスソス鼾ソスAソスネ鯉ソスフ鯉ソスFソスソスソスソスhソス~ソスソスソス驍スソス゚ゑソスSpamAssassinソスノ学ソスKソスソスソスソスソスソスソスAソス`ソスFソスbソスNソスソスソスxソスソスソス繧ーソスソスB
ソスソスソスソスソスナは、ソスソスMソスgソスソスソスCソスフ奇ソスソスヌソスソス[ソスソスソス正常メソス[ソスソスソスニゑソスソスト、SpamソスtソスHソスソスソス_ソスフ奇ソスソスヌソスソス[ソスソスソスソスソスXソスpソスソスソスソスソス[ソスソスソスニゑソスソスト、ソスソスソスソスIソスソスSpamAssassinソスノ学ソスKソスソスソスソスソスソス謔、ソスノゑソスソスソスB
ソスソスSpamAssassinソスソスソスソスソスソスト配ソスソスソスソスソスソスソスソスソス[ソスソスソスヘ、ソスソスソス[ソスUソス[ソスソスソスgソスフ托ソスソスソスノゑソス關ウソスメソス[ソスソスソスネゑソスソスMソスgソスソスソスCソスヨ、ソスXソスpソスソスソスソスソス[ソスソスソスネゑソスSpamソスtソスHソスソスソス_ソスヨ移難ソスソスソスソストゑソスソスソスソスソスソスソス
(ソスソスソスuソスソスソストゑソスソスソスソスニ撰ソスソスメソス[ソスソスソスソスソスXソスpソスソスソスソスソス[ソスソスソスニゑソスソスト学ソスKソスソスソスソスソスソスAソスtソスノスソスpソスソスソスソスソス[ソスソスソス正常メソス[ソスソスソスニゑソスソスト学ソスKソスソスソストゑソスソスワゑソス)
|
[root@centos ~]# yum -y install tmpwatchソス@ソスソスソス@tmpwatchソスCソスソスソスXソスgソス[ソスソスソスソスソステゑソスソスXソスpソスソスソスソスソス[ソスソスソスソスソス除ソスソスソス驍スソスソス
[root@centos ~]# vi /etc/cron.daily/spamassassin-learnソス@ソスソスソス@SpamAssassinソスソスソスソスソスwソスKソスXソスNソスソスソスvソスgソス成
#!/bin/bash
PATH=/usr/sbin:/usr/bin:/bin
for user in `ls /home/`
do
# ソスソスソスメソス[ソスソスソスwソスK
# ソスソスソスメソス[ソスソスソスソスSpamAssassinソスノ学ソスKソスソスソスソスソスソス
hammail=/home/$user/Maildir/cur
[ -d "$hammail" ] && \
su $user -s "/bin/bash" -c "sa-learn --ham $hammail | \
logger -p mail.info -t 'sa-learn for $user'"
hammail=/home/$user/Maildir/.Trash/cur
[ -d "$hammail" ] && \
su $user -s "/bin/bash" -c "sa-learn --ham $hammail | \
logger -p mail.info -t 'sa-learn for $user'"
# ソスXソスpソスソスソスソスソス[ソスソス
spammail=/home/$user/Maildir/.Spam/cur
# ソスXソスpソスソスソスソスソス[ソスソスソスwソスK
if [ -d "$spammail" ]; then
# ソスXソスpソスソスソスソスソス[ソスソスソスソスSpamAssassinソスノ学ソスKソスソスソスソスソスソス
su $user -s "/bin/bash" -c "sa-learn --spam $spammail | \
logger -p mail.info -t 'sa-learn for $user'"
# ソスソスMソスソス黹厄ソスソスソスoソス゚ゑソスソスソスソスXソスpソスソスソスソスソス[ソスソスソスソスソス除
tmpwatch -m 720 $spammail
fi
done
[root@centos ~]# chmod +x /etc/cron.daily/spamassassin-learnソス@ソスソスソス@SpamAssassinソスソスソスソスソスwソスKソスXソスNソスソスソスvソスgソスノ趣ソスソスsソスソスソスソスソスtソスソス
|
|
ソスソスソスXソスpソスソスソスソスソス[ソスソスソスwソスKソスソスソスハのソスソスOソスソス/var/log/maillogソスノ記ソス^ソスソスソスソスソス
|
ソスソスソスヨ連ソスRソスソスソスeソスソスソスc
<!ソス\ソスeソスLソスXソスgソスフみゑソス4ソスsソス\ソスソスソスノ追会ソスソスソスCソスソスソスソスソスソス\>
ソスvソスソスソスCソスoソスVソス[ソス|ソスソスソスVソス[
|