if module_installed spamassassin;then
	if module_installed postfix; then
		echo "content_filter=spamassassin:[localhost]:10026" >>/etc/postfix/main.cf
		echo "localhost:10025 inet n  -       n       -       -       smtpd -o content_filter=" >> /etc/postfix/master.cf
		echo "spamassassin unix -     n       n       -       -       pipe" >> /etc/postfix/master.cf
		echo "        user=nobody argv=/usr/bin/spamc -f -e" >> /etc/postfix/master.cf
		echo "        /usr/bin/smtpclient --with-headers -S localhost -P 10025" >> /etc/postfix/master.cf
		echo "        -f \${sender} -- \${recipient}" >> /etc/postfix/master.cf
	fi
fi
