Re: [Dovecot] Namespace Problems

2007-05-30 Thread Rainer Sigl

Many thanks,
its working fine with your suggestion.
But only with outlook I still have problems. Today morning I found out 
that outlook does work only I keep the separator line empty

with

namespace private {
#   separator = .
  prefix = INBOX.
  inbox = yes
  hidden = no
}

But the result isn't satisfying. Outlook means it cannont connect to 
server after connection was established, timeouts, goes in offline modus 
etc.


Rainer


Kenny Dail schrieb:


Hi all,

after an update from dovecot beta version to 1.0.0.-1 today morning I 
had different effects:
thunderbird-, kmail-, Apple-clients, pine  and squirrelmail could 
receive email correct with imaps. But not MSOutlook!!!
Varying the namespace configurations in dovecot.conf I got different 
results with MSOutlook working but with thunderbird, squirrelmail etc. 
all folders are displayed but not the root Inbox etc.

Its important to know that I migrated from courier-imap to dovecot.

My well working namespace config BEFORE upgrade to 1.0.0-1:
   



 


Here my actual namespace configs:
   




 


namespace private {
  separator =
  prefix = INBOX.
  inbox = no
  hidden = no
}
namespace private {
  separator = /
  prefix = INBOX/
  inbox = no
  hidden = yes
}
namespace private {
  separator = .
  prefix = INBOX.
  inbox = yes
  hidden = yes
}

   


Try it using only one namespace which matches what you are really doing.
With 1.0 this works for me with all clients I've tried, including Apple.

namespace private {
  separator = .
  prefix = INBOX.
  inbox = yes
  hidden = no
}


 

In varying inbox and hidden keywords I found this configuration. Most 
things are working with this but in squirrelmal I can't access inbox, 
the main folder.


How do I have to configure that everythings works satisfying??

dovecot.conf and dovecot-sql.conf I send in the attachment.
   



instead of sending dovecot.conf, next time use dovecot -n

 



--
-
Rainer Sigl,  | email: [EMAIL PROTECTED]
MPI f. extraterrestrische Physik, | phone: +49 (89) 3-3557
Postfach 1312,| fax:   +49 (89) 3-3569
D-85741 Garching, Germany | web:   http://www.mpe.mpg.de/~sigl/ 



Re: [Dovecot] deliver rejection message

2007-05-30 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, 24 May 2007, Antonio Casado Rodríguez wrote:


Another possibility is to give two answers: one in English and another
one in the default language of server. Example:
Cuota de espacio excedida / Quota exceeded.


It should still be automatically parsable. I really hate localized 
Exchange, it's DSNs are very unhelpful, sometimes it's even hard to tell 
which recipient failed.


Exim, for example, makes it nice:
==

This message was created automatically by mail delivery software (Exim).

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

   [EMAIL PROTECTED]
 SMTP error from remote mailer after RCPT TO:[EMAIL PROTECTED]:
 host ux-2s11z.inf.fh-bonn-rhein-sieg.de [10.20.1.10]:
 550 5.1.1 [EMAIL PROTECTED]... User unknown

===

That's the start of the DSN in text/plain.

The paragraphes are indented by recipient and broken to fit into the RFC 
72 columns.

Moreover, you have the SMTP error code and a human readable reason.

Bye,

- -- 
Steffen Kaiser

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

iQEVAwUBRl2AAy9SORjhbDpvAQL6gAf/b2LyTZnOi69OYXDM4VBIs5ANnuoDAkt2
p5oCyS4Y7QDSiOGu9oqiWbPbdp6fGsaywliOEeH7MoH11Ye7xgImNk8Dwh8p4nMr
C0kaXmfTi1noqe50jKYt/YbWOf2u987dAdOp0OEBRg+7ypP8X24fIFzWLw40SC91
dhlK0ofJ0eBNtOpo2oZa/bM78uK3opm0Fv93ZcYBXlKnmc6sslE34VROd126mJ0b
NRhsxsyWhV9HilpgLLDBxDqmY93xTyJGY6HnwpUUUyo7XPObgEwzf/Ap3ZhnxCRL
ThiZLnwvxX7XqkbVeZKNHw56y+PxJaVJlfGkU+IYC84YWThLGYZ+vA==
=1PWN
-END PGP SIGNATURE-

[Dovecot] What are they trying to do here?

2007-05-30 Thread Jon Slater
Hi!

 

I’m new to the list, and I’m not really having a ‘problem’, but I’m seeing
something in my log files that I wonder if I should be concerned.

 

