Commit 347091c3 authored by Vitaly Lipatov's avatar Vitaly Lipatov

mail: add copy to antispam script

parent 22932d91
#!/bin/sh
echo ham
SRCDIR="/var/spool/imap/domain/o/office.etersoft.ru/s/user/spam/&BD0ENQ- &BEEEPwQwBDw-"
#ls -l "$SRCDIR"
ssh as mkdir -p /tmp/ham/
scp "$SRCDIR"/*. as:/tmp/ham/ || exit
ssh as sa-learn --ham /tmp/ham/ --dir --dbpath /var/spool/spamassassin/
ssh as rm -f /tmp/ham/*
echo spam
SRCDIR="/var/spool/imap/domain/o/office.etersoft.ru/l/user/lav/spam"
ssh as mkdir -p /tmp/spam/
scp "$SRCDIR"/*. as:/tmp/spam/ || exit
ssh as sa-learn --spam /tmp/spam/ --dir --dbpath /var/spool/spamassassin/
ssh as rm -f /tmp/spam/*
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment