Re: [Dovecot] How to specify /var/spool/mail/m/i/mike

2008-11-11 Thread Jonathan Siegle

On Nov 10, 2008, at 12:25 PM, Network Operations wrote:

I was wondering if somebody could tell me how I can tell dovecot  
(IMAP) to read users' mail boxes at /var/spool/mail/{1st char}/{2nd  
char}/username .


For example:
Mailbox for user 'mike' would be located at /var/spool/mail/m/i/mike
'karen' would be at /var/spool/mail/k/a/karen
etc...



Look at http://wiki.dovecot.org/Variables. I think the notation would  
be %1u/%1.1u/%u



-Jonathan

smime.p7s
Description: S/MIME cryptographic signature


Re: [Dovecot] Dovecot and Bogofilter

2008-11-11 Thread Matthias-Christian Ott
Steffen Kaiser wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On Mon, 10 Nov 2008, Matthias-Christian Ott wrote:

 If you want something and Dovecot's deliver doesn't fit your needs,
 consider maildrop, http://www.courier-mta.org/maildrop/

 Looks a bit bloated to me.

 I'm not sure if I missed that part about the shell script, someone  
 suggested.

 You could use something like:

 #!/bin/bash

 bogofilter | dovecot-deliver $@

 replacing the orginal dovecot-deliver in the conf.
 If bogofilter does not support to pipe the message through, there will be 
 other ways.

 Besides that you have just one additional exec() (the shell) for each  
 delivery and you already inject the modified message to deliver. Or did I 
 misunderstood the problem, and you want the antispam to change the  
 message, when a mail is copied into / out of the SPAM folder via IMAP?

Yes, but currently it doesn't matter, because I decided to not use
spam filtering at the moment. Mutt just sucks and all this crappy mail
software that's still around. I can't see this from a pragmatic point
of view anymore, it's so fucked up.

It just annoys me, I'll keep my mail server at low traffic and avoid to
use all these things. This whole issue just showed me yet another time
that UNIX is really dead and forgotten. I have better things to do than
just configuring my computers, finding workarounds etc. I wish we could
somehow turn the clocks back 30 years and do all this crap right. In
my opinion the whole software industry (including the Free Software
community which degenerated into a periphery position) is just a bloated
bubble that will disastrously collapse at some point of time. I'm yet
another time glad that I don't have to work in this business.

So I think we can regard this issue as resolved.

