SpamAssassin User Prefs + simscan

Started by joseph, July 07, 2005, 04:51:58 PM

Previous topic - Next topic

joseph

All,

Recently I moved from mail-toaster 3.x to 4.x, on a completely new machine. It's working great so far, but I'm having some issues with Spamassassin that I can't seem to resolve. Note, I switched from qmail-scanner to simscan.

I've configured SA with SQL support, and that seems to be working as intended.

With 3.x and qmail-scanner, e-mail received for an alias would be spam checked with the destination user accounts's spam settings.

With 4.x and simscan, e-mail received for an alias is being checked with the global spam settings, not the user's spam settings (afterwards it's being delivered properly). E-mail sent directly to a user will use their SQL defined userprefs.  This is causing some issues for people with multiple aliases and postmaster catchall accounts, who normally have very restrictive userprefs.

Is this a limitiation of simscan at this point in time? Am I looking in the wrong direction? Any input would be greatly appreciated.


Clip from toaster-watcher.conf

#######################################           Mail Filtering######################################install_mail_filtering         = 1install_procmail               = 0install_maildrop               = 1install_spamassassin           = 1install_spamassassin_flags     = -d -v -x -r -q /var/run/spamd.pid  # Add -q for per user SQL prefsinstall_spamassassin_sql       = 1       # use AWL, bayes, and per-user prefs from MySQLinstall_spamassassin_dbuser    = spamassassininstall_spamassassin_dbpass    = assSPAMinstall_dspam                  = 1install_simscan                = 1.1     # 0, verinstall_qmailscanner           = 0       # 0, ver    (1.25  as of 04/08/05)install_qmailscanner_stats     = 0       # 0, ver    (2.0.2 as of 02/02/05)install_clamav                 = port    # 0, port, ver (0.84  as of 5/2/05)install_clamav_user            = clamav  # qscand | clamavinstall_pyzor                  = 0install_razor                  = 1install_bogofilter             = 0install_dcc                    = 1install_ripmime                = port    # 0, port, ver (1.4.0.5 as of 4/18/05)filtering_method                   = smtp  # smtp | tcpserver  # see docs for detailsfiltering_spamassassin_method      = user       # site | user | domainfiltering_maildrop_filter_file     = /usr/local/etc/mail/mailfilterfiltering_spama_discard_score      = 10         # discard messages with a SA score above thisfiltering_report_spam_spamassassin = 1filtering_report_spam_pyzor        = 0          # don't enable this with report_spamassassinfiltering_debug                    = 1


One more note, for the initial build "filtering_spamassassin_method" was set to "site". I recently changed it to "user", ran toaster_setup -s spamassassin again, then rebooted. I'm hoping that's all I needed to do to bring that particular change live.

antoniop

I'd try add the alias db entry to your MySQL userprefs table.

real user is gill@test.com.
alias is gill@mytest.com

+--------------------------+------------------------+------------------------+--------+
| gill@test.com            | rewrite_header         | Subject subject [SPAM] |    136 |
| gill@test.com            | required_hits          | 4                      |    137 |
| gill@test.com            | report_safe            | 1                      |    138 |
| gill@test.com            | use_terse_report       | 0                      |    139 |
| gill@test.com            | always_add_headers     | 1                      |    140 |
| gill@test.com            | fold_headers           | 1                      |    141 |
| gill@test.com            | spam_level_stars       | 1                      |    142 |
| gill@test.com            | spam_level_char        | *                      |    143 |
| gill@test.com            | use_razor1             | 0                      |    144 |
| gill@test.com            | use_pyzor              | 0                      |    145 |
| gill@test.com            | skip_rbl_checks        | 0                      |    146 |
| gill@mytest.com          | rewrite_header         | Subject subject [SPAM] |    147 |
| gill@mytest.com          | required_hits          | 4                      |    148 |
| gill@mytest.com          | report_safe            | 1                      |    149 |
| gill@mytest.com          | use_terse_report       | 0                      |    150 |
| gill@mytest.com          | always_add_headers     | 1                      |    151 |
| gill@mytest.com          | fold_headers           | 1                      |    152 |
| gill@mytest.com          | spam_level_stars       | 1                      |    153 |
| gill@mytest.com          | spam_level_char        | *                      |    154 |
| gill@mytest.com          | use_razor1             | 0                      |    155 |
| gill@mytest.com          | use_pyzor              | 0                      |    156 |
| gill@mytest.com          | skip_rbl_checks        | 0                      |    157 |
+--------------------------+------------------------+------------------------+--------+

Did you give this type of set-up a go?