Re: [Dovecot] COMPRESS bug?

2010-11-12 Thread Ed W

On 09/11/2010 21:07, Timo Sirainen wrote:

On Tue, 2010-11-09 at 19:20 +, Ed W wrote:

36203 36204 36205 36206 36207 36208 36209 36210 36211
doveadm(root): Error: zlib.read(): unexpected EOF at 2489
I now restart the server (while the client sitting and hanging),
abbreviated output:

36207 36208 36209 36210 36211
8 OK Search completed (0.381 secs).

Yeah, looks like the OK Search completed gets stuck somewhere. Wonder
if http://hg.dovecot.org/dovecot-2.0/rev/631e0d846e57 would help? I'm
not too optimistic though.




OK, this made no difference to the observed symptoms sadly.

Just to re-iterate the peculiarity of the symptoms:

- Only noticed it on this one account, 3 other accounts are not showing 
symptoms

- It's only the Search which appears to go wrong
- I varied the Search timeframe a little to vary the size of result, 
made no difference (trying to see if it's packet length dependent or 
similar)
- Asking the client to receive ALL emails is ok (not tested, but presume 
it uses a different set of IMAP commands)



I find it very odd that it's basically a symptom on one login and not 
all logins?  Also that it's persistent through time and basically 
independent of small variations in result size (ie probably not zlib 
related or network packet size related).  I guess the main thing which 
seems different about this account is the high numbers for the IDs being 
returned, all other accounts have fewer messages and lower numbers - 
very peculiar?


Thanks for any insight?

Ed W


[Dovecot] Backing up dovecot

2010-11-12 Thread Spyros Tsiolis
Hello people,

Well, what the subjects says :-)
I have a dovecot/Horde installation and would like to know :

a. How safe will I be backing up dovecot

b. What folders/files to backup

Let me see now; I am running dovecot v1.2.15
Here's a dump of dovecot -n :


[r...@mailgate ~]# dovecot -n
# 1.2.15: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.18-194.17.1.el5PAE i686 CentOS release 5.5 (Final) ext3
base_dir: /var/run/dovecot/
log_path: /var/log/dovecot/dovecot.log
info_log_path: /var/log/dovecot/dovecot-info.log
ssl: required
ssl_parameters_regenerate: 48
verbose_ssl: yes
login_dir: /var/run/dovecot//login
login_executable: /usr/local/dovecot/libexec/dovecot/imap-login
login_greeting: * Dovecot ready *
login_max_processes_count: 32
mail_location: maildir:/var/MailRoot/domains/%d/%n/Maildir
mail_plugins: zlib
auth default:
  verbose: yes
  debug: yes
  debug_passwords: yes
  passdb:
driver: passwd-file
args: /etc/dovecot/passwd
  passdb:
driver: pam
  userdb:
driver: static
args: uid=vmail gid=vmail home=/home/vmail/%u
  userdb:
driver: passwd


Thank you all,


Best regards,

spyros





I merely function as a channel that filters 
music through the chaos of noise
 - Vangelis 





[Dovecot] \Noselect eliciting bug?

2010-11-12 Thread David Ford
Timo, examine these two simplified sets if you will.

This, is a properly working $inbox folder:

d /home/david/.maildir
  /home/david/.maildir/dovecot.*
d /home/david/.maildir/cur
d /home/david/.maildir/new
d /home/david/.maildir/tmp
  /home/david/.maildir/subscriptions


This one is not, $inbox becomes \Noselect:

d /home/david/.maildir
  /home/david/.any-file
  /home/david/.maildir/dovecot.*
d /home/david/.maildir/cur
d /home/david/.maildir/new
d /home/david/.maildir/tmp
  /home/david/.maildir/subscriptions

i can make directories willy nilly starting with a dot, but a -file-
starting with a dot breaks my mailbox.  it doesn't affect any other
folder, just $inbox

2.0.6



[Dovecot] correct syntax for multiple ports

2010-11-12 Thread Kilburn Abrahams

Hi,

What is the correct format to specify multple ports in dovecot 2. With 
dovecot 1.2 listen = *:143 *:6188 worked fine. I cannot find any mention 
in the wiki2 about the different combinations of listen, address and 
port parameters and dovecot complains about the combinations I tried.


Does not seem to work
1. inet_listener imap {
listen = *:143 *:6188
}

2. inet_listener imap {
address = *:143 *:6188
}

3. inet_listener imap {
port = 143, 6188 or port = 143 6188
}

This start dovecot, but roundcube will not connect on port 143, although 
Thunderbird will connect on 1432 and 6188

listen = *, ::
1. inet_listener imap {
 port 143
 port = 6188
}

Regards
K



Re: [Dovecot] Phantom email message

2010-11-12 Thread Marc Perkel



On 11/10/2010 1:52 PM, Andreas Ntaflos wrote:

On Wednesday 10 November 2010 20:59:40 Marc Perkel wrote:

Got sort of a strange problem on one email account. Everything works
fine with Thunderbird/IMAP showing the correct unread message count.
But on my DroidX smartphone one of my email accounts always shows
one unread message, but I can't bring any unread messages up. It's
like there's something there making it think there's a message when
there isn't.

This is very long shot but I think I observed something similar some
time ago with K9 when a message was starred, i.e. tagged as important.
Maybe this is confusing things?

Andreas


Thanks for the attempt. I eliminated all starred messages and that 
didn't do it.


Re: [Dovecot] v2.0.7 released

2010-11-12 Thread Marc Perkel



On 11/10/2010 5:25 PM, Timo Sirainen wrote:

On 10.11.2010, at 19.50, Marc Perkel wrote:


On 11/10/2010 10:52 AM, Timo Sirainen wrote:

service anvil {
   client_limit = 2000 # or something
}


OK - just curious - what is it for? What does this do?