I’ve been using Dovecot (dovecot-0.99.14-8.fc4) on my Fedora Core 4 (kernel
2.6.17-1.2142_FC4) machine from quite some time.

 

For the last few days, I’ve been seeing this in my daily ‘Logwatch’ e-mail:

dovecot:

Authentication Failures:

rhost= : 139 Time(s)

   root: 13 Time(s)

Unknown Entries:

   check pass; user unknown: 139 Time(s)

 

So it looks pretty obvious that someone (using root and an assortment of
other login names) is trying to access by dovecot server.

 

My first ‘issue’ is I can’t find a log file anywhere that tells me the IP
address of the attacker.  I see a series of ‘authentication failure’
messages in my /log/messages file:

 

May 29 21:23:35 mydomainname dovecot(pam_unix)[15317]: authentication
failure; logname= uid=0 euid=0 tty= ruser= rhost=  user=root

May 29 21:23:35 mydomainname dovecot(pam_unix)[15318]: check pass; user
unknown

May 29 21:23:35 mydomainname dovecot(pam_unix)[15318]: authentication
failure; logname= uid=0 euid=0 tty= ruser= rhost= 

May 29 21:23:36 mydomainname dovecot(pam_unix)[15320]: check pass; user
unknown

May 29 21:23:36 mydomainname dovecot(pam_unix)[15320]: authentication
failure; logname= uid=0 euid=0 tty= ruser= rhost=

 

But I don’t find anything in any other log files to indicate where this is
coming from.

 

Secondly, I’m wondering if I have anything to be concerned about.

 

Thanks in advance for you help!

 

Jon


No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.472 / Virus Database: 269.8.3/824 - Release Date: 5/29/2007
1:01 PM
 


Re: [Dovecot] Converting mbox to Maildir, all prior read messages are downloaded as new

2007-05-30 Thread FiL @ Kpoxa

Timo Sirainen wrote:

 On Fri, 2007-05-25 at 14:36 -0400, FiL wrote:
 This is not only about POP3, as far as I can tell. If you
 converting mbox to Maildir (dovecot to dovecot) - UIDs change. And
 if you have your client set to cache all the messages and you have
 over 1Gb in your mail... well, it will be transferring all your
 mail again. Deleting the old one (as it is not on the server
 anymore) and re-downloading new ones.

 Right. But it's not as bad as with POP3 where the messages are
 downloaded as duplicates.


It's pretty bad if you trying to check your mail over the slow 
connection (and some users do that).
Also at least 1/3 of my users have 100Mb just in the inbox and much more 
in other mailboxes. And I know, that

server just wouldn't handle the load the first day after migration.


 I have all my mbox-es in /raid/mbox/%u I have set convert_mail =
 mbox:/raid/mbox/%u:INBOX=/var/mail/%u in the dovecot.conf. But for
 some reason the folder with mail doesn't get renamed after
 conversion. Is that the way it should be?

 And the destination isn't /raid/mbox/%u? It should have renamed the
 %u to %u-converted.


The destination is /raid/Maildir/%u/ but the original folder doesn't get 
renamed. I will play with it a little more and let you know

the details.

FiL






[Dovecot] AIX mail quota plugin problems

2007-05-30 Thread Stewart Dean

 From reading the wiki for a filesystem quota, I took my shot at
1) building my binaries using the mods in AIXPluginsSupport
2) changing dovecot.conf and
3) putting the plugins in the library
But I'm getting this error message when I invoke dovecot:

Plugin imap_quota not found from directory /usr/local/lib/dovecot
Error: imap dump-capability process returned 89

It would seem that
a) I have the syntax or the parameters wrong
b) I didn't get the changes to the AIX build environment right

I've attached the dovecot -n output.

Here are the details of what I did.

1) dovecot.conf

 === within the imap config section ===
  # Support for dynamically loadable plugins. mail_plugins is a space 
separated

  # list of plugins to load.
  #mail_plugins =
  #mail_plugin_dir = /usr/lib/dovecot/imap
  # SD 5/24/07 tryout FS quota plugin
  mail_plugins = quota imap_quota
  mail_plugin_dir = /usr/local/lib/dovecot/imap


