[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sendmail+spamass-milter+cyrus-imapd
From: |
L/E/G |
Subject: |
sendmail+spamass-milter+cyrus-imapd |
Date: |
Tue, 2 Dec 2003 10:16:08 +0300 |
Hi
FeeBSD
I use sendmail-8.12.10+spamassassin-2.0+spamass-milter+cyrus-imapd-2.0.17.
We can see following in /usr/ports/mail/spamass-mlter/work/activation.txt
Now all messages received by Sendmail are filtered through
SpamAssassin, and probable spam messages are tagged with the header
`X-Spam-Flag: YES'. Tell your users about this so they can set up
appropriate filters on their mail reader.
AND IN man spamass-milter
-b spamaddress
Redirects tagged spam to the specified email address.
All envelope recipients are removed, and inserted
into the message as `X-Spam-Orig-To:' headers.
-B spamaddress
Same as -b, except the original recipients are retained.
Only one of -b and -B may be used.
I start spamass-miter as
www# cat /usr/local/etc/rc.d/spamass.sh
#!/bin/sh
DAEMON=/usr/local/sbin/spamass-milter
#SOCKET=/var/run/spamass-milter.sock
SOCKET=/var/run/spamass.sock
PIDFILE=/var/run/spamass-milter.pid
case "$1" in
start)
if [ -f "${DAEMON}" -a -x "${DAEMON}" ]
then
"${DAEMON}" -p "${SOCKET}" -f -B address@hidden -i 3.1.1.0/24 &
echo $! > "${PIDFILE}"
sleep 1
kill -HUP `head -1 /var/run/sendmail.pid`
echo -n ' spamass-milter'
fi
[ -x /usr/bin/spamd ] && /usr/bin/spamd -a -d -r /var/run/spamd.pid -u
nobody && echo -n ' spamd'
echo -n ' sendmail'
;;
stop)
kill `cat /var/run/spamd.pid` && rm /var/run/spamd.pid
echo -n ' spamd'
;;
restart)
kill -1 `cat /var/run/spamd.pid`
;;
esac
exit 0
www#
All work OK, but ONE BIG PROBLEM!
All nessages marked as a spam are directed to direction:
-original recepients
address@hidden as you can see in start script
Where am I mistaken?
What have I to do to correct that?
Leo
- sendmail+spamass-milter+cyrus-imapd,
L/E/G <=