Increases the number of connections that anvil process can handle before it 
stops accepting new ones. The default limit should be fine as long as you don't 
change other services' process_limits from defaults. Hmm. Actually the default 
1000 limit should be high enough for pretty much all setups. What exactly have 
you changed to cause that warning? Show your doveconf -n output?





The only thing I changed was upgrading for 2.06 to 2.07.

# 2.0.7: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-dzhanibekov.1 x86_64 Fedora release 12 (Constantine) 
simfs

auth_debug = yes
auth_master_user_separator = *
disable_plaintext_auth = no
dotlock_use_excl = yes
first_valid_uid = 12
info_log_path = /var/log/dovecot.log
log_path = /var/log/dovecot.log
login_greeting = Computer Tyme Dovecot ready.
mail_fsync = never
mail_gid = mail
mail_location = maildir:/vhome/%d/home/%n:INDEX=/imap-cache/%d-%n
mail_uid = mail
mmap_disable = yes
passdb {
  args = /etc/dovecot/sql.conf
  driver = sql
}
passdb {
  args = /etc/dovecot/master-combined-sql.conf
  driver = sql
  master = yes
  pass = yes
}
protocols = imap pop3
service anvil {
  client_limit = 2000
}
service auth {
  unix_listener auth-client {
mode = 0666
  }
  unix_listener auth-master {
mode = 0666
  }
}
service imap-login {
  process_limit = 800
  process_min_avail = 100
  service_count = 0
  vsz_limit = 64 B
}
service imap {
  process_limit = 400
}
service pop3-login {
  process_limit = 800
  process_min_avail = 40
  service_count = 0
  vsz_limit = 64 B
}
service pop3 {
  process_limit = 400
}
ssl_cert = /usr/share/ssl/certs/imapd.pem
ssl_key = /usr/share/ssl/certs/imapd.pem
verbose_proctitle = yes
protocol pop3 {
  pop3_uidl_format = %v.%u
}


Re: [Dovecot] correct syntax for multiple ports

2010-11-12 Thread Daniel Luttermann

Kilburn Abrahams wrote on 12/11/2010:


Hi,

What is the correct format to specify multple ports in dovecot 2.  
With dovecot 1.2 listen = *:143 *:6188 worked fine. I cannot find  
any mention in the wiki2 about the different combinations of listen,  
address and port parameters and dovecot complains about the  
combinations I tried.


Does not seem to work
1. inet_listener imap {
listen = *:143 *:6188
}

2. inet_listener imap {
address = *:143 *:6188
}

3. inet_listener imap {
port = 143, 6188 or port = 143 6188
}

This start dovecot, but roundcube will not connect on port 143,  
although Thunderbird will connect on 1432 and 6188

listen = *, ::
1. inet_listener imap {
 port 143
 port = 6188
}


This should work:

 listen = *:143, *:6188


--
Daniel



[Dovecot] dove 2.0.7 virtual no mails INBOX pop3

2010-11-12 Thread Robert Schetterer
Hi Timo,

i have no mails from INBOX over pop3
other folders work ok as well as imap


like set Virtual POP3 INBOX

namespace default {
 # type = private
  separator = /
  prefix = 
  list = yes
#  hidden = no
  subscriptions = yes
}

namespace virtual {
 # type = private
  prefix = virtual/
  separator = /
#  location = virtual:/etc/dovecot/virtual:LAYOUT=maildir++
location = virtual:/etc/dovecot/virtual
  hidden = yes
  list = no
  subscriptions= no
}

namespace real {
 # type = private
  prefix = RealMails/
  separator = /
  list = no
  hidden = yes
}

namespace {
   type = shared
   separator = /
   # Mailboxes are visible under shared/u...@domain/
   # %%n, %%d and %%u are expanded to the destination user.
   prefix = shared/%%u/
   #prefix = shared/%%d/%%u/

   # Mail location for other users' mailboxes. Note that %variables and ~/
   # expands to the logged in user's data. %%n, %%d, %%u and %%h expand
to the
   # destination user's data.

   #location = maildir:/usr/local/virtual/%d/%%u/:INDEX=~/shared/%%d/%%u/
   location = maildir:/usr/local/virtual/%%d/%%u/:INDEX=~/shared/%%d/%%u/

   #Use the default namespace for saving subscriptions.
   subscriptions = no

   # List the shared/ namespace only if there are visible shared mailboxes.
   list = children
   inbox = no
}

/etc/dovecot/virtual/INBOX/dovecot-virtual