plugin {
  # Here you can give some extra environment variables to mail processes.
  # This is mostly meant for passing parameters to plugins. %variable
  # expansion is done for all values.

  # Quota plugin. Multiple backends are supported:
  #   dirsize: Find and sum all the files found from mail directory.
  #Extremely SLOW with Maildir. It'll eat your CPU and disk 
I/O.

  #   dict: Keep quota stored in dictionary (eg. SQL)
  #   maildir: Maildir++ quota
  #   fs: Read-only support for filesystem quota
  #quota = maildir
  # SD 5/24/07 Try FS quota support
  quota = fs

I've tried it as both

mail_plugin_dir = /usr/local/lib/dovecot/imap

and

mail_plugin_dir = /usr/local/lib/dovecot

2) Both ways I see this error message:

4229 [EMAIL PROTECTED]:/usr/local/etc ## dovecot
ILoading modules from directory: /usr/local/lib/dovecot
IModule loaded: /usr/local/lib/dovecot/lib10_quota_plugin.so
FPlugin imap_quota not found from directory /usr/local/lib/dovecot
Error: imap dump-capability process returned 89

4272 [EMAIL PROTECTED]:/usr/local/lib/dovecot/imap ## dovecot
ILoading modules from directory: /usr/local/lib/dovecot/imap
IModule loaded: /usr/local/lib/dovecot/imap/lib10_quota_plugin.so
FPlugin imap_quota not found from directory /usr/local/lib/dovecot/imap
Error: imap dump-capability process returned 89
  

3) These directories have the following contents:

4292 [EMAIL PROTECTED]:/usr/local/lib/dovecot ## ls -al
total 1168
drwxr-xr-x   3 root system  512 May 24 12:36 ./
drwxr-xr-x   7 root system  512 May 21 14:31 ../
-rw-r--r--   1 root sys  292522 May 22 15:12 
052207-1455-64bit-ssl.lib10_quota_plugin.a
-rwxr-xr-x   1 root sys 904 May 22 15:12 
052207-1455-64bit-ssl.lib10_quota_plugin.la*
-rwxr-xr-x   1 root sys  270499 May 22 15:12 
052207-1455-64bit-ssl.lib10_quota_plugin.so*

drwxr-xr-x   2 root system  512 May 24 12:41 imap/
lrwxrwxrwx   1 root system   65 May 24 12:36 
lib10_quota_plugin.a@ - /usr/local/lib/dovecot/052207-1

455-64bit-ssl.lib10_quota_plugin.a
lrwxrwxrwx   1 root system   66 May 24 12:36 
lib10_quota_plugin.la@ - /usr/local/lib/dovecot/052207-

1455-64bit-ssl.lib10_quota_plugin.la*
lrwxrwxrwx   1 root system   66 May 24 12:36 
lib10_quota_plugin.so@ - /usr/local/lib/dovecot/052207-

1455-64bit-ssl.lib10_quota_plugin.so*

[EMAIL PROTECTED]:/usr/local/lib/dovecot/imap ## ls -al
total 152
drwxr-xr-x   2 root system  512 May 24 12:41 ./
drwxr-xr-x   3 root system  512 May 24 12:36 ../
-rw-r--r--   1 root system19250 May 22 15:12 
052207-1455-64bit-ssl.lib11_imap_quota_plugin.a
-rwxr-xr-x   1 root system  944 May 22 15:12 
052207-1455-64bit-ssl.lib11_imap_quota_plugin.la*
-rwxr-xr-x   1 root system28645 May 22 15:12 
052207-1455-64bit-ssl.lib11_imap_quota_plugin.so*
lrwxrwxrwx   1 root system   66 May 24 12:36 
lib10_quota_plugin.so@ - /usr/local/lib/dovecot/052207-

1455-64bit-ssl.lib10_quota_plugin.so*
lrwxrwxrwx   1 root system   75 May 24 12:36 
lib11_imap_quota_plugin.a@ - /usr/local/lib/dovecot/ima

p/052207-1455-64bit-ssl.lib11_imap_quota_plugin.a
lrwxrwxrwx   1 root system   76 May 24 12:36 
lib11_imap_quota_plugin.la@ - /usr/local/lib/dovecot/im

ap/052207-1455-64bit-ssl.lib11_imap_quota_plugin.la*
lrwxrwxrwx   1 root system   76 May 24 12:36 
lib11_imap_quota_plugins.so@ - /usr/local/lib/dovecot/i


Any suggestions?

--

Stewart Dean, Unix System Admin, Henderson Computer Resources
Center of Bard College, Annandale-on-Hudson, New York  12504
[EMAIL PROTECTED]  voice: 845-758-7475, fax: 845-758-7035