Sorry for annoying you with my pessimistic opinion about software, but it
just bothers that after nearly four centuries of UNIX that nobody can get
simple tasks like mail delivery right (Yes, I know there are workarounds,
but there are tons of magazines that deal with workarounds for some big
proprietary operating system and it's still pain to use it).

 Bye,

 - -- Steffen Kaiser

Regards,
Matthias-Christian


Re: [Dovecot] Occasional messages cause Thunderbird to loop

2008-11-11 Thread Charles Marcus
On 11/11/2008 12:52 PM, Allen Belletti wrote:
 I'm not sure if this is something which crept into a recent release of
 Dovecot, or a problem with T'bird, or something else entirely.  I had
 suspected corrupt messages the first time or two, and was once able to
 copy such a message into my own Maildir/cur directory and have it fail
 for me.  Since then I've not been able to replicate this feat.  I also
 thought that it might have been the Dovecot indices becoming corrupt but
 today I tried purging them for an affected user, and the problem still
 showed up.  In addition, for the first time today that user reported a
 message which originally (as of 6 Nov. 2008) worked fine but today
 demonstrates the issue.
 
 If anyone has seen anything like this or has suggestions to try, please
 let me know.  If necessary I can go to full debug-logging with Dovecot
 but I'd prefer to avoid that if possible :)

Maybe some basic info would be helpful?

Dovecot version? Output of dovecot -n?

-- 

Best regards,

Charles


[Dovecot] Occasional messages cause Thunderbird to loop

2008-11-11 Thread Allen Belletti
For the last four weeks or so, I have been getting very occasional 
reports of stuck messages from three users of my mail server.  When 
this occurs, Thunderbird's status display in the bottom left will 
alternate rapidly between Opening folder and Checking mail server 
capabilities, and will never display the message.


I'm not sure if this is something which crept into a recent release of 
Dovecot, or a problem with T'bird, or something else entirely.  I had 
suspected corrupt messages the first time or two, and was once able to 
copy such a message into my own Maildir/cur directory and have it fail 
for me.  Since then I've not been able to replicate this feat.  I also 
thought that it might have been the Dovecot indices becoming corrupt but 
today I tried purging them for an affected user, and the problem still 
showed up.  In addition, for the first time today that user reported a 
message which originally (as of 6 Nov. 2008) worked fine but today 
demonstrates the issue.


If anyone has seen anything like this or has suggestions to try, please 
let me know.  If necessary I can go to full debug-logging with Dovecot 
but I'd prefer to avoid that if possible :)


Thanks,
Allen

--
Allen Belletti
[EMAIL PROTECTED] 404-894-6221 Phone
Industrial and Systems Engineering404-385-2988 Fax
Georgia Institute of Technology



Re: [Dovecot] Unbreakable NFS locking issues...

2008-11-11 Thread Noel Butler
Firstly, posting the same message with a slightly modified subject wont
get you any answers any sooner, please refrain from doing this, it only
gives you a bad name and may have the opposite affect to one you desire.

On Tue, 2008-11-11 at 10:06, Rod Treweek wrote:

 Hello All,
 
 We are struggling to find a solution to a problem we are encountering
 with a load-balanced email setup. Currently, we have a Coyote loadbalancer,
 and 3 Postfix/Dovecot nodes that then get their information from a mysql
 database.  The problem is that after a couple weeks, we start seeing NFS
 locking issues occur, which then takes email completely down, requiring a
 site visit to basically do an interactive mode reboot to shut off NFS so
 that we can remount the filesystem again.  We have our mailstore on an
 Aberdeen NAS which is accessed over NFS v. 4.
 

Not seen this before, but we use Foundry LB's and NetApp filers.
Coyote Is BSD based isn't it... How is your setup, you are not running
the NFS mounts through the LB as well are you? I would hope they are on
a separate private LAN


  Dovecot version 1.1.2



Generally when lodging requests for help, it pays to use the latest
version of software, 1.1.2 is old.



 Here's the relevant mysql string:


If the queries work at all, there's nothing wrong with them.


 mbox:/NFS1MAILDIR/mailSysV2/%d/%u:INDEX=/usr/local/mail/indexes/%d/%1n/%n


mbox over NFS ? That is asking for trouble, mbox is *not* NFS safe, you
are best changing to maildir which is.



Cheers



[Dovecot] Error: Maximum number of mail processes exceeded

2008-11-11 Thread Antonio Casado Rodríguez

Hi, i don't know. Is normal login_max_processes_count  1024??

Our environment is about 1700 users (imaps + thunderbird or 
imaps+horde). The server is RedHat Enterprise Linux 5.2


User logins different in a hour:
# cat dovecot.info | grep 'Nov 11 10' | grep login: Login | cut -d'' 
-f2 | cut -d'' -f1 | sort | uniq | wc -l

685

Logins in a hour:
# cat dovecot.info | grep 'Nov 11 10' | grep login: Login | wc -l
5749

Is normal??
Should i increment login_max_processes_count?

# dovecot -n
# 1.0.13: /etc/dovecot.conf
log_path: /Correo/log/dovecot/dovecot.log
info_log_path: /Correo/log/dovecot/dovecot.info
protocols: imaps pop3 managesieve
ssl_cert_file: /etc/pki/dovecot/certs/mycert.crt
ssl_key_file: /etc/pki/dovecot/private/mycert.key
login_dir: /var/run/dovecot/login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
login_executable(managesieve): /usr/libexec/dovecot/managesieve-login
login_process_per_connection: no
login_max_processes_count: 1024
first_valid_uid: 200
mail_location: maildir:%h/..
mail_executable(default): /usr/local/sbin/post-login-imap-dovecot
mail_executable(imap): /usr/local/sbin/post-login-imap-dovecot
mail_executable(pop3): /usr/local/sbin/post-login-pop3-dovecot
mail_executable(managesieve): /usr/libexec/dovecot/managesieve
mail_plugins(default): quota imap_quota
mail_plugins(imap): quota imap_quota
mail_plugins(pop3): quota
mail_plugins(managesieve):
mail_plugin_dir(default): /usr/lib64/dovecot/imap
mail_plugin_dir(imap): /usr/lib64/dovecot/imap
mail_plugin_dir(pop3): /usr/lib64/dovecot/pop3
mail_plugin_dir(managesieve): /usr/lib64/dovecot/managesieve
imap_client_workarounds(default): outlook-idle delay-newmail
imap_client_workarounds(imap): outlook-idle delay-newmail
imap_client_workarounds(pop3): outlook-idle
imap_client_workarounds(managesieve): outlook-idle
sieve_storage(default):
sieve_storage(imap):
sieve_storage(pop3):
sieve_storage(managesieve): ~/sieve
sieve(default):
sieve(imap):
sieve(pop3):
sieve(managesieve): ~/.dovecot.sieve
namespace:
 type: private
 separator: /
 location: maildir:%h/..
 inbox: yes
auth default:
 passdb:
   driver: pam
 userdb:
   driver: passwd
plugin:
 quota: maildir:storage=1048576




Re: [Dovecot] dovecot-antispam crm114 config

2008-11-11 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, 11 Nov 2008, Peter Fern wrote:


Does anyone have a working crm114 config for dovecot-antispam?  I have


to debug antispam backends that spawns another program I recommend to 
replace the call with a shell script, e.g.:


#!/bin/bash

tmpf=/tmp/antispam.log.$$

(
 date
 id
 let i=0
 for arg; do
  let i=1+i
  echo arg $i $arg
 done
 cat -  $tmpf.msg
 command $@  $tmpf.msg
 rc=$?
 echo rc=$rc
 date
 exit $rc
) 2 $tmpf.err  $tmpf.log

Bye,

- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFJGXKNVJMDrex4hCIRAmreAJsGwVRLtHUxuu+REg8oG5t9IK2g+QCfcRqs
RO+S8EKIoSXx24GQ3miUY+0=
=Y3PO
-END PGP SIGNATURE-


Re: [Dovecot] antispam plugin claims antispam signature not found

2008-11-11 Thread Johannes Berg
On Tue, 2008-11-11 at 11:42 +0100, Johannes Berg wrote:

 Not sure, I personally think that moving them silently makes errors
 harder to diagnose. I'll add an option since then you can set this
 option (antispam_missing_signature = [error|move]) to move after you've
 tested and verified that it works just fine.

Try this patch please, I have only compiled it so far. (there might be
rejects in the signature-log.c file unless you update to the current git
tree but you don't care about that)

diff --git a/antispam.7 b/antispam.7
index d07c1d0..e26db69 100644
--- a/antispam.7
+++ b/antispam.7
@@ -108,6 +108,13 @@ plugin {
 # mail signature (used with any backend requiring a signature)
 antispam_signature = X-DSPAM-Signature
 
+# action to take on mails without signature
+# (used with any backend requiring a signature)
+# (we recommend only setting this to 'move' after verifying that the
+# whole setup is working)
+# antispam_signature_missing = move # move silently without training
+antispam_signature_missing = error
+
 # semicolon-separated list of Trash folders (default unset i.e. none)
 # antispam_trash =
 # antispam_trash = trash;Trash;Deleted Items
diff --git a/signature-log.c b/signature-log.c
index ab8cd6d..5b7b306 100644
--- a/signature-log.c
+++ b/signature-log.c
@@ -99,7 +99,12 @@ int backend_handle_mail(struct mailbox_transaction_context 
*t,
return -1;
}
 
-   signature = signature_extract(t, mail);
+   ret = signature_extract(t, mail, signature);
+   if (ret)
+   return ret;
+
+   if (!signature)
+   return 0;
 
switch (wanted) {
case CLASS_SPAM:
diff --git a/signature.c b/signature.c
index 7f9d83b..7ad29d6 100644
--- a/signature.c
+++ b/signature.c
@@ -5,6 +5,7 @@
 #include mail-storage-private.h
 
 const char *signature_hdr = X-DSPAM-Signature;
+static int signature_nosig_ignore = 0;
 
 void signature_init(void)
 {
@@ -12,6 +13,16 @@ void signature_init(void)
if (tmp)
signature_hdr = tmp;
debug(signature header line is \%s\\n, signature_hdr);
+
+   tmp = get_setting(SIGNATURE_MISSING);
+   if (!tmp)
+   tmp = error;
+   if (strcmp(tmp, move) == 0) {
+   signature_nosig_ignore = 1;
+   debug(will silently move mails with missing signature\n);
+   } else if (strcmp(tmp, error) != 0) {
+   debug(invalid signature_missing setting '%s', ignoring\n, 
tmp);
+   }
 }
 
 int signature_extract_to_list(struct mailbox_transaction_context *t,
@@ -23,10 +34,14 @@ int signature_extract_to_list(struct 
mailbox_transaction_context *t,
 
signatures = get_mail_headers(mail, signature_hdr);
if (!signatures || !signatures[0]) {
-   mail_storage_set_error(t-box-storage,
-  ME(NOTPOSSIBLE)
-  antispam signature not found);
-   return -1;
+   if (!signature_nosig_ignore) {
+   mail_storage_set_error(t-box-storage,
+  ME(NOTPOSSIBLE)
+  antispam signature not found);
+   return -1;
+   } else {
+   return 0;
+   }
}
 
while (signatures[1])
@@ -42,23 +57,30 @@ int signature_extract_to_list(struct 
mailbox_transaction_context *t,
return 0;
 }
 
-const char *signature_extract(struct mailbox_transaction_context *t,
- struct mail *mail)
+int signature_extract(struct mailbox_transaction_context *t,
+ struct mail *mail, const char **signature)
 {
const char *const *signatures;
 
signatures = get_mail_headers(mail, signature_hdr);
if (!signatures || !signatures[0]) {
-   mail_storage_set_error(t-box-storage,
-  ME(NOTPOSSIBLE)
-  antispam signature not found);
-   return NULL;
+   if (!signature_nosig_ignore) {
+   mail_storage_set_error(t-box-storage,
+  ME(NOTPOSSIBLE)
+  antispam signature not found);
+   return -1;
+   } else {
+   *signature = NULL;
+   return 0;
+   }
}
 
while (signatures[1])
signatures++;
 
-   return signatures[0];
+   *signature = signatures[0];
+
+   return 0;
 }
 
 void signature_list_free(struct siglist **list)
diff --git a/signature.h b/signature.h
index e25d1b5..1384924 100644
--- a/signature.h
+++ b/signature.h
@@ -16,8 +16,8 @@ void signature_init(void);
 int signature_extract_to_list(struct mailbox_transaction_context *t,
  

Re: [Dovecot] Unbreakable NFS locking issues...

2008-11-11 Thread Mark Zealey
Sounds like an issue with nfs 4 to me? We're running nfs3 very happily
no issues like this have happened. I don't see that running nfs4 offers
many advantages over v3 for the email workload.

Mark

--
Mark Zealey -- Shared Hosting Team Leader
Product Development * Webfusion
123-reg.co.uk, webfusion.co.uk, donhost.co.uk, supanames.co.uk

This mail is subject to http://www.gxn.net/disclaimer 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]
  On Behalf Of Rod Treweek
 Sent: 11 November 2008 00:07
 To: dovecot@dovecot.org
 Cc: Tait Grove
 Subject: [Dovecot] Unbreakable NFS locking issues...
 
 Hello All,
 
 We are struggling to find a solution to a problem we are 
 encountering
 with a load-balanced email setup. Currently, we have a Coyote 
 loadbalancer,
 and 3 Postfix/Dovecot nodes that then get their information 
 from a mysql
 database.  The problem is that after a couple weeks, we start 
 seeing NFS
 locking issues occur, which then takes email completely down, 
 requiring a
 site visit to basically do an interactive mode reboot to shut 
 off NFS so
 that we can remount the filesystem again.  We have our mailstore on an
 Aberdeen NAS which is accessed over NFS v. 4.
 
  Dovecot version 1.1.2
 
 Here's the relevant mysql string:
 
 grep -v '^ *\(#.*\)\?$' dovecot-mysql.conf
 driver = mysql
 connect = host=X.X.X.X dbname=Something user=Something 
 password=Something
 password_query = SELECT username as user, password,
 concat('/NFS1MAILDIR/mailSysV2/', maildir) as userdb_home,
 concat('maildir:/NFS1MAILDIR/mailSysV2/', maildir) as 
 userdb_mail, 143 as
 userdb_uid, 143 as userdb_gid, concat('*:bytes=', 
 floor(quota*1024)) AS
 quota_rule FROM mailbox WHERE username = '%u' AND active = '1'
 user_query = SELECT concat('/NFS1MAILDIR/mailSysV2/', 
 maildir) as home,
 concat('maildir:/NFS1MAILDIR/mailSysV2/', maildir) as mail,
 concat('maildir:/NFS1MAILDIR/mailSysV2/', maildir) as 
 maildir, 143 AS uid,
 143 AS gid, concat('*:bytes=', floor(quota*1024)) AS 
 quota_rule FROM mailbox
 WHERE username = '%u' AND active = '1'
 
 
 And here's what our configuration is on each of the nodes:
 
  dovecot -n
 # 1.1.2: /usr/local/etc/dovecot.conf
 protocols: imap pop3
 ssl_ca_file: /usr/local/etc/dovecot/certs/tdpserver.crt
 ssl_cert_file: /usr/local/etc/dovecot/certs/tdpserver.crt
 ssl_key_file: /usr/local/etc/dovecot/certs/tdpserver.key
 ssl_parameters_regenerate: 0
 ssl_cipher_list: ALL:!LOW:!SSLv2
 disable_plaintext_auth: no
 login_dir: /var/run/dovecot/login
 login_executable(default): /usr/local/libexec/dovecot/imap-login
 login_executable(imap): /usr/local/libexec/dovecot/imap-login
 login_executable(pop3): /usr/local/libexec/dovecot/pop3-login
 login_user: postfix
 login_greeting: Something witty here..
 login_process_per_connection: no
 login_max_connections: 512
 max_mail_processes: 2048
 mail_max_userip_connections: 50
 verbose_proctitle: yes
 first_valid_uid: 69
 last_valid_uid: 500
 first_valid_gid: 69
 last_valid_gid: 500
 mail_access_groups: postfix
 mail_privileged_group: postfix
 mail_location:
 mbox:/NFS1MAILDIR/mailSysV2/%d/%u:INDEX=/usr/local/mail/indexe
 s/%d/%1n/%n
 mmap_disable: yes
 dotlock_use_excl: no
 mail_nfs_storage: yes
 mail_nfs_index: yes
 mail_executable(default): /usr/local/libexec/dovecot/imap
 mail_executable(imap): /usr/local/libexec/dovecot/imap
 mail_executable(pop3): /usr/local/libexec/dovecot/pop3
 mail_plugins(default): quota imap_quota
 mail_plugins(imap): quota imap_quota
 mail_plugins(pop3): quota
 mail_plugin_dir(default): /usr/local/lib/dovecot/imap
 mail_plugin_dir(imap): /usr/local/lib/dovecot/imap
 mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3
 imap_client_workarounds(default): delay-newmail netscape-eoh
 tb-extra-mailbox-sep
 imap_client_workarounds(imap): delay-newmail netscape-eoh
 tb-extra-mailbox-sep
 imap_client_workarounds(pop3):
 pop3_client_workarounds(default):
 pop3_client_workarounds(imap):
 pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
 auth default:
   mechanisms: login plain
   user: dovecot
   passdb:
 driver: sql
 args: /usr/local/etc/dovecot-mysql.conf
   userdb:
 driver: sql
 args: /usr/local/etc/dovecot-mysql.conf
   socket:
 type: listen
 client:
   path: /var/spool/postfix/private/auth
   mode: 432
   user: postfix
   group: postfix
 master:
   path: /var/run/dovecot/auth-master
   mode: 384
   user: dovecot
   group: dovecot
 plugin:
   quota: dict:user::proxy::quota
   imap_quota: dict:user::proxy::quota
   quota_rule: *:storage=528576
 dict:
   quota: mysql:/usr/local/etc/dovecot/dovecot-dict-quota.conf
 
 
 
 Any help you can offer is greatly, greatly appreciated, as 
 well as opinions
 on any other 'validated' postfix/dovecot email enterprise 
 design solutions.
 
 Thanks Very Much In Advance,
 
 R.T
 


Re: [Dovecot] dovecot-antispam crm114 config

2008-11-11 Thread Johannes Berg

 works as expected, and the logs don't indicate anything useful that I
 can see as to why it isn't working from dovecot.
 
 Log follows:
 
[snipped]

the log doesn't indicate which plugin version you are using, can you
make sure you're using 1.1? There was a debugging code error in some
versions that lead to a failure in calling the reaver binary. Are you
getting errors in your mail client saying Failed to call reaver?

johannes


signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] antispam plugin claims antispam signature not found

2008-11-11 Thread Johannes Berg
On Tue, 2008-11-11 at 01:04 +0100, Eugene wrote:

 Just had this error myself. In my case, the cause was a large spam message 
 (above the configured MaxMessageSize parameter for DSPAM) that was skipped 
 during tests and thus no signature was added. Might this be true in your 
 case?
 
 As a general suggestion for Johannes: maybe it is better to ignore this 
 error silently, just move the message and don't call DSPAM?

Not sure, I personally think that moving them silently makes errors
harder to diagnose. I'll add an option since then you can set this
option (antispam_missing_signature = [error|move]) to move after you've
tested and verified that it works just fine.

johannes


signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Unbreakable NFS locking issues...

2008-11-11 Thread Rod Treweek
Thank you very much for your reply, Noel,


Firstly, posting the same message with a slightly modified subject wont
get you any answers any sooner, please refrain from doing this, it only
gives you a bad name and may have the opposite affect to one you desire.


Yeah, typical rookie move by posting twice...didn't see my post, so went
into the dovecot list setting for my account to adjust it to get a
confirmation, and then sent the message again.  Really stupid, and I
apologize.

Generally when lodging requests for help, it pays to use the latest
version of software, 1.1.2 is old.

Definitely will be doing this, but just wanted to get some information on
the locking issue first.

mbox over NFS ? That is asking for trouble, mbox is *not* NFS safe, you
are best changing to maildir which is.

Yeah, this is definitely wrong.  Everything is in maildir format on the
mailstore. Question is, why would this even be working at all if it's wrong
in the config? The sql connection string has maildir defined in it, so, I'm
wondering if that might explain it.  Also, the indexes are not local which I
believe has been the recommendation. Also Lockd appears to be enabled on
both sides.

-Rod


Firstly, posting the same message with a slightly modified subject wont
get you any answers any sooner, please refrain from doing this, it only
gives you a bad name and may have the opposite affect to one you desire.



On Tue, Nov 11, 2008 at 4:13 AM, Noel Butler [EMAIL PROTECTED] wrote:

 Firstly, posting the same message with a slightly modified subject wont
 get you any answers any sooner, please refrain from doing this, it only
 gives you a bad name and may have the opposite affect to one you desire.

 On Tue, 2008-11-11 at 10:06, Rod Treweek wrote:

  Hello All,
 
  We are struggling to find a solution to a problem we are encountering
  with a load-balanced email setup. Currently, we have a Coyote
 loadbalancer,
  and 3 Postfix/Dovecot nodes that then get their information from a mysql
  database.  The problem is that after a couple weeks, we start seeing NFS
  locking issues occur, which then takes email completely down, requiring a
  site visit to basically do an interactive mode reboot to shut off NFS so
  that we can remount the filesystem again.  We have our mailstore on an
  Aberdeen NAS which is accessed over NFS v. 4.
 

 Not seen this before, but we use Foundry LB's and NetApp filers.
 Coyote Is BSD based isn't it... How is your setup, you are not running
 the NFS mounts through the LB as well are you? I would hope they are on
 a separate private LAN


   Dovecot version 1.1.2



 Generally when lodging requests for help, it pays to use the latest
 version of software, 1.1.2 is old.



  Here's the relevant mysql string:


 If the queries work at all, there's nothing wrong with them.


  mbox:/NFS1MAILDIR/mailSysV2/%d/%u:INDEX=/usr/local/mail/indexes/%d/%1n/%n


 mbox over NFS ? That is asking for trouble, mbox is *not* NFS safe, you
 are best changing to maildir which is.



 Cheers



Thank you very much for your reply, Noel,




Yeah, typical rookie move by posting twice...didn't see my post, so went
into the dovecot list setting for my account to adjust it to get a
confirmation, and then sent the message again.  Really stupid, and I
apologize.


[Dovecot] alternate passwd/shadow

2008-11-11 Thread Jorg B.

I'm using an alternate password/shadow combo to authenticate IMAP users

and I can't seen to get it working...

I'm using:

passdb shadow {
args = /etc/dovecot/shadow
}

Can somebody please give me some hints on how to get this to work

Thanks
JB





[Dovecot] dovecot permissions

2008-11-11 Thread Fernando
Hello list,

I would like to configure POP3 email such that user mark (only) must be
able to retrieve email from my machine using POP3 from within mydomain.com

Any ideas?


Re: [Dovecot] Another dovecot-antispam plugin can't call dspam

2008-11-11 Thread Johannes Berg
On Tue, 2008-11-11 at 01:16 +0100, Eugene wrote:

  Thanks, I've added the Makefile patch, but the other one I'm not too
  sure about, it seems it would print things twice if the loop actually
  looped, so I left it for now. Also, your code can access
  buf[sizeof(buf)] which would be a buffer overrun.
 
 My idea was that if the loop actually loops (i.e. more that 1024 bytes 
 returned), we just log several lines in debug log.
 Sorry for buffer overrun, we have to check readsize of course.
 Or just pass sizeof(buf)-1 to read()

Yeah, somehow I got confused, I've added this now.

johannes


signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] dovecot-antispam crm114 config

2008-11-11 Thread Peter Fern
Johannes Berg wrote:
 the log doesn't indicate which plugin version you are using, can you
 make sure you're using 1.1? There was a debugging code error in some
 versions that lead to a failure in calling the reaver binary. Are you
 getting errors in your mail client saying Failed to call reaver?

 johannes
   

I'm on Gentoo, the last version in portage was git-20080829, have
upgraded to 1.1 and everything is working as expected, will submit an
updated ebuild to bugs.gentoo, thanks Johannes!

Pete


Re: [Dovecot] Unbreakable NFS locking issues...

2008-11-11 Thread Eduardo M KALINOWSKI
Well, you just posted your message three times...

Rod Treweek wrote:
 Yeah, typical rookie move by posting twice...didn't see my post, so went
 into the dovecot list setting for my account to adjust it to get a
 confirmation, and then sent the message again.  Really stupid, and I
 apologize.
   

It's a gmail feature: you do not see your own posts to a list, at
least not until you get a reply to them.


-- 
Bell Labs Unix -- Reach out and grep someone.

Eduardo M KALINOWSKI
[EMAIL PROTECTED]
http://move.to/hpkb



Re: [Dovecot] Dovecot and Bogofilter

2008-11-11 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, 10 Nov 2008, Matthias-Christian Ott wrote:


If you want something and Dovecot's deliver doesn't fit your needs,
consider maildrop, http://www.courier-mta.org/maildrop/


Looks a bit bloated to me.


I'm not sure if I missed that part about the shell script, someone 
suggested.


You could use something like:

#!/bin/bash

bogofilter | dovecot-deliver $@

replacing the orginal dovecot-deliver in the conf.
If bogofilter does not support to pipe the message through, there will be 
other ways.


Besides that you have just one additional exec() (the shell) for each 
delivery and you already inject the modified message to deliver. Or did I 
misunderstood the problem, and you want the antispam to change the 
message, when a mail is copied into / out of the SPAM folder via IMAP?


Bye,

- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFJGXAGVJMDrex4hCIRAhlvAKCcIA6KcRxhdIj1oPBam/pcWUu3uwCgvw0T
sgzJ2i4nzHcxR+UCY591n5w=
=xLhH
-END PGP SIGNATURE-


Re: [Dovecot] dovecot permissions

2008-11-11 Thread Fernando
By the way, my version is: 1.0.7

On Tue, Nov 11, 2008 at 11:29 AM, Fernando [EMAIL PROTECTED] wrote:

 Hello list,

 I would like to configure POP3 email such that user mark (only) must be
 able to retrieve email from my machine using POP3 from within mydomain.com

 Any ideas?



Re: [Dovecot] Install Configuring and run.

2008-11-11 Thread Marko Weber

Hello Thorsten ,
sorry then again 
details:  i got dspam working, it now scans incoming mails and tag them 
in the headers.


X-DSPAM-Result: = Spam
X-DSPAM-Confidence: = 0.9984
X-DSPAM-Probability: = 1.
X-DSPAM-Signature: = 1,491930ac25229173225906
X-DSPAM-Factors: 15,

so far okay.

i emerged dovecot-antispam. and thought its easy going , just paste the 
code snippet of man dovecot-antispam to the

imap section in the dovecot.conf . but thats not all i think.

i thought now, when moving a mail from incoming to SPAM something 
happens, but  despam.dbug and /var/log/messages dont show anything happen.


i did this in the dovecot.conf =

mail_plugins = antispam
 mail_plugin_dir = /usr/lib/dovecot/imap

 plugin {

   antispam_trash = trash;Trash;Deleted Items;Deleted Messages
   antispam_spam = SPAM;Spam
   antispam_dspam_binary = /usr/bin/dspam
   antispam_dspam_args = --user;%u

   }

but as told above , moving mails into folder SPAM or from SPAM to 
incoming dont causes any action the log.files



when i retstart dovecot i got following output on screen =

/etc/init.d/dovecot restart
Warning: Growing pool 'settings' with: 8192
* Stopping dovecot 
... 
[ ok ]

Warning: Growing pool 'settings' with: 8192
* Starting dovecot ...
Warning: Growing pool 'settings' with: 8192
ILoading modules from directory: /usr/lib/dovecot/imap
WGrowing pool 'module loader' with: 2048
IModule loaded: /usr/lib/dovecot/imap/lib90_antispam_plugin.so
IEffective uid=65534, gid=65534, home=
WGrowing pool 'antispam-pool' with: 
2048
[ ok ]


dovecot is running after restart and fully working, accepting mails , 
sending mails all oke.


dunno if i told before to you, i use postfix-dovecot-mysql setup, 
virtual users  domains


if you need any other config file or info lemme know.
i really want this nice tool to get working.

thank you

marko




Thorsten Vollmer schrieb:

On Sun, 2008-11-09 at 15:15 +0100, Marko Weber wrote:
  

Hello Thorsten,
i sorted out to get dspam working,
but it tags too much mails as spam, even mials that are not spam,

now thats the poinzt where dovecot-antispam comes in,
now my idea is, that mails that get spam tag by dspam,
to retrain by dovecot-antispam.
but i dont get thru it.
maybe this is now the pont where you can help me ?



Asking for help without providing any detail is rather pointless.

Thorsten

  


Re: [Dovecot] dovecot-antispam crm114 config

2008-11-11 Thread Johannes Berg
On Wed, 2008-11-12 at 08:38 +1100, Peter Fern wrote:

 I'm on Gentoo, the last version in portage was git-20080829, have
 upgraded to 1.1 and everything is working as expected, will submit an
 updated ebuild to bugs.gentoo, thanks Johannes!

Alright, cool. Sorry for not noticing that bug when I wrote that code,
somehow I didn't realise I was using the API wrongly.

johannes


signature.asc
Description: This is a digitally signed message part


[Dovecot] Dovecot master process

2008-11-11 Thread Steven F Siirila
We are running into a situation where Dovecot master is simply trying
to do too much.  It some situations, we are finding that there are
times in which it cannot service requests.  Restarting Dovecot seems
to help in these situations, possibly due to the fact that it no longer
has to manage its THOUSANDS of file descriptors for pipes to the many
imap/proxy processes that it uses for logging.  Is there a way to turn
off logging through the master process (in exchange for lesser security)?
If not, would it be easy to have the master process do its logging using
separate threads (which would help on some modern hardware)?  Finally,
would it be easy to delegate the task of logging to a dedicated process?

We are still running Dovecot 1.0.0 at this time, on Solaris 10 servers.

-- 

Steven F. Siirila   Office: WBOB, 621F
Internet Services   E-mail: [EMAIL PROTECTED]
Office of Information TechnologyVoice: (612) 626-0244
University of Minnesota Fax: (612) 626-7593


Re: [Dovecot] Dovecot master process

2008-11-11 Thread Timo Sirainen

On Nov 12, 2008, at 12:34 AM, Steven F Siirila wrote:


We are running into a situation where Dovecot master is simply trying
to do too much.  It some situations, we are finding that there are
times in which it cannot service requests.  Restarting Dovecot seems
to help in these situations, possibly due to the fact that it no  
longer

has to manage its THOUSANDS of file descriptors for pipes to the many
imap/proxy processes that it uses for logging.  Is there a way to turn
off logging through the master process (in exchange for lesser  
security)?
If not, would it be easy to have the master process do its logging  
using

separate threads (which would help on some modern hardware)?  Finally,
would it be easy to delegate the task of logging to a dedicated  
process?



I was planning on using separate logger processes with v2.0. For now I  
guess you could make imap/pop3 processes log directly by changing  
mail_executable to a script that:


1) Unsets LOG_TO_MASTER environment
2) Sets USE_SYSLOG environment
3) Closes file descriptor 2 (stderr). I'm not actually sure if you can  
do this using a shell script, might need to use something else.

4) Executes the imap/pop3 binary.

http://wiki.dovecot.org/PostLoginScripting tells a bit more about  
using mail_executable.




PGP.sig
Description: This is a digitally signed message part


Re: [Dovecot] Install Configuring and run.

2008-11-11 Thread Thorsten Vollmer
On Tue, 2008-11-11 at 23:10 +0100, Marko Weber wrote:
 Hello Thorsten ,
 sorry then again 
 details:  i got dspam working, it now scans incoming mails and tag them 
 in the headers.
 
 X-DSPAM-Result: = Spam
 X-DSPAM-Confidence: = 0.9984
 X-DSPAM-Probability: = 1.
 X-DSPAM-Signature: = 1,491930ac25229173225906
 X-DSPAM-Factors: 15,
 
 so far okay.
 
 i emerged dovecot-antispam.

Before I look any further: dovecot-antispam in Portage is broken with
USE=debug. Did you set this flag?

 and thought its easy going , just paste the 
 code snippet of man dovecot-antispam to the
 imap section in the dovecot.conf . but thats not all i think.
 
 i thought now, when moving a mail from incoming to SPAM something 
 happens, but  despam.dbug and /var/log/messages dont show anything happen.
 
 i did this in the dovecot.conf =
 
  mail_plugins = antispam
   mail_plugin_dir = /usr/lib/dovecot/imap
 
   plugin {
 
 antispam_trash = trash;Trash;Deleted Items;Deleted Messages
 antispam_spam = SPAM;Spam
 antispam_dspam_binary = /usr/bin/dspam
 antispam_dspam_args = --user;%u
 
 }
 
 but as told above , moving mails into folder SPAM or from SPAM to 
 incoming dont causes any action the log.files
 
 
 when i retstart dovecot i got following output on screen =
 
 /etc/init.d/dovecot restart
 Warning: Growing pool 'settings' with: 8192
  * Stopping dovecot ...
 [ ok ]
 Warning: Growing pool 'settings' with: 8192
  * Starting dovecot ...
 Warning: Growing pool 'settings' with: 8192
 ILoading modules from directory: /usr/lib/dovecot/imap
 WGrowing pool 'module loader' with: 2048
 IModule loaded: /usr/lib/dovecot/imap/lib90_antispam_plugin.so
 IEffective uid=65534, gid=65534, home=
 WGrowing pool 'antispam-pool' with: 2048
 [ ok ]
 
 dovecot is running after restart and fully working, accepting mails , 
 sending mails all oke.
 
 dunno if i told before to you, i use postfix-dovecot-mysql setup, 
 virtual users  domains
 
 if you need any other config file or info lemme know.
 i really want this nice tool to get working.
 
 thank you
 
 marko



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] alternate passwd/shadow

