Query about list policy?

2017-02-28 Thread Andy R

Greetings for a second time today,


As a quick query, what is the policy about linking to user-scripts and 
small addons ? I've used a couple of perl scripts to help me with dspam 
training from dovecot-antispam and imapsieve triggering for sorting and 
feeding messages to dspam in the background. They are most likely not 
the greatest but seem to work at least. I've posted them to github, but 
just wanted to ask whether it was an issue if i linked them here, or if 
they would need any review before posting or any other answer?



Many thanks, and to Aki Tuomi and the dovecot team also.


Andy R.


Re: Replacement for antispam plugin

2017-02-28 Thread Andy R

Greetings to the list :)


I've been meaning to ask a couple of questions about the imapsieve for 
antispam.



Firstly, I guess that the example at the bottom of the page 
"https://wiki2.dovecot.org/Pigeonhole/Sieve/Plugins/IMAPSieve;  is meant 
to link to the new example at 
"https://wiki2.dovecot.org/HowTo/AntispamWithSieve; now?



Also... in "imapsieve_mailboxX_name = ${directory}"  is the string a 
literal, or is it working with the 'special use' flagged directories 
from the xx-mailboxes.conf? I'm asking as though I only have a few users 
to worry about, different mail clients each have their favourite special 
folders. IE thunderbird uses "junk" but one Outlook express version 
likes "Junk E-mail" and I have a different favourite from another 
version of OE too. So in mailboxes.conf I just added extra special use 
lines which seemed to make things happy. Otherwise I ended up with the 
server configured 'spam' folder showing as basic folder, and then each 
client adding it's own chosen spamfolder each time too.



But, if the imapsieve is only matching to literal foldernames, should I 
just duplicate the trigger lines for each type of junk folder or is 
there a method to have the sieve script enumerate all the options listed 
by 'special use'  or is there a better method for this? I want to put 
the spam-mail-filing script as a global sieve script as all users will 
need it, rather than duplicating out for each user.




Many thanks ,


Andy R


On 10/02/2017 09:06, Aki Tuomi wrote:

Hi!
Since antispam plugin is deprecated and we would really prefer people
not to use it, we wrote instructions on how to replace it with
IMAPSieve. Comments and suggestions are most welcome.

https://wiki.dovecot.org/HowTo/AntispamWithSieve

---
Aki Tuomi
Dovecot oy



Re: [Dovecot] dovecot-lmtp does not work

2013-05-31 Thread Andy R

Hi there,

Have you added 'lmtp' to the protocols line in dovecot.conf ? It's not 
listed in your doveconf -n.


IE :-

# Protocols we want to be serving.
#protocols = imap pop3 sieve
protocols = imap pop3 sieve lmtp


For logging, set mail_debug = yes (in 
/etc/dovecot/conf.d/10-logging.conf on my system).




On 31/05/2013 15:33, He Shiming wrote:

Dear Community,

I've got a weird problem regarding lmtp setup with dovecot 2.0.19 on ubuntu
12.04.2 LTS. My reference of the configuration is at
https://library.linode.com/email/postfix/postfix2.9.6-dovecot2.0.19-mysql ,
and my configuration is identical to it with the exception of opening the
110 pop3 port, and enabling plain text auth. Everything from imap, smtp,
pop3 (including auth) works except for lmtp.

I saw thousands of the following messages in /var/log/mail.log:

May 31 09:05:24 postfix/lmtp[3664]: 2FD80321F4: to=myaddr...@me.com,
relay=none, delay=0.41, delays=0.41/0/0/0, dsn=4.4.1, status=deferred
(connect to me.com[private/dovecot-lmtp]: No such file or directory)

And it happens when an incoming email is received.

Here's the output of configuration:

root@prosp:/etc/dovecot/conf.d# dovecot -n
# 2.0.19: /etc/dovecot/dovecot.conf
# OS: Linux 3.8.4-linode50 i686 Ubuntu 12.04.2 LTS ext3
auth_mechanisms = plain login
disable_plaintext_auth = no
mail_location = maildir:/var/mail/vhosts/%d/%n
mail_privileged_group = mail
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character
vacation subaddress comparator-i;ascii-numeric relational regex imap4flags
copy include variables body enotify environment mailbox date ihave
passdb {
   args = /etc/dovecot/dovecot-sql.conf.ext
   driver = sql
}
plugin {
   sieve = ~/.dovecot.sieve
   sieve_dir = ~/sieve
}
protocols = imap pop3 sieve
service auth-worker {
   user = vmail
}
service auth {
   unix_listener /var/spool/postfix/private/auth {
 group = postfix
 mode = 0666
 user = postfix
   }
   unix_listener /var/spool/postfix/private/dovecot-auth {
 group = postfix
 mode = 0660
 user = postfix
   }
   unix_listener auth-userdb {
 mode = 0600
 user = vmail
   }
   user = dovecot
}
service imap-login {
   inet_listener imap {
 port = 0
   }
}
service lmtp {
   unix_listener /var/spool/postfix/private/dovecot-lmtp {
 group = postfix
 mode = 0600
 user = postfix
   }
}
service pop3-login {
   inet_listener pop3 {
 port = 110
   }
}
ssl_cert = /etc/ssl/certs/dovecot.pem
ssl_cipher_list =
ALL:!LOW:!SSLv2:ALL:!aNULL:!ADH:!eNULL:!EXP:RC4+RSA:+HIGH:+MEDIUM
ssl_key = /etc/ssl/private/dovecot.pem
userdb {
   args = uid=vmail gid=vmail home=/var/mail/vhosts/%d/%n
   driver = static
}
protocol imap {
   imap_client_workarounds = delay-newmail
   mail_max_userip_connections = 10
}
protocol pop3 {
   mail_max_userip_connections = 10
   pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
}
protocol lda {
   deliver_log_format = msgid=%m: %$
   mail_plugins = sieve
   postmaster_address = postmaster
   quota_full_tempfail = yes
   rejection_reason = Your message to %t was automatically rejected:%n%r
}

This problem has been discussed here:
http://serverfault.com/questions/512219/dovecot-lmtp-does-not-exist . I've
then tried switching from unix socket to inet listener, and still got the
same result. I cannot get lmtp service to start.

I'm also seeing no errors in the log when dovecot is restarted (see the
above link for the log).

I'm wondering how do I go about troubleshooting this problem? What might be
the possible cause? Is it possible for dovecot to output verbose logs
regarding service startups?

Thank you.