RealMails/*
-RealMails/Trash
-RealMails/Trash/*
-RealMails/Sent
-RealMails/Sent/*
-RealMails/Templates
-RealMails/Templates/*
-RealMails/Drafts
-RealMails/Drafts/*
-RealMails/Archives
-RealMails/Archives/*
  unseen


-- 
Best Regards

MfG Robert Schetterer

Germany/Munich/Bavaria


Re: [Dovecot] correct syntax for multiple ports

2010-11-12 Thread Kilburn Abrahams

On 12/11/2010 10:17 PM, Daniel Luttermann wrote:

Kilburn Abrahams wrote on 12/11/2010:


Hi,

What is the correct format to specify multple ports in dovecot 2. 
With dovecot 1.2 listen = *:143 *:6188 worked fine. I cannot find any 
mention in the wiki2 about the different combinations of listen, 
address and port parameters and dovecot complains about the 
combinations I tried.


Does not seem to work
1. inet_listener imap {
listen = *:143 *:6188
}

2. inet_listener imap {
address = *:143 *:6188
}

3. inet_listener imap {
port = 143, 6188 or port = 143 6188
}

This start dovecot, but roundcube will not connect on port 143, 
although Thunderbird will connect on 1432 and 6188

listen = *, ::
1. inet_listener imap {
 port 143
 port = 6188
}


This should work:

 listen = *:143, *:6188


--
Daniel

I tried that and get doveconf: Fatal: Error in configuration file 
/etc/dovecot/dovecot.conf line 68: Unknown setting: listen.

Line 68 refers to listen = *:143, *:6188



Re: [Dovecot] correct syntax for multiple ports

2010-11-12 Thread Daniel Luttermann

Kilburn Abrahams wrote on 12/11/2010:


On 12/11/2010 10:17 PM, Daniel Luttermann wrote:

Kilburn Abrahams wrote on 12/11/2010:


Hi,

What is the correct format to specify multple ports in dovecot 2.  
With dovecot 1.2 listen = *:143 *:6188 worked fine. I cannot find  
any mention in the wiki2 about the different combinations of  
listen, address and port parameters and dovecot complains about  
the combinations I tried.


Does not seem to work
1. inet_listener imap {
   listen = *:143 *:6188
   }

2. inet_listener imap {
   address = *:143 *:6188
   }

3. inet_listener imap {
   port = 143, 6188 or port = 143 6188
   }

This start dovecot, but roundcube will not connect on port 143,  
although Thunderbird will connect on 1432 and 6188

listen = *, ::
1. inet_listener imap {
port 143
port = 6188
   }


This should work:

listen = *:143, *:6188


--
Daniel

I tried that and get doveconf: Fatal: Error in configuration file  
/etc/dovecot/dovecot.conf line 68: Unknown setting: listen.

Line 68 refers to listen = *:143, *:6188


OK, it seems that it's needed to specify multiple ports this way:

service imap-login {
  inet_listener imap {
port = 143
  }
  inet_listener imap_second {
port = 6188
  }
}

--
Daniel



Re: [Dovecot] dove 2.0.7 virtual no mails INBOX pop3

2010-11-12 Thread Henrique Fernandes
I am not sure but have you read the Virtual pop3 section ?

http://wiki2.dovecot.org/Plugins/Virtual

[]'sf.rique


On Fri, Nov 12, 2010 at 9:32 AM, Robert Schetterer rob...@schetterer.orgwrote:

 Hi Timo,

 i have no mails from INBOX over pop3
 other folders work ok as well as imap


 like set Virtual POP3 INBOX

 namespace default {
  # type = private
  separator = /
  prefix = 
  list = yes
 #  hidden = no
  subscriptions = yes
 }

 namespace virtual {
  # type = private
  prefix = virtual/
  separator = /
 #  location = virtual:/etc/dovecot/virtual:LAYOUT=maildir++
 location = virtual:/etc/dovecot/virtual
  hidden = yes
  list = no
  subscriptions= no
 }

 namespace real {
  # type = private
  prefix = RealMails/
  separator = /
  list = no
  hidden = yes
 }

 namespace {
   type = shared
   separator = /
   # Mailboxes are visible under shared/u...@domain/
   # %%n, %%d and %%u are expanded to the destination user.
   prefix = shared/%%u/
   #prefix = shared/%%d/%%u/

   # Mail location for other users' mailboxes. Note that %variables and ~/
   # expands to the logged in user's data. %%n, %%d, %%u and %%h expand
 to the
   # destination user's data.

   #location = maildir:/usr/local/virtual/%d/%%u/:INDEX=~/shared/%%d/%%u/
   location = maildir:/usr/local/virtual/%%d/%%u/:INDEX=~/shared/%%d/%%u/

   #Use the default namespace for saving subscriptions.
   subscriptions = no

   # List the shared/ namespace only if there are visible shared mailboxes.
   list = children
   inbox = no
 }

 /etc/dovecot/virtual/INBOX/dovecot-virtual

 RealMails/*
 -RealMails/Trash
 -RealMails/Trash/*
 -RealMails/Sent
 -RealMails/Sent/*
 -RealMails/Templates
 -RealMails/Templates/*
 -RealMails/Drafts
 -RealMails/Drafts/*
 -RealMails/Archives
 -RealMails/Archives/*
  unseen


 --
 Best Regards

 MfG Robert Schetterer

 Germany/Munich/Bavaria



Re: [Dovecot] correct syntax for multiple ports

2010-11-12 Thread Kilburn Abrahams

On 12/11/2010 11:10 PM, Daniel Luttermann wrote:

Kilburn Abrahams wrote on 12/11/2010:


On 12/11/2010 10:17 PM, Daniel Luttermann wrote:

Kilburn Abrahams wrote on 12/11/2010:


Hi,

What is the correct format to specify multple ports in dovecot 2. 
With dovecot 1.2 listen = *:143 *:6188 worked fine. I cannot find 
any mention in the wiki2 about the different combinations of 
listen, address and port parameters and dovecot complains about the 
combinations I tried.


Does not seem to work
1. inet_listener imap {
   listen = *:143 *:6188
   }

2. inet_listener imap {
   address = *:143 *:6188
   }

3. inet_listener imap {
   port = 143, 6188 or port = 143 6188
   }

This start dovecot, but roundcube will not connect on port 143, 
although Thunderbird will connect on 1432 and 6188

listen = *, ::
1. inet_listener imap {
port 143
port = 6188
   }


This should work:

listen = *:143, *:6188


--
Daniel

I tried that and get doveconf: Fatal: Error in configuration file 
/etc/dovecot/dovecot.conf line 68: Unknown setting: listen.

Line 68 refers to listen = *:143, *:6188


OK, it seems that it's needed to specify multiple ports this way:

service imap-login {
  inet_listener imap {
port = 143
  }
  inet_listener imap_second {
port = 6188
  }
}

--
Daniel

Ok, that works. Is this listed somewhere? What is the syntax if you want 
to add more ports.


/K


Re: [Dovecot] dove 2.0.7 virtual no mails INBOX pop3 /solved

2010-11-12 Thread Robert Schetterer
Am 12.11.2010 13:12, schrieb Henrique Fernandes:
 I am not sure but have you read the Virtual pop3 section ?
 
 http://wiki2.dovecot.org/Plugins/Virtual
 
 []'sf.rique
 
 
 On Fri, Nov 12, 2010 at 9:32 AM, Robert Schetterer
 rob...@schetterer.org mailto:rob...@schetterer.org wrote:
 
 Hi Timo,
 
 i have no mails from INBOX over pop3
 other folders work ok as well as imap
 
 
 like set Virtual POP3 INBOX
 
 namespace default {
  # type = private
  separator = /
  prefix = 
  list = yes
 #  hidden = no
  subscriptions = yes
 }
 
 namespace virtual {
  # type = private
  prefix = virtual/
  separator = /
 #  location = virtual:/etc/dovecot/virtual:LAYOUT=maildir++
 location = virtual:/etc/dovecot/virtual
  hidden = yes
  list = no
  subscriptions= no
 }
 
 namespace real {
  # type = private
  prefix = RealMails/
  separator = /
  list = no
  hidden = yes
 }
 
 namespace {
   type = shared
   separator = /
   # Mailboxes are visible under shared/u...@domain/
   # %%n, %%d and %%u are expanded to the destination user.
   prefix = shared/%%u/
   #prefix = shared/%%d/%%u/
 
   # Mail location for other users' mailboxes. Note that %variables
 and ~/
   # expands to the logged in user's data. %%n, %%d, %%u and %%h expand
 to the
   # destination user's data.
 
   #location = maildir:/usr/local/virtual/%d/%%u/:INDEX=~/shared/%%d/%%u/
   location = maildir:/usr/local/virtual/%%d/%%u/:INDEX=~/shared/%%d/%%u/
 
   #Use the default namespace for saving subscriptions.
   subscriptions = no
 
   # List the shared/ namespace only if there are visible shared
 mailboxes.
   list = children
   inbox = no
 }
 
 /etc/dovecot/virtual/INBOX/dovecot-virtual
 
 RealMails/*
 -RealMails/Trash
 -RealMails/Trash/*
 -RealMails/Sent
 -RealMails/Sent/*
 -RealMails/Templates
 -RealMails/Templates/*
 -RealMails/Drafts
 -RealMails/Drafts/*
 -RealMails/Archives
 -RealMails/Archives/*
  unseen
 
 
 --
 Best Regards
 
 MfG Robert Schetterer
 
 Germany/Munich/Bavaria
 
 

using this

/etc/dovecot/virtual/.INBOX/dovecot-virtual

RealMails/  needed this in my setup
RealMails/*
-RealMails/Trash
-RealMails/Trash/*
-RealMails/Sent
-RealMails/Sent/*
-RealMails/Templates
-RealMails/Templates/*
-RealMails/Drafts
-RealMails/Drafts/*
-RealMails/Archives
-RealMails/Archives/*
 unseen

with

namespace virtual {

  prefix = virtual/
  separator = /
  location = virtual:/etc/dovecot/virtual:LAYOUT=maildir++
  hidden = yes
  list = no
  subscriptions= no
 }

solved it, to say the truth i am unsure why ( speculate with my
namespace it has to match additional / and /* )
i only testing rare times this feature, so i dont know when it braked
for sure it worked sometime before

-- 
Best Regards

MfG Robert Schetterer

Germany/Munich/Bavaria


[Dovecot] alternate sendmail binary for sieve redirect OT

2010-11-12 Thread Robert Schetterer
Hi , this isnt really a dovecot/postfix question
in dove lda, there is sendmail_path =
someone tried other progs here like mini_sendmail ?

http://www.acme.com/software/mini_sendmail/

i.e for using a default from forwarder address when sending redirects by
sieveis a stupid idea?

background, some other mail providers use a default sender forwarder
mailaddress when redirect
this may avoid problems at forwarding with spf etc

any other idea to reach this goal, pipe etc?
-- 
Best Regards

MfG Robert Schetterer

Germany/Munich/Bavaria


Re: [Dovecot] v2.0.7 released

2010-11-12 Thread Timo Sirainen
On 12.11.2010, at 11.16, Marc Perkel wrote:

 service imap-login {
  process_limit = 800
  process_min_avail = 100
  service_count = 0

With service_limit=0 the process limits are way way too high. process_min_avail 
should be the number of CPU cores you have. Also when your process_limit would 
be reached you'd have 80 IMAP connections (process_limit * 
default_client_limit).

  vsz_limit = 64 B

This is 64 bytes .. Strange that it even works, remove it or change it.

 service pop3-login {
  process_limit = 800
  process_min_avail = 40
  service_count = 0
  vsz_limit = 64 B
 }

Same for pop3-login.



[Dovecot] (no subject)

2010-11-12 Thread Radio Tron
http://sites.google.com/site/jfgkewjgkjwgjwgwhq/phtv4a


  

[Dovecot] squirrelmail inbox empty

2010-11-12 Thread Paul Cartwright
I am running Dovecot + Postfix +Squirrelmail on Debian Lenny.Fetchmail 
pulls the mail, dovecot spreads it around.
I had squirrelmail setup  I tested it from within my router ( internal 
LAN).
yesterday I had to go babysit my grand daughter, and I setup port 
forward for IMAP port 143, and I can use squirrelmail through firefox on 
my laptop.
All the other folders have all the mail from the time I left til now. 
Yesterday I was reading inbpox mail, deleted a few junks, etc, and 
suspended my laptop. When I came back my inbox was empty, and I've never 
seen any more messages in it. I know I should have LOTS of older+new 
messages that don't get filtered. Unfortunately ssh doesn't seem to work 
from this linux side, it does from the windos side ( ssh keys?), so I 
can't get in to look at the logs..
I already removed ( I think ) all the inbox index files...  restarted, 
but no joy. I am not sure if it is getting filtered from the ibox, or if 
I just can't see it. I am not familiar with how squirrelmail works with 
local IMAP folders, so I am unsure where to look or what logs to browse. 
I will be home later today.


suggestions clues or otherwise??


-- Paul Cartwright


[Dovecot] questions of how to connect to pop3s

2010-11-12 Thread Scott Berry


Hello there,

I am new to Dovecot and I am using version1.2.12.  I have included the
dovecot -n output:

r...@ubuntusnoopbear:/home/scott# dovecot -n
\# 1.2.12: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.35-22-generic-pae i686 Ubuntu 10.10 
log_timestamp: %Y-%m-%d %H:%M:%S 
protocols: pop3 pop3s
listen: 995
ssl_key_password: nerdie1tech
login_dir: /var/run/dovecot/login
login_executable: /usr/lib/dovecot/pop3-login
login_greeting: pilotalknet.dyndns.org ready.
mail_privileged_group: mail
mbox_write_locks: fcntl dotlock
mail_executable: /usr/lib/dovecot/pop3
mail_plugin_dir: /usr/lib/dovecot/modules/pop3
auth default:
  passdb:
driver: pam
  userdb:
driver: passwd


What I need to ensure is that everything is correctly set for a pop3s
server. I also need to know how to tell someone how to configure their
mail client as the pop3 and smtp server.  For example do I say
pop.pilotalknet.ldyndns.org and smtp.pilotalknet.dyndns.org?   The
hostname is:

pilotalknet.dyndns.org

also is it still possible to check the working of the connection via a
telnet connection doing:

telnet pilotalknet.dyndns.org:995

or do I have to do something different?  what I am achieving with the
telnet connection is to ensure the pop server comes up with the greeting
from dovecot.

Thanks much.





Re: [Dovecot] questions of how to connect to pop3s

2010-11-12 Thread Marcus Rueckert
On 2010-11-12 11:09:35 -0600, Scott Berry wrote:
 ssl_key_password: nerdie1tech

next time you want to leave that out. ;)
maybe dovecot  -n should mask it.

darix

-- 
   openSUSE - SUSE Linux is my linux
   openSUSE is good for you
   www.opensuse.org


Re: [Dovecot] questions of how to connect to pop3s

2010-11-12 Thread David Warden
On Nov 12, 2010, at 12:09 PM, Scott Berry wrote:

 
 
 Hello there,
 
 I am new to Dovecot and I am using version1.2.12.  I have included the
 dovecot -n output:
 
 r...@ubuntusnoopbear:/home/scott# dovecot -n
 \# 1.2.12: /etc/dovecot/dovecot.conf
 # OS: Linux 2.6.35-22-generic-pae i686 Ubuntu 10.10 
 log_timestamp: %Y-%m-%d %H:%M:%S 
 protocols: pop3 pop3s
 listen: 995
 ssl_key_password: nerdie1tech
 login_dir: /var/run/dovecot/login
 login_executable: /usr/lib/dovecot/pop3-login
 login_greeting: pilotalknet.dyndns.org ready.
 mail_privileged_group: mail
 mbox_write_locks: fcntl dotlock
 mail_executable: /usr/lib/dovecot/pop3
 mail_plugin_dir: /usr/lib/dovecot/modules/pop3
 auth default:
  passdb:
driver: pam
  userdb:
driver: passwd
 
 
 What I need to ensure is that everything is correctly set for a pop3s
 server. I also need to know how to tell someone how to configure their
 mail client as the pop3 and smtp server.  For example do I say
 pop.pilotalknet.ldyndns.org and smtp.pilotalknet.dyndns.org?   The
 hostname is:
 
 pilotalknet.dyndns.org
 
 also is it still possible to check the working of the connection via a
 telnet connection doing:
 
 telnet pilotalknet.dyndns.org:995
 
 or do I have to do something different?  what I am achieving with the
 telnet connection is to ensure the pop server comes up with the greeting
 from dovecot.
 
 Thanks much.
 

You won't be able to use telnet to connect to pop3s since it will try speaking 
SSL right away, which telnet doesn't understand. Instead, you can check that 
it's working by using openssl's s_client mode, which is basically telnet+SSL. 
This page has easy instructions:

http://www.anta.net/misc/telnet-troubleshooting/pop.shtml

As for configuring mail clients, you must create DNS records for 
pop.yourdomain and smtp.yourdomain for people to be able to connect to 
them. Otherwise they would have to connect to your hostname.

-David Warden

[Dovecot] dovecot sieve enotify question

2010-11-12 Thread Robert Schetterer
Hi, sorry not dovecot
but heres the question
is it possible to use dovecot sieve enotify
not only for notify mail i.e arrived
but with add the incomming mail as attachment to the notification ?


i.e.
i have found
a example

require [enotify, fileinto, variables];
if header :contains X-Spam-Flag YES {
  set from_addr ad...@example.com;
  set subject Spam;
  notify :message ${from_addr}: ${subject}
 mailto:u...@example.com;;
}

is there a way to add the orginal mail as attach to the notfication mail
, and finally perhaps delete it

this would like a redirect/forward with right from_addr ( which should
always be the default mailboxname/emailaddress

-- 
Best Regards

MfG Robert Schetterer

Germany/Munich/Bavaria


[Dovecot] dovecot startup error message

2010-11-12 Thread Spyros Tsiolis
Hello kind people,

Any help on this would be appreciated.

Dovecot v1.2.16. Freshly installed today. Comes up with this during 
service startup (CentOS 5.5 - service dovecot start ENTER :

---
Restarting DovecotFatal: ssl_listen: Can't resolve address required: Name or 
service not known
---

Here's dovecot -n :

---
# 1.2.16: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.18-194.17.4.el5 i686 CentOS release 5.5 (Final) ext3
base_dir: /var/run/dovecot/
log_path: /var/log/dovecot/dovecot.log
info_log_path: /var/log/dovecot/dovecot-info.log
ssl_listen: required
ssl_parameters_regenerate: 48
verbose_ssl: yes
login_dir: /var/run/dovecot//login
login_executable: /usr/local/dovecot/libexec/dovecot/imap-login
login_greeting: * Dovecot ready *
login_max_processes_count: 32
mail_location: maildir:/var/MailRoot/domains/%d/%n/Maildir
mail_plugins: zlib
auth default:
  verbose: yes
  debug: yes
  debug_passwords: yes
  passdb:
driver: passwd-file
args: /etc/dovecot/passwd
  passdb:
driver: pam
  userdb:
driver: static
args: uid=vmail gid=vmail home=/home/vmail/%u
  userdb:
driver: passwd
---

Any help would greatly appreciated as this is a _live_ system
and was supposed to work hours ago (whps !) :-)

thank you kindly,

spyros








I merely function as a channel that filters 
music through the chaos of noise
 - Vangelis





[Dovecot] Fw: dovecot startup error message - RESOLVED (?)

2010-11-12 Thread Spyros Tsiolis
Hello ,

Went to /etc/dovecot/dovecot.conf, hunted down ssl_listen =
which I had set it up to ssl_listen = required and commented it out.
Tried service dovecot start and it started.

The USD2,000,000 question being : 

what does this do (I know , I know, I cannot remember, I documented
all this for v1.2.14) and will I need it in the future ?

THank you people,

spyros




I merely function as a channel that filters 
music through the chaos of noise
 - Vangelis


--- On Fri, 12/11/10, Spyros Tsiolis sts...@yahoo.co.uk wrote:

 From: Spyros Tsiolis sts...@yahoo.co.uk
 Subject: [Dovecot] dovecot startup error message
 To: Dovecot dovecot@dovecot.org
 Date: Friday, 12 November, 2010, 20:15
 Hello kind people,
 
 Any help on this would be appreciated.
 
 Dovecot v1.2.16. Freshly installed today. Comes up with
 this during 
 service startup (CentOS 5.5 - service dovecot start
 ENTER :
 
 ---
 Restarting DovecotFatal: ssl_listen: Can't resolve address
 required: Name or service not known
 ---
 
 Here's dovecot -n :
 
 ---
 # 1.2.16: /etc/dovecot/dovecot.conf
 # OS: Linux 2.6.18-194.17.4.el5 i686 CentOS release 5.5
 (Final) ext3
 base_dir: /var/run/dovecot/
 log_path: /var/log/dovecot/dovecot.log
 info_log_path: /var/log/dovecot/dovecot-info.log
 ssl_listen: required
 ssl_parameters_regenerate: 48
 verbose_ssl: yes
 login_dir: /var/run/dovecot//login
 login_executable:
 /usr/local/dovecot/libexec/dovecot/imap-login
 login_greeting: * Dovecot ready *
 login_max_processes_count: 32
 mail_location: maildir:/var/MailRoot/domains/%d/%n/Maildir
 mail_plugins: zlib
 auth default:
   verbose: yes
   debug: yes
   debug_passwords: yes
   passdb:
     driver: passwd-file
     args: /etc/dovecot/passwd
   passdb:
     driver: pam
   userdb:
     driver: static
     args: uid=vmail gid=vmail
 home=/home/vmail/%u
   userdb:
     driver: passwd
 ---
 
 Any help would greatly appreciated as this is a _live_
 system
 and was supposed to work hours ago (whps !) :-)
 
 thank you kindly,
 
 spyros
 
 
 
 
 
 
 
 
 I merely function as a channel that filters 
 music through the chaos of noise
  - Vangelis
 
 
 
 





Re: [Dovecot] dovecot startup error message

2010-11-12 Thread Brad Davidson
Spyros,

 -Original Message-
 
 ---
 Restarting DovecotFatal: ssl_listen: Can't resolve address required: Name
 or service not known
 ---
 
 ---
 ssl_listen: required

ssl_listen should be a port or address:port to listen on with SSL enabled. 
'required' is not a valid hostname on your network.

You should probably read this:
http://wiki.dovecot.org/MainConfig?highlight=ssl_listen#line-20

-Brad


Re: [Dovecot] Occasional fchown errors?

2010-11-12 Thread Knute Johnson

On 11/10/2010 9:07 PM, Knute Johnson wrote:

On 11/10/2010 10:53 AM, Timo Sirainen wrote:

On Wed, 2010-11-10 at 10:34 -0800, Knute Johnson wrote:

Nov 10 08:32:59 rabbitbrush dovecot: IMAP(bob):
fchown(/home/bob/mail/.imap/INBOX/dovecot.index.tmp, -1, 8(mail))
failed: Operation not permitted (egid=1000(bob), group based on
/var/mail/bob)


chmod 0600 /var/mail/*

Normal installations don't need them to be 0660.



Thanks, I'll try that.

knute...


That seems to have fixed it.

Thanks,

knute...


[Dovecot] OT: How did you do that? - WAS: Re: dovecot startup error message

2010-11-12 Thread Charles Marcus
On 2010-11-12 1:21 PM, Brad Davidson wrote:
 ssl_listen should be a port or address:port to listen on with SSL
 enabled. 'required' is not a valid hostname on your network.
 
 You should probably read this:
 http://wiki.dovecot.org/MainConfig?highlight=ssl_listen#line-20

Hi Brad,

Did you just manually add the ?highlight=ssl_listen#line-20 to the end
of the page link? Or do you have a Firefox extension that will let you
highlight something on a page and create a link like that? I didn't know
you could create your own 'anchors' like that...

Thanks, would love to be able to do that easily...

-- 

Best regards,

Charles


Re: [Dovecot] Fw: dovecot startup error message - RESOLVED (?)

2010-11-12 Thread Timo Sirainen
On 12.11.2010, at 18.20, Spyros Tsiolis wrote:

 Went to /etc/dovecot/dovecot.conf, hunted down ssl_listen =
 which I had set it up to ssl_listen = required and commented it out.
 Tried service dovecot start and it started.

ssl=required, not ssl_listen=required.

 what does this do (I know , I know, I cannot remember, I documented
 all this for v1.2.14) and will I need it in the future ?

Requires that all connections use SSL/TLS.


Re: [Dovecot] dovecot startup error message

2010-11-12 Thread Charles Marcus
On 2010-11-12 1:21 PM, Brad Davidson wrote:
 You should probably read this:
 http://wiki.dovecot.org/MainConfig

Timo - is there any reason that there isn't an equivalent MainConfig
page for wiki2?

http://wiki2.dovecot.org/MainConfig

-- 

Best regards,

Charles


Re: [Dovecot] dovecot startup error message

2010-11-12 Thread Timo Sirainen
On 12.11.2010, at 19.22, Charles Marcus wrote:

 On 2010-11-12 1:21 PM, Brad Davidson wrote:
 You should probably read this:
 http://wiki.dovecot.org/MainConfig
 
 Timo - is there any reason that there isn't an equivalent MainConfig
 page for wiki2?
 
 http://wiki2.dovecot.org/MainConfig

Yeah, the config is now in multiple different files and I don't really know how 
the conversion should be done (and don't really want to spend time thinking it 
or writing the script). If you want to try, here's the old script: 
http://dovecot.org/tmp/config2wiki.pl



[Dovecot] Dovecot + vpopmail + shared folders

2010-11-12 Thread qmail

I'm using dovecot 1.2.14 with vpopmail.

I've enabled shared folders and the default setup was not working. The  
default setup being this line:


location = maildir:%%h/Maildir:INDEX=~/Maildir/shared/%%u

Going through the Archives I saw a message from Timo that said to  
apply a patch and use this line instead:



location =  
maildir:/usr/home/vpopmail/domains/%d/%%n/Maildir:INDEX=~/Maildir/shared/%%u


It seems like the patch is already existing in version 1.2.14 and that  
line works well for shared folders for domains directly under  
/usr/home/vpopmail/domains.


However, with vpopmail after a certain number of domains, it starts  
putting them in /usr/home/vpopmail/domains/A, ..domains/B, etc.


Shared folders do not work for those domains since my location line is  
forcing it to look directly in /usr/home/vpopmail/domains/xyz.com  
instead of /usr/home/vpopmail/domains/A/xyz.com


Any workaround this ? How come we can't use %h or ~/ directly ?




Re: [Dovecot] service_count=0 for imap and pop3

2010-11-12 Thread Mark Moseley
 Only potential problem is memory leaks that keep increasing the memory 
 usage. Of course there should be no memory leaks. :) You could anyway set 
 something like service_count=1000 to get it to restart after handling 1000 
 connections.

 I'll keep that one in mind. Doesn't seem like it could hurt to have
 something like =1000 just to be safe.

 For anybody else reading this thread, here's vmstat from two boxes
 with an almost identical amount of IMAP and POP3 connections, but the
 first example has service_count=0 for service pop3, the second
 doesn't. Check out the context switches (this will paste horribly;
 it's the 5th column from the right):

 With service_count=0:
  r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa
  0  0      0  54056 161536 1116012    0    0   132     0 1326 7868  3  8 85  4
  0  0      0  53568 161608 1116192    0    0   116     0 1572 5111  2  6 80 13
  1  0      0  52320 161608 1116960    0    0    16   140 1584 6126  3  6 86  5
  0  0      0  51940 161656 1117292    0    0    44   128 1430 5508  3  7 86  5
  0  0      0  53316 161628 1115500    0    0    12     0 1459 5363  4  7 86  4
  0  0      0  52176 161664 1115468    0    0    76    76 1221 6344  6  5 84  6
  0  1      0  52300 161688 1115636    0    0    32     0 1250 3631  3  2 90  6
  0  0      0  53580 161648 1113116    0    0    76   172 1778 6671  3  9 83  6

 Without service_count=0:
  r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa
  0  2   2476  73776 147860 958728    0    0     0     0  912 17442  6 11  0 84
  0  2   2476  61300 147860 958756    0    0     0     0  992 22130  5 19  0 76
 21  4   2476  49484 148008 957608    0    0   140   748 2472 15922  9 24  0 68
 30  4   2476  97928 146604 945232    0    0   404     0 7116 20700 43 58  0  0
  4  1   2476 169280 146700 946972    0    0   172     0 7014 43727 33 67  1  0
  7  1   2476 168684 146800 947304    0    0   168     0 5720 55485 37 62  2  1
  9  0   2476 165956 146856 947504    0    0    80     0 5074 56371 35 65  0  0
  6  6   2476 163032 146948 948380    0    0    92  2432 5879 63418 27 67  5  2

 It's nice to look at 'perf top' on the first box and not see
 finish_task_switch chewing up 15+% of kernel CPU time :)


Timo,
Any hints on how many POP3 and IMAP connections I'd be able to get
away with in a single threads with the above setup, assuming they're
relative busy? I.e. if my boxes typically have, say, 200 concurrent
POP3 connections and 600 IMAP connections, if I used
process_min_avail=50 for POP3 and process_min_avail=100 for IMAP, I'd
assume that'd be in the area of 4 POP3 concurrent connections handled
by that one POP3 thread and 6 concurrent connections handled by that
one IMAP thead.

I was thinking something like 3-4 per thread (calculating vs max
connections) for POP3 and maybe 5-7 for IMAP (as I'm assuming that at
least a few will just be in IDLE at any given point).

I guess it comes down to, are you aware of any internal limits for a
POP3 or IMAP thread where they're going to start to bog down and
possibly death spiral? I'm going to experiment with different
settings, but I'd love to hear any opinions you have on it. Sorry for
the vagueness.

BTW, I realize process_min_avail is just a minimum, but without having
service_count=1, what would cause dovecot to fork off more processes
than #process_min_avail?

Thanks!


Re: [Dovecot] squirrelmail inbox empty

2010-11-12 Thread Stan Hoeppner
Paul Cartwright put forth on 11/12/2010 9:13 AM:

 Yesterday I was reading inbpox mail, deleted a few junks, etc, and
 suspended my laptop. 

This may come as a shock or surprise to you Paul, but you should never
suspend a laptop while you have a network socket open to a remote host,
especially if it's an encrypted (SSL) connection.  Always log out first.

Given the problem you describe, I'd suggest closing your browser,
launching it again, connect to your SM page, and login again.  If that
doesn't fix the problem, clear your browser cache.  If that still
doesn't solve your problem, reboot the laptop.  If that still doesn't
solve your problem, check the server logs when you get home.

Unless someone sniffed your credentials (unlikely) and logged in to your
now open IMAP 143 port and deleted all you mail, then it should still be
there.

BTW, why did you punch a hole through the router for TCP 143?  That's
not needed for webmail access (SM).  Opening TCP 143 (better would be
993) is only needed if you want to connect Thunderbird directly to
Dovecot while at a remote location.  And as I said, you should only use
an encrypted connection for this (TCP 993 with IMAPS).

-- 
Stan


Re: [Dovecot] COMPRESS bug?

2010-11-12 Thread Ed W

On 12/11/2010 08:34, Ed W wrote:

On 09/11/2010 21:07, Timo Sirainen wrote:

On Tue, 2010-11-09 at 19:20 +, Ed W wrote:

36203 36204 36205 36206 36207 36208 36209 36210 36211
doveadm(root): Error: zlib.read(): unexpected EOF at 2489
I now restart the server (while the client sitting and hanging),
abbreviated output:

36207 36208 36209 36210 36211
8 OK Search completed (0.381 secs).

Yeah, looks like the OK Search completed gets stuck somewhere. Wonder
if http://hg.dovecot.org/dovecot-2.0/rev/631e0d846e57 would help? I'm
not too optimistic though.



Additional info:

- Client opens subfolders of the problem account (containing smaller 
number of messages) ok
- Suggests that it might be a function of the count of messages in a 
folder... Hard to see why mind?


Did I see that there is a test tool in doveadm which can create a folder 
of random maildir messages as a test?


Ed W


[Dovecot] proctitle woes with 2.0.7 vs. 2.0.6

2010-11-12 Thread Clemens Schrimpe
Hello -

I just noticed, that there seems to be a change in the way process titles are 
being set between 2.0.6 and 2.0.7:

Behavior of 2.0.6: (ps aux | fgrep dovecot)
--

root 30803   0.0  0.0   601540708   ??  S 1:08AM   0:00.00 
dovecot/log
_dovecot 30802   0.0  0.0   601544624   ??  S 1:08AM   0:00.00 
dovecot/anvil
root 30801   0.0  0.0   600460472   ??  Ss1:08AM   0:00.01 
/usr/local/sbin/dovecot
_dovecot 30819   0.0  0.0   607304   1672   ??  S 1:08AM   0:00.01 
dovecot/auth [0 wait, 0 passdb, 0 userdb]
_dovenul 30818   0.0  0.0   603512   1724   ??  S 1:08AM   0:00.01 
dovecot/imap-login [10.11.12.13]
root 30805   0.0  0.1   601776   3640   ??  S 1:08AM   0:00.02 
dovecot/config


Behavior of 2.0.7:
--

_dovecot 35104   0.0  0.0   607308   1676   ??  S 1:11AM   0:00.01 
dovecot/auth
_dovenul 35103   0.0  0.0   603516   1736   ??  S 1:11AM   0:00.01 
dovecot/imap-login
root 35099   0.0  0.1   601780   3652   ??  S 1:11AM   0:00.02 
dovecot/config
root 35097   0.0  0.0   601544716   ??  S 1:11AM   0:00.00 
dovecot/log
_dovecot 35096   0.0  0.0   601552692   ??  S 1:11AM   0:00.00 
dovecot/anvil [4 connections]
root 35095   0.0  0.0   600464460   ??  Ss1:11AM   0:00.01 
/usr/local/sbin/dovecot

(of course the configuration remained 100% identical - I just compiled 2.0.7, 
again using the same ./configure parameters and did a make install)

It seems, that while anvil has gained some verbosity, auth and imap-login (and 
maybe pop-login) seem to have lost their voice.

Is there any intention behind this or did I ran into a bug?

Greetings from Berlin -

Clemens




smime.p7s
Description: S/MIME cryptographic signature


Re: [Dovecot] proctitle woes with 2.0.7 vs. 2.0.6

2010-11-12 Thread Timo Sirainen
On 13.11.2010, at 0.23, Clemens Schrimpe wrote:

 It seems, that while anvil has gained some verbosity,

Yes.

 auth and imap-login (and maybe pop-login) seem to have lost their voice.
 
 Is there any intention behind this or did I ran into a bug?

Maybe. What OS?



Re: [Dovecot] proctitle woes with 2.0.7 vs. 2.0.6

2010-11-12 Thread Clemens Schrimpe
 It seems, that while anvil has gained some verbosity,
 
 Yes.
 
 auth and imap-login (and maybe pop-login) seem to have lost their voice.
 
 Is there any intention behind this or did I ran into a bug?
 
 Maybe. What OS?

Mac OS X 10.6.5

But again: I had just swapped binaries - everything else, including the OS, of 
course, remained the same.

Seeing that anvil can do it I presume, that the process_title_set() routine 
still works?!

Clemens

PS: Anything I can do to help test/debug this?



smime.p7s
Description: S/MIME cryptographic signature