2008-11-11 Thread Jorg B.

Here is the log file...

Nov 11 15:18:53 webmail dovecot: auth(default): client in: 
AUTH^I1^IPLAIN^Iservice=imap^Isecured^Ilip=127.0.0.1^Irip=127.0.0.1^Ilport=143^Irport=48632^Iresp=AGRvd250b3duAHNvbW1lciEh
Nov 11 15:18:53 webmail dovecot: auth(default): 
shadow(downtown,127.0.0.1): lookup
Nov 11 15:18:53 webmail dovecot: auth(default): 
shadow(downtown,127.0.0.1): unknown user
Nov 11 15:18:53 webmail dovecot: auth(default): new auth connection: 
pid=3529
Nov 11 15:18:55 webmail dovecot: auth(default): client out: 
FAIL^I1^Iuser=downtown
Nov 11 15:18:55 webmail dovecot: imap-login: Aborted login (auth failed, 
1 attempts): user=downtown, method=PLAIN, rip=127.0.0.1, 
lip=127.0.0.1, secured


My /etc/dovecot/shadow  and /etc/dovecot/password file does include the 
user downtown.
The passwd/shadow files are standard password/shadow combo (DES 
encrypted passwords) found on Slackware Linux 12.1 .


Shadow file:
downtown:hljljdkjgdkjgdklk:14194:0:9:7:::

