ESGLinux
2009-May-20 08:41 UTC
[Dovecot] using postfix+dovecot+squirrell+amavisd and spam folder per user
Hi All, As I say in the subject I use postfix, dovecot with squirrellmail as webmail and amavisd as spam control, My problem is that all the spam I catch is send to /var/lib/amavis/virus but I want to send this mails to the spam folder of each user. This way the user can see the mails and determine if they are really spam or false positive. I dont know exactly what element of the system is the responsible to do that (dovecot, amavis, posttix) any suggest? (although only be the initial point to look for it) Thanks in advance ESG
Karel Hendrych
2009-May-20 08:48 UTC
[Dovecot] using postfix+dovecot+squirrell+amavisd and spam folder per user
Hi, I would suggest you to use dovecot LDA (local delivery agent) and sieve for mail sorting. Mail gets tagged by amavis/antispam and dovecot LDA (run by postfix) places the junk mail to right folder based on your sieve match on various headers. -- Karel ESGLinux wrote:> Hi All, > > As I say in the subject I use postfix, dovecot with squirrellmail as webmail > and amavisd as spam control, > > My problem is that all the spam I catch is send to /var/lib/amavis/virus but > I want to send this mails to the spam folder of each user. > > This way the user can see the mails and determine if they are really spam or > false positive. > > I dont know exactly what element of the system is the responsible to do that > (dovecot, amavis, posttix) > > any suggest? (although only be the initial point to look for it) > > Thanks in advance > > ESG >-------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 2562 bytes Desc: S/MIME Cryptographic Signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20090520/0d8aa2e0/attachment-0002.bin>
ESGLinux
2009-May-20 09:49 UTC
[Dovecot] using postfix+dovecot+squirrell+amavisd and spam folder per user
Hi Karel, Thank you very much for your answer, I?m going to investigate lda as you say In deed, I?m looking at my dovecot.conf and I realize I have this entry: protocol lda { postmaster_address = postmaster at dominio.com mail_plugins = quota log_path = /var/log/dovecot-deliver.log info_log_path = /var/log/dovecot-deliver.log } I don?t know what is this for, but I?m going to investigate it. On the other hand, I use mysql and virtual domains, is your answer valid for this kind of configuration thanks again, ESG 2009/5/20 Karel Hendrych <karlos at karlos.cz>> Hi, > I would suggest you to use dovecot LDA (local delivery agent) and sieve > for mail sorting. Mail gets tagged by amavis/antispam and dovecot LDA > (run by postfix) places the junk mail to right folder based on your > sieve match on various headers. > > -- > Karel > > ESGLinux wrote: > > Hi All, > > > > As I say in the subject I use postfix, dovecot with squirrellmail as > webmail > > and amavisd as spam control, > > > > My problem is that all the spam I catch is send to /var/lib/amavis/virus > but > > I want to send this mails to the spam folder of each user. > > > > This way the user can see the mails and determine if they are really spam > or > > false positive. > > > > I dont know exactly what element of the system is the responsible to do > that > > (dovecot, amavis, posttix) > > > > any suggest? (although only be the initial point to look for it) > > > > Thanks in advance > > > > ESG > > >
ESGLinux
2009-May-20 11:06 UTC
[Dovecot] using postfix+dovecot+squirrell+amavisd and spam folder per user
HI again, I cant get this work. I have followed these instructions: http://wiki.dovecot.org/LDA/Postfix Now I have this in my configuratio files: main.cf: .... virtual_transport = dovecot ..... master.cf: .... dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/libexec/dovecot/deliver -f ${sender} -d ${recipient} ... dovecot.conf: protocol lda { postmaster_address = postmaster at xeridia.com mail_plugins = quota cmusieve #sieve_global_dir = /etc/dovecot/sieve/ sieve = /etc/dovecot/sieve/dovecot.sieve log_path = /var/log/dovecot-deliver.log info_log_path = /var/log/dovecot-deliver.log } but when I send mails I don?t see that it uses dovecot lda at all: this is an extract of the log: ay 20 12:55:49 SBPRUEBAS postfix/cleanup[7049]: 9546769339: message-id=< 20090520105549.9546769339 at SBPRUEBAS.dominio.com> May 20 12:55:49 SBPRUEBAS postfix/qmgr[7039]: 9546769339: from=< root at xerida.com>, size=314, nrcpt=1 (queue active) May 20 12:55:49 SBPRUEBAS amavis[6965]: (06965-01) (!!)WARN: all primary virus scanners failed, considering backups May 20 12:55:51 SBPRUEBAS postfix/smtpd[7056]: connect from unknown[127.0.0.1] May 20 10:55:51 SBPRUEBAS postfix/smtpd[7056]: 85D616933C: client=unknown[127.0.0.1] May 20 12:55:51 SBPRUEBAS postfix/cleanup[7049]: 85D616933C: message-id=< 20090520105549.9546769339 at SBPRUEBAS.dominio.com> May 20 12:55:51 SBPRUEBAS postfix/qmgr[7039]: 85D616933C: from=< root at xerida.com>, size=760, nrcpt=1 (queue active) May 20 12:55:51 SBPRUEBAS amavis[6965]: (06965-01) Passed CLEAN, < root at xerida.com> -> <prueba at pruebax2.com>, Message-ID: < 20090520105549.9546769339 at SBPRUEBAS.dominio.com>, mail_id: eaVsoxO6Fxg4, Hits: 1.374, size: 314, queued_as: 85D616933C, 1926 ms May 20 12:55:51 SBPRUEBAS postfix/smtp[7052]: 9546769339: to=< prueba at pruebax2.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=2, delays=0.03/0.01/0.01/1.9, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=06965-01, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 85D616933C) May 20 12:55:51 SBPRUEBAS postfix/qmgr[7039]: 9546769339: removed May 20 12:55:51 SBPRUEBAS postfix/virtual[7061]: 85D616933C: to=< prueba at pruebax2.com>, relay=virtual, delay=0.03, delays=0.01/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to maildir) May 20 12:55:51 SBPRUEBAS postfix/qmgr[7039]: 85D616933C: removed I think I?m missing something, but I dont know what. thanks in advance for your answers ESG
Charles Marcus
2009-May-20 13:01 UTC
[Dovecot] using postfix+dovecot+squirrell+amavisd and spam folder per user
On 5/20/2009, ESGLinux (esggrupos at gmail.com) wrote:> main.cf: > .... > virtual_transport = dovecot > .....Show postconf -n output instead... Did you reload postfix after making the change? -- Best regards, Charles
ESGLinux
2009-May-20 16:14 UTC
[Dovecot] using postfix+dovecot+squirrell+amavisd and spam folder per user
2009/5/20 Charles Marcus <CMarcus at media-brokers.com>> On 5/20/2009, ESGLinux (esggrupos at gmail.com) wrote: > > main.cf: > > .... > > virtual_transport = dovecot > > ..... > > Show postconf -n output instead...Here is,: # postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases broken_sasl_auth_clients = yes command_directory = /usr/sbin config_directory = /etc/postfix content_filter = smtp-amavis:[127.0.0.1]:10024 daemon_directory = /usr/libexec/postfix debug_peer_level = 2 home_mailbox = Maildir/ html_directory = no inet_interfaces = all inet_protocols = ipv4 mail_owner = postfix mailbox_size_limit = 0 mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man mydestination = sbpruebas.dominio.com, localhost mydomain = dominio.com mynetworks = all myorigin = xerida.com newaliases_path = /usr/bin/newaliases.postfix queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES receive_override_options = no_address_mappings recipient_delimiter = + relay_domains = mysql:/etc/postfix/mysql_virtual_relay_domains_maps.cf sample_directory = /usr/share/doc/postfix-2.3.3/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop smtpd_recipient_restrictions = permit_mynetworks, permit_auth_destination, permit_sasl_authenticated, check_relay_domains smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = $myhostname smtpd_sasl_path = private/auth smtpd_sasl_security_options = noanonymous smtpd_sasl_type = dovecot transport_maps = mysql:/etc/postfix/mysql_virtual_transport_maps.cf unknown_local_recipient_reject_code = 550 virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf virtual_create_maildirsize = yes virtual_gid_maps = static:600 virtual_mailbox_base = /home/mail virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf virtual_mailbox_limit_maps = mysql:/etc/postfix/ mysql_virtual_mailbox_limit_maps.cf virtual_mailbox_limit_override = yes virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf virtual_maildir_limit_message = Disculpa, pero el buzon del destinetario esta lleno. virtual_minimum_uid = 600 virtual_overquota_bounce = yes virtual_transport = dovecot virtual_uid_maps = static:600 Did you reload postfix after making the change? Yes I did, several times ;-) Thanks ESG --> > Best regards, > > Charles >
Possibly Parallel Threads
- is possible to sen sms with asterisk in Spain?
- problem joining a samba PDC from WIN7 clients
- Rejecting auth request from client xxx machine account, win7,
- Wbinfo -Y couldn't work with idmap_rid for BUILTIN groups
- aggregate wind direction data with wind speed required