You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/mail-filter/spamass-milter/files
root bfcab4b04d
Sync with portage [Wed Nov 28 02:22:11 MSK 2012].
12 years ago
..
README.gentoo Automatic update [Wed Nov 9 11:33:18 MSK 2011]. 13 years ago
spamass-milter-auth_users.patch Automatic update [Wed Nov 9 11:33:18 MSK 2011]. 13 years ago
spamass-milter.conf3 Automatic update [Wed Nov 9 11:33:18 MSK 2011]. 13 years ago
spamass-milter.rc4 Sync with portage [Wed Nov 30 10:10:45 MSK 2011]. 13 years ago

README.gentoo

Simple install instructions by raker @ g.o

updates by gustavoz
updates by SteveB
---------------------------------------------------------------

For Sendmail:
-------------
Add these lines in /etc/mail/sendmail.mc before MAILER(local):
INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/spamass-milter.sock, F=, T=C:15m;S:4m;R:4m;E:10m')dnl
define(`confMILTER_MACROS_CONNECT',`b, j, _, {daemon_name}, {if_name}, {if_addr}')dnl
define(`confMILTER_MACROS_ENVRCPT',`r, v, Z')

When that's done run this command:
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

Restart associated services:
/etc/init.d/sendmail stop
/etc/init.d/spamass-milter start
/etc/init.d/sendmail start

OPTIONAL: To run it automatically after booting:
rc-update add spamass-milter default
rc-update add sendmail default


For Postfix >= 2.3.0 and < 2.4.0:
---------------------------------
Add those lines to /etc/postfix/main.cf:
smtpd_milters = unix:/var/run/milter/spamass-milter.sock
milter_end_of_data_macros = b i j _ {daemon_name} {if_name} {if_addr} {mail_addr}
milter_default_action = accept

Change in /etc/conf.d/spamass-milter the socket group owner to mail:
SOCKET_GROUP="mail"

Change in /etc/conf.d/spamass-milter the options for spamass-milter to include "-m":
OPTIONS="${OPTIONS} -m"

Restart associated services:
/etc/init.d/postfix stop
/etc/init.d/spamass-milter start
/etc/init.d/postfix start

OPTIONAL: To run it automatically after booting:
rc-update add spamass-milter default
rc-update add postfix default


For Postfix >= 2.4.0:
---------------------
Same settings as for Postfix >= 2.3.0 (see above) but you can now use the option "-m"
in /etc/conf.d/spamass-milter.