Password file:
downtown:x:1000:100:Peter Pan,,,:/home/downtown:/bin/bash

Any more ideas?

Thanks
Jorg B.



On Tue, 2008-11-11 at 13:33 -0800, Jorg B. wrote:
  

I'm using an alternate password/shadow combo to authenticate IMAP users
and I can't seen to get it working...

I'm using:

passdb shadow {
 args = /etc/dovecot/shadow
}

Can somebody please give me some hints on how to get this to work



Please enable auth_verbose and auth_debug in your configuration file.
Are there any error messages in your log file?

Regards,
Thorsten

  




Re: [Dovecot] alternate passwd/shadow

2008-11-11 Thread Thorsten Vollmer
On Tue, 2008-11-11 at 13:33 -0800, Jorg B. wrote:
 I'm using an alternate password/shadow combo to authenticate IMAP users
 and I can't seen to get it working...
 
 I'm using:
 
 passdb shadow {
  args = /etc/dovecot/shadow
 }
 
 Can somebody please give me some hints on how to get this to work

'passdb shadow' supports system users only. Use 'passdb passwd-file'
instead.

Regards,
Thorsten



signature.asc
Description: This is a digitally signed message part


[Dovecot] Sieve authentication / directory issue after upgrade to 1.0.13.

2008-11-11 Thread Drew Calcott
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi everyone,

