perl -MCPAN -e 'install Mail::SpamAssassin'
vi /etc/mail/spamassassin/local.cf
rewrite_header Subject *****SPAM*****
trusted_networks 216.185.xx
now to start spamd so that remote mail server can connect through
spamc ( client )
spamd -u spamd -d -i -s /var/log/spamd.log --allowed-ips 216.xx.xx.xx
-d is saemonize spamd
-i is interface
-s sys logging
see if the the interfaces and ipaddress are allowed.
[root@vps1 ~]# netstat -nap |grep tcp
tcp 0 0 0.0.0.0:783 0.0.0.0:*
LISTEN 8181/spamd.log --al
tcp 0 0 0.0.0.0:80 0.0.0.0:*
LISTEN 23902/httpd
tcp 0 0 0.0.0.0:22 0.0.0.0:*
LISTEN 23849/sshd
tcp 0 0 216.185.xx.xx:783 216.xx.xx.55:4317
CLOSE_WAIT 8183/spamd child
chk the ps
ps -aux |grep spam
--
No comments:
Post a Comment