I have an old server with postfix -> maildrop -> spamassassin ->
courier setup.
I am installing a new server and would like to use dovecot instead of courier.
Currently I have postfix -> dovecot lda -> dovecot setup and emails are
delivered as expected. The problem is that I do not know how to get spamassassin
integrated into the mix since I am using the dovecot lda rather than maildrop. I
would rather keep things as simple as possible and not use maildrop + sendmail
just to use spamassasin but will if I have to.
So my question to the list is, how do you recommend me doing this? Are there any
documentation, howtos or tutorials which can help me configure this?
Below is the output of dovecot -n
Thanks,
Dhaval
------------dovecot -n---------------
# 1.2.15: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-5-686-bigmem i686 Debian 6.0.1 xfs
log_timestamp: %Y-%m-%d %H:%M:%S
ssl_cert_file: /etc/ssl/certs/secure.consoe.com.pem
ssl_key_file: /etc/ssl/certs/secure.consoe.com.key
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable: /usr/lib/dovecot/imap-login
mail_privileged_group: mail
mail_location: maildir:/home/vmail/%u
mbox_write_locks: fcntl dotlock
namespace:
type: private
separator: .
prefix: INBOX.
inbox: yes
list: yes
subscriptions: yes
lda:
postmaster_address: postmaster at patel.sh
auth_socket_path: /var/run/dovecot/auth-master
log_path: /home/vmail/dovecot-deliver.log
mail_plugins: sieve
global_script_path: /home/vmail/globalsieverc
auth default:
mechanisms: plain login
passdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
userdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
socket:
type: listen
client:
path: /var/run/dovecot/auth-client
mode: 432
master:
path: /var/run/dovecot/auth-master
mode: 384
user: vmail
group: vmail
On 11/06/2011 18:53, Dhaval Patel wrote:> I have an old server with postfix -> maildrop -> spamassassin -> courier setup. > I am installing a new server and would like to use dovecot instead of courier. > Currently I have postfix -> dovecot lda -> dovecot setup and emails are > delivered as expected. The problem is that I do not know how to get spamassassin > integrated into the mix since I am using the dovecot lda rather than maildrop.The simplest, and maybe fastest, is to use amavis-new as postfix contentfilter. -- Simone Caruso IT Consultant +39 349 65 90 805 p.iva: 03045250838
So I setup amavis-new and configured postfix/spamassassin/amavis. Mail is still delivered properly but I do not see the spamassassin info in the headers of the email. I configured amavis-new and set "sa_tag_level_deflt" to -999 so that it would always show up but no luck. I updated the spamassassin config and enabled it. I also tested spamassassin manually running "spamassassin -t < someemail" and that returns the email with the X-Spam in the headers. If this is not the correct place to ask, I apologize. Please direct me where I can find the answer. Thanks, Dhaval Simone Caruso <info at simonecaruso.com> wrote:>On 11/06/2011 18:53, Dhaval Patel wrote: >> I have an old server with postfix -> maildrop -> spamassassin -> couriersetup.>> I am installing a new server and would like to use dovecot instead ofcourier.>> Currently I have postfix -> dovecot lda -> dovecot setup and emails are >> delivered as expected. The problem is that I do not know how to getspamassassin>> integrated into the mix since I am using the dovecot lda rather thanmaildrop.> >The simplest, and maybe fastest, is to use amavis-new as postfix contentfilter. > > >-- >Simone Caruso >IT Consultant >+39 349 65 90 805 >p.iva: 03045250838
amavisd-new mailling lists :) amavis only adds the spamass headers to LOCAL domains, so you need to define your domains as local. Quoting Dhaval Patel <dhaval at patel.sh>:> So I setup amavis-new and configured postfix/spamassassin/amavis. > Mail is still > delivered properly but I do not see the spamassassin info in the > headers of the > email. > > I configured amavis-new and set "sa_tag_level_deflt" to -999 so that it would > always show up but no luck. > I updated the spamassassin config and enabled it. > I also tested spamassassin manually running "spamassassin -t < someemail" and > that returns the email with the X-Spam in the headers. > > If this is not the correct place to ask, I apologize. Please direct > me where I > can find the answer. > > Thanks, > Dhaval > > > > Simone Caruso <info at simonecaruso.com> wrote: > >> On 11/06/2011 18:53, Dhaval Patel wrote: >>> I have an old server with postfix -> maildrop -> spamassassin -> courier > setup. >>> I am installing a new server and would like to use dovecot instead of > courier. >>> Currently I have postfix -> dovecot lda -> dovecot setup and emails are >>> delivered as expected. The problem is that I do not know how to get > spamassassin >>> integrated into the mix since I am using the dovecot lda rather than > maildrop. >> >> The simplest, and maybe fastest, is to use amavis-new as postfix >> contentfilter. >> >> >> -- >> Simone Caruso >> IT Consultant >> +39 349 65 90 805 >> p.iva: 03045250838