---BeginMessage---
# /usr/local/etc/dovecot.conf
listen: *:10143
ssl_listen: *:10943
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable: /usr/local/libexec/dovecot/imap-login
login_processes_count: 12
login_max_processes_count: 774
verbose_proctitle: yes
first_valid_uid: 200
mail_location: 

[Dovecot] dovecot performance slow + time issue solved

2007-05-30 Thread Paul A

This is is follow up to my previous post about dovecot performance being
slow.

BTW, thanks to all that replied.

For one month we have been trying to figure why suddenly dovecot was slow.
We had two server's running dovecot with the same config and one was fine
while the other wasn't very slow. The server that was slow was on a virtual
server and we noticed some time errors in the logs and installed ntpd which
didn't help the problem.

After trying to tweak the config etc... I put dovecot on a new  server and
its running great. 

Before I was seeing 35% idle cpu with 700 + pop3 login sessions and another
400 imap. Since we moved to a new server, that has no time issues, we are
seeing 97% idle cpu with 50 - 70 pop3 logins and 40 imap while performance
is a lot faster. 

The previous system, giving us all the problems, was on a virtual server
running Virtual Iron software. The hardware was the same on both.

Here's what I was seeing, that contributed to the problems causing 7000
angry customers to call us :)

[EMAIL PROTECTED] etc]# ps aux | grep pop3 | wc -l
740
[EMAIL PROTECTED] etc]# ps aux | grep imap | wc -l
450
[EMAIL PROTECTED] etc]#


May 29 11:42:19 pop dovecot: POP3(xxx): Time just moved backwards by 1
seconds. I'll sleep now until we're back in present.
May 29 11:42:19 pop dovecot: POP3(xxx): Time just moved backwards by 1
seconds. I'll sleep now until we're back in present.
May 29 11:42:31 pop dovecot: POP3(xxx): Time just moved backwards by 1
seconds. I'll sleep now until we're back in present.
May 29 11:42:42 pop dovecot: POP3(xxx): Time just moved backwards by 1
seconds. I'll sleep now until we're back in present.

I was also getting postfix backwards time errors. I guess these errors
were causing login sessions to stay up longer then they should have which
backed up my server. I hope this helps someone out sooner as I had a feeling
the time was causing the problems but mgt here didn't let me try to move it
to another server until they exhausted all other options. 



Thanks,

Paul
 




[Dovecot] testink

2007-05-30 Thread Timo Sirainen
# Protocols we want to be serving:
#  imap imaps pop3 pop3s
#protocols = imap imaps

# IP or host address where to listen in for connections. It's not
currently
# possible to specify multiple addresses. * listens in all IPv4
interfaces.
# [::] listens in all IPv6 interfaces, but may also listen in all IPv4
# interfaces depending on the operating system. You can specify ports
with
# host:port.
#imap_listen = *
#pop3_listen = *




Re: [Dovecot] testink

2007-05-30 Thread Timo Sirainen
On Thu, 2007-05-31 at 01:44 +0300, Timo Sirainen wrote:

Whops :) What happened to my filter that was supposed to prevent all
mails coming from me if they weren't properly pgp-signed..



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


Re: [Dovecot] testink

2007-05-30 Thread Charles Marcus

Timo Sirainen wrote:

On Thu, 2007-05-31 at 01:44 +0300, Timo Sirainen wrote:

Whops :) What happened to my filter that was supposed to prevent all
mails coming from me if they weren't properly pgp-signed..


It got the flue...

;)


Re: [Dovecot] testink

2007-05-30 Thread Timo Sirainen
On Thu, 2007-05-31 at 01:45 +0300, Timo Sirainen wrote:
 On Thu, 2007-05-31 at 01:44 +0300, Timo Sirainen wrote:
 
 Whops :) What happened to my filter that was supposed to prevent all
 mails coming from me if they weren't properly pgp-signed..

Oh, right. Since I'm sending my own mails via dovecot.org it doesn't
check my mails at all. So I guess that pgp check is a bit pointless. But
I guess it doesn't hurt either.

Anyway, the test is complete. :)

dovecot@dovecot.org: permission denied. Command output: Don't post
your whole
dovecot.conf. Use dovecot -n instead.

It greps for a comment inside dovecot.conf that hasn't changed since
v0.99:

^# IP or host address where to listen in for connections.

The next thing would be to figure out a rule to stop people from posting
new messages by replying to existing messages. I suppose it should be
done only if:

 - Message contains In-Reply-To: header
 - Subject doesn't contain Re:
 - Body doesn't contain any quotes
 - User's first message to list

The last check is the difficult one. I guess I'll leave this alone for a
while.



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