I have come across a problem after upgrading from 1.0.rc17 to 1.0.13
(debian builds 1.0.13 is from etch-backports).

I initially upgraded as 1.0.rc17 isn't compiled with regex support, so
vacation messages that were uploaded via horde were being rejected.
(Everything else was working fine, just messages that required regex
functions were failing).

Horde is uploading the filters via pysieved, which is then in turn
placing them in the directory of:


- -

/shared/spool/active/%d/%0.1u/%1.1u/%n/sieve/ingo

- -


At least, it was previously.  Since upgrading, dovecot has changed the
way it passes authentication details to pysieved and the domain is no
longer included in the username, so the domain cannot be parsed and
pysieved fails as it is unable to strip a value for %d.  (as a quick
aside, this isn't an issue with single domain servers as there is a
defaultdomain option that will force the value for %d, however, since
we have 9 domains to deal with, this isn't going to cut it).

Prior to upgrade, authentication was passed as thus (= are a new line in case 
the formatting dies)


- 

===  'AUTH\t1\tPLAIN\tservice=pysieved\tresp=YWNhbD* restofstring *
==  [EMAIL PROTECTED]'
= Finished SASL authentication : {'username':'[EMAIL PROTECTED]', 'result': 
'OK'}
= Plugin returned home 
:'/shared/spool/active/sit.auckland.ac.nz/a/c/acal030/'
= Authenticated user [EMAIL PROTECTED]

- 


Both user and [EMAIL PROTECTED] were being passed and it was a matter of
simple nagging of the pysieved guys to update their code to strip the
required information.

However, the new version is passing auth like this:


- 

===  'AUTH\t1\tPLAIN\tservice=pysieved\tresp=YWNhbD* restofstring *
===  'OK\t1\tuser=acal030\n'
= Finished SASL authentication : {'username': 'acal030', 'result': 'OK'}
= Plugin returned home : '/shared/spool/active//a/c/acal030/'

- ---

The only change to the dovecot config I have made is to add
allow_all_users=yes to userdb static as the new version was a lot
stricter about the passdb pam lookup not containing the user data (and
failing completely as a result).

In the dovecot logs themselves, the following lines were from the earlier build:


- --

Info: auth(default): client out: OK 1   [EMAIL PROTECTED]   
user=acal030
Info: auth(default): master in: REQUEST 243 23994   1
Info: auth(default): master out: USER   243 [EMAIL PROTECTED] home=/blah, 
mail=/blah etc.

- --


Compared to this from the new one:


- --

Info: auth(default): auth([EMAIL PROTECTED],130.216.39.182): username changed 
[EMAIL PROTECTED] - acal030
Info: auth(default): client out: OK1   user=acal030
Info: auth(default): prefetch(acal030,130.216.39.182): success
Info: auth(default): master out: USER  2   acal030 home=/blah, 
mail=/blah etc.

- --


I am rather at the end of my tether with this, unfortunately.  :(  I have 
browsed through many wiki pages looking for a possible solution
or config variable I may have missed, but I really am coming up dry.

Cleaned up dovecot.conf is at: http://pastebin.com/m7f4303af

Should anyone want strace logs or whatever, I'm more than happy to make with 
them.

Thanks in advance for any assistance.


Regards,



- ---
Drew Calcott
Science IT
University of Auckland
(p) +64 9 373 7599 x84269
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkkaWWQACgkQD+yXTWfduLFGmACfW3XXNFLu8zhHUz8FeU+QqgmX
pg4An3SdPh0OyWHGBe9k/qWzjqFRJmBl
=fIMA
-END PGP SIGNATURE-