Re: [Dovecot] Mailbox is in inconsistent state

2007-11-20 Thread Nikolay Shopik

On 20.11.2007 5:53, Timo Sirainen wrote:

On Mon, 2007-11-19 at 23:05 +0300, Nikolay Shopik wrote:
  

I have few such messages should I aware about them or just ignore?

Disconnected: Mailbox is in inconsistent state, please relogin.



Do you see any errors in logs? I think there should be. Also what
Dovecot version is this with?

  
Nope, no errors found in any log. Running 1.0.5 on debian testing. 
Currently they don't reappears even once, since yesterday.


Re: [Dovecot] How to write plugin

2007-11-20 Thread Eugene Prokopiev
I tried to use http://www.dovecot.org/patches/copy_plugin.c as simple
example. My code is attached. I see plugin loading in logs:

Nov 20 12:29:33 mail dovecot-auth: pam_tcb(dovecot:auth):
Authentication passed for enp from (uid=0)
Nov 20 12:29:33 mail dovecot: imap-login: Login: user=enp,
method=PLAIN, rip=192.168.46.23, lip=10.0.101.103
Nov 20 12:29:33 mail dovecot: IMAP(enp): copy plugin init
Nov 20 12:29:33 mail dovecot: IMAP(enp):

But I can't see nothing while message is copied :(

I tried to send mail to Fabio M. Catunda catunda at
contactnet.com.br yesterday, but I see no relpy. Fábio, can you show
me you code?
/*
   Example plugin to show how to hook into COPY command.

   gcc -fPIC -shared -Wall -I../lib -I../.. -I../lib-storage -I../lib-mail -I../lib-imap -DHAVE_CONFIG_H copy_plugin.c -o copy_plugin.so
*/

#include common.h
#include commands.h

static int cmd_copy_plugin(struct client *client)
{
  const char *messageset, *mailbox;

  i_info(copy plugin action init\n);

  /* message set mailbox */
  if (!client_read_string_args(client, 2, messageset, mailbox))
	return FALSE;

  if (!cmd_copy(client))
	return FALSE;

  i_info(copying done to %s\n, mailbox);
  return TRUE;
}

void copy_plugin_init(void)
{
  i_info(copy plugin init\n);
  command_unregister(COPY);
  /* i_strdup() here is a kludge to avoid crashing in commands_deinit()
 since modules are unloaded before it's called, this COPY string
 would otherwise point to nonexisting memory. */
command_register(i_strdup(COPY), cmd_copy_plugin);
}

void copy_plugin_deinit(void)
{
  i_info(copy plugin deinit\n);
}


Re: [Dovecot] dspam integration

2007-11-20 Thread Johannes Berg

 But it's slow.  Especially with bulk moves

True. I use crm114 now which is a lot faster :)

  - I had users complain about 
 this so often that I ended up moving to DMT style batch processing using 
 the code here:
 
 http://members.plug.org.au/~linuxalien/dokuwiki/projects:dovecot-mysql-dspam-plugin

Right. I have a backend for my plugin using the dict API, but
unfortunately the dict API is broken enough to not work. If you want to
implement a mysql backend rather than that plugin I'd take a patch and
commit it to my plugin. That above plugin is based on an older version
of mine that directly overrides the COPY command which is less flexible
and much harder to do for 1.1.

 Users are happy - it's fast, and let's be honest - the majority of users 
 really don't care if there's some transient error with the spam 
 classifier, they just find it confusing.  And if there are errors, you 
 can have them reported by the daemon or cron job that processes the 
 batch data.

True as well.

johannes


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


[Dovecot] squat plugin

2007-11-20 Thread Joe Wong
Hello Timo,

I have installed 1.1 beta 8 with fts-squat enabled. I have added the plugin 
section in dovecot.conf. How can I actually make use of the full text index?

Regards,

- Joe


[Dovecot] 1.1.beta8 crashes with segfault when SIGHUP

2007-11-20 Thread arvids
Hello,

dovecot crashes when it receives -HUP signal. It happens always if there was 
some activity - for example, if I start dovecot, check any account through 
POP3 and then send -HUP to dovecot process, it crashes with the following log 
entry:
segfault at 0008 eip 0804d3fb esp bfdd3860 error 4
If there were no activity at all since starting, it does not crash.

my dovecot -n output:
# 1.1.beta8: /usr/local/dovecot/etc/dovecot.conf
base_dir: /var/run/dovecot/
syslog_facility: local0
protocols: pop3
ssl_disable: yes
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable: /usr/local/dovecot/libexec/dovecot/pop3-login
login_greeting: Server.
login_process_per_connection: no
login_process_size: 64
login_processes_count: 5
login_max_processes_count: 32
verbose_proctitle: yes
first_valid_uid: 95
first_valid_gid: 95
mail_uid: 95
mail_gid: 95
mail_location: maildir:~/Maildir
mail_debug: yes
dotlock_use_excl: yes
fsync_disable: yes
mail_executable: /usr/local/dovecot/libexec/dovecot/pop3
mail_plugins: quota
mail_plugin_dir: /usr/local/dovecot/lib/dovecot/pop3
pop3_enable_last: yes
pop3_client_workarounds: outlook-no-nuls oe-ns-eoh
auth default:
  mechanisms: plain login digest-md5 cram-md5 apop
  cache_size: 4096
  cache_ttl: 28800
  cache_negative_ttl: 60
  user: doveauth
  verbose: yes
  debug: yes
  debug_passwords: yes
  passdb:
driver: sql
args: /usr/local/dovecot/etc/dovecot-sql.conf
  userdb:
driver: prefetch
  userdb:
driver: sql
args: /usr/local/dovecot/etc/dovecot-sql.conf
  socket:
type: listen
master:
  path: /var/run/dovecot/auth-master
  mode: 384
  user: vmail
  group: vmail
plugin:
  quota: dict:::proxy:/var/run/dovecot/dict-server:quotadict
dict:
  quotadict: mysql:/usr/local/dovecot/etc/dovecot-sql-dict-quota.conf


Regards, Arvids


Re: [Dovecot] imap process consuming 100% CPU (Dovecot 1.0.3)

2007-11-20 Thread Jackie Hunt
:w On Mon, 2007-11-19 at 16:12 -0500, Stewart Dean wrote:
  I think I'm seeing this with TBird and 1.0.7...with my own account!  It
  may even be a Tbird problem.
  I have a 4way mail server, so when I get 25%, it's 100% of one
  processor. I tried killing the imap process on the server and  it can
  back at 9% and climbed quickly back up to 25%.  It wasn't until I
  shutdown my TBird session that a clean imap session was established.
 
 You could truss the process or do something else to find out what
 Thunderbird and Dovecot are talking to each others. If shutting down
 Thunderbird dropped the load, it sounds like a bug in Thunderbird. Some
 clients have been known to keep requesting same data over and over again
 from the server in some situations. If I could see what the IMAP traffic
 looks like, I might be able to add a workaround to it.
 

What Stewart describes sounds exactly like what we are seeing.  Killing the
imap process doesn't change anything, it requires the client to be shut down
to avoid using 100% CPU.  We have a user who was seeing this every morning.  
However, something has changed and he now sees it about every 7 to 10 days.  
Another interesting note is that he didn't see the issue when we were
running U of Wash's imap server.

Thanks for the suggestion on the truss command, Timo:

truss -d -rO -w1

I'll definitely post my results when I have some.

Jackie
---
Jackie Hunt   
ACNSVoice:  (970) 663-3789 
Colorado State University   FAX:(970) 491-1958
Fort Collins, CO  80523 Email:  [EMAIL PROTECTED]


[Dovecot] Just getting started

2007-11-20 Thread Randall Donaldson
This is my first attempt at creating a mail server.  I'm running postfix and 
dovecot on Fedora 7.  So far the process has been very
enlightening.  I currently have the server able to send and receive messages 
for a domain from the server machine itself.  In
addition, I can SMTP from any client set up on the LAN by logging in.  However, 
I cannot retrieve messages from remote clients on
the LAN.  Thunderbird reads Connected to {servername} across the bottom, then 
times out.  I tried to telnet to port 110 on the
server, and I no response, just hangs.  Not sure where the problem lies.  
Thanks for any assistance.  
 
here's the output of dovecot -n:
 
# 1.0.7: /etc/dovecot.conf

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

mail_executable(default): /usr/libexec/dovecot/imap

mail_executable(imap): /usr/libexec/dovecot/imap

mail_executable(pop3): /usr/libexec/dovecot/pop3

mail_plugin_dir(default): /usr/lib/dovecot/imap

mail_plugin_dir(imap): /usr/lib/dovecot/imap

mail_plugin_dir(pop3): /usr/lib/dovecot/pop3

auth default:

passdb:

driver: pam

userdb:

driver: passwd

 

Randall Donaldson

Information Technology

Stolze Printing

 


[Dovecot] Creating special folders?

2007-11-20 Thread Bjørn T Johansen
Is there anyway to make dovecot create Sent, Draft, etc folder automatically? 
Or is this the job for a MUA?


Regards,

BTJ

-- 
---
Bjørn T Johansen

[EMAIL PROTECTED]
---
Someone wrote:
I understand that if you play a Windows CD backwards you hear strange Satanic 
messages
To which someone replied:
It's even worse than that; play it forwards and it installs Windows
---


Re: [Dovecot] Creating special folders?

2007-11-20 Thread Scott Silva

on 11/20/2007 12:23 PM Bjørn T Johansen spake the following:

Is there anyway to make dovecot create Sent, Draft, etc folder automatically? 
Or is this the job for a MUA?


Regards,

BTJ

It would probably be the responsibility of the MUA since there isn't a 
standard way that they all have to follow. Some clients want Sent, while 
others might want Sent Items, etc...


--
MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't



Re: [Dovecot] Creating special folders?

2007-11-20 Thread Charles Marcus

On 11/20/2007, Timo Sirainen ([EMAIL PROTECTED]) wrote:
It is MUA's job, but since so many people have asked for this, I 
created also a plugin for it. 
http://dovecot.org/patches/1.0/autocreate-plugin.c


Wow... Timo, you are a coding madman!

--

Best regards,

Charles


[Dovecot] Problem Running Dovecot 1.0.5

2007-11-20 Thread dave

Hello,

When trying to run dovecot I am getting the following error :-

Error: Error in configuration file /usr/local/etc/dovecot.conf line 923: 
Unknown section type (section changed at line 923)

Fatal: Invalid configuration in /usr/local/etc/dovecot.conf

The following section is at line 923.   


userdb static {
   args = uid=5000 gid=5000 home=/var/spool/vmail/%d/%n allow_all_users=yes
}

It seems to be that dovecot does'nt understand the section, but I 
configured with support for static userdb and this was confirmed before 
compilation took place. OS is Solaris 9.


Any advice would be appreciated.

Thanks,

David.



Re: [Dovecot] Problem Running Dovecot 1.0.5

2007-11-20 Thread Charles Marcus

On 11/20/2007, dave ([EMAIL PROTECTED]) wrote:


Error: Error in configuration file /usr/local/etc/dovecot.conf line 
923: Unknown section type (section changed at line 923)

Fatal: Invalid configuration in /usr/local/etc/dovecot.conf

The following section is at line 923. 


Please always provide dovecot -n output, not your interpretation of what 
it is using...


--

Best regards,

Charles


Re: [Dovecot] Creating special folders?

2007-11-20 Thread Timo Sirainen
On Tue, 2007-11-20 at 21:23 +0100, Bjørn T Johansen wrote:
 Is there anyway to make dovecot create Sent, Draft, etc folder automatically? 
 Or is this the job for a MUA?

It is MUA's job, but since so many people have asked for this, I created
also a plugin for it. http://dovecot.org/patches/1.0/autocreate-plugin.c


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


Re: [Dovecot] Just getting started

2007-11-20 Thread Timo Sirainen
On Tue, 2007-11-20 at 13:59 -0600, Randall Donaldson wrote:
 This is my first attempt at creating a mail server.  I'm running postfix and 
 dovecot on Fedora 7.  So far the process has been very
 enlightening.  I currently have the server able to send and receive messages 
 for a domain from the server machine itself.  In
 addition, I can SMTP from any client set up on the LAN by logging in.  
 However, I cannot retrieve messages from remote clients on
 the LAN.  Thunderbird reads Connected to {servername} across the bottom, 
 then times out.  I tried to telnet to port 110 on the
 server, and I no response, just hangs.  Not sure where the problem lies.  
 Thanks for any assistance.  

Stop Dovecot and try telnetting to port 110 again. Does it still hang?
If so, change your firewall settings.



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


Re: [Dovecot] Creating special folders?

2007-11-20 Thread Bjørn T Johansen
On Tue, 20 Nov 2007 22:43:47 +0200
Timo Sirainen [EMAIL PROTECTED] wrote:

 On Tue, 2007-11-20 at 21:23 +0100, Bjørn T Johansen wrote:
  Is there anyway to make dovecot create Sent, Draft, etc folder 
  automatically? Or is this the job for a MUA?
 
 It is MUA's job, but since so many people have asked for this, I created
 also a plugin for it. http://dovecot.org/patches/1.0/autocreate-plugin.c

Thx... :)

BTJ


[Dovecot] virtual user login

2007-11-20 Thread Paul A
Hi, 

I have server with multiple virtual domains and this server also accepts
mail for the local domain.

I'm using postfix and have the following setup for a virtual

[EMAIL PROTECTED] mapped to [EMAIL PROTECTED]

I was wondering if there is a way to login with the virtual email address,
for example [EMAIL PROTECTED]

I would also like to still be able to login with the local user as well. 

TIA, P

attachment: winmail.dat

[Dovecot] Recieved proprietary TNEF mail has been rejected: virtual user login

2007-11-20 Thread razor

--
You have received an e-mail from [EMAIL PROTECTED] which contains one or more 
parts (including attachments) in MicroSoft's proprietary TNEF format.

Some e-mail clients (Outlook Express ao.) will not notify you about any parts 
(including attachments) in this format and most e-mail clients cannot open this 
proprietary format.
This means that you most likely cannot see these parts/attachments, and if you 
can see them, your e-mail client cannot open them.

Therefore this e-mail has been rejected and the sender has been requested to 
send the e-mail again in the standard, non proprietary format.
--

---Begin of rejected mail---
 This is a multi-part message in MIME format.
 
 --=_NextPart_000_00BA_01C82B94.57074EB0
 Content-Type: text/plain;
 charset=US-ASCII
 Content-Transfer-Encoding: 7bit
 
 Hi,
 
 I have server with multiple virtual domains and this server also accepts
 mail for the local domain.
 
 I'm using postfix and have the following setup for a virtual
 
 [EMAIL PROTECTED] mapped to [EMAIL PROTECTED]
 
 I was wondering if there is a way to login with the virtual email address,
 for example [EMAIL PROTECTED]
 
 I would also like to still be able to login with the local user as well.
 
 TIA, P
 
 
 
 !DSPAM:27,474354e1165231947615090!
 
 --=_NextPart_000_00BA_01C82B94.57074EB0
 Content-Type: application/ms-tnef;
 name=winmail.dat
 Content-Transfer-Encoding: base64
 Content-Disposition: attachment;
 filename=winmail.dat
 
 eJ8+Ih0VAQaQCAAEAAABAAEAAQeQBgAI5AQAAADoAAEIgAcAGElQTS5NaWNy
 b3NvZnQgTWFpbC5Ob3RlADEIAQOQBgDADgAAIgsAAgABAwAmAAAeAHAAAQAAABMA
 AAB2aXJ0dWFsIHVzZXIgbG9naW4AAAIBcQABFgHIK74/uQbvxQvXfEvEi0dvKTPRExYA
 AAsAAQ4AAgEKDgEYACk/0NDWECdPv6PXPB/ghpHCgwAUDgEeACgO
 AQAAACEwMDAwMDAwNAFyYXpvckBtZWdhbmV0Lm5ldAFyYXpvcgAeACkOAQAAACEw
 MDAwMDAwNAFyYXpvckBtZWdhbmV0Lm5ldAFyYXpvcgACAQkQAQAAAGMLAABfCwAAux4AAExa
 RnXuRzDvBwAGAQELYG5nMTAyZjUAZAByY3AN0A4AMh0MYGMNRAE0ATFzdHPiaAVwYmNoEDUJABDH
 ZmgOsBDWYmkBQw2kM/IzEuZmZRNiAfcCpANjRwIAEMAKwHNldALRcChycTIAACoKoW5vLRYgIA3w
 F3E2E3AwNZwwNBfxAdAX4DR9B23fAoMAUAPUFc8W22IXsRggnxeCHMQYoAcTAoMzNxVeKDIzOBsk
 IAdtIEN+RR3UH2EebRgQH38ghXnOcgKDGCAVXjE2GgEiz/UDgkcJ0WskRBoBJN4PIHsl/wNzVAhw
 JEQpMRKwZHZpAzYlKDceMSlvA4IoyEhlYglwdykkRBOQ/ytvLHUfby32BxABoA6wLtWzIpEk3Tg2
 MP8ghEIHQP50DrAkRA4Q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5CJcAWB6z/sT+1f5rC/IpCJcIwg6w/v
 3/DlKenM7w4Q7q/zn/DFYi5QApH0z//mgzRw8m/3P/hP+V/moR4w//qy5z/8H/0v9T0w4Pq/AE/3
 AV8Cb+ahOf8/BN8F7wb2/xbxhKDRcI6Ai1CNU4fChq//h7+Iz4nfiu+L/3APcR9yL/9zP3ROaMCh
 v6LPo9rBgAjQ8ZhsaSwgIREY/xoPGx/5mHoNCgvyHR8eLx8/IE/fIV8ibyN/JI8lkkkmTydf7yhv
 

[Dovecot] Getting two mails.....

2007-11-20 Thread Bjørn T Johansen
When I receive a mail that is addressed to my email address and also with a cc 
to a mailinglist I subscribe to, I
get two mails, which I guess is expected... But I have just moved to Dovecot 
from Cyrus, and Cyrus seems to know
that this is the same mail, so only one of those two mail is stored on the imap 
srv...

Is there some option I am missing in Dovecot or isn't this possible using 
Dovecot?


Regards,

BTJ

-- 
---
Bjørn T Johansen

[EMAIL PROTECTED]
---
Someone wrote:
I understand that if you play a Windows CD backwards you hear strange Satanic 
messages
To which someone replied:
It's even worse than that; play it forwards and it installs Windows
---


[Dovecot] virtual user login

2007-11-20 Thread Paul A

Hi, 

I have server with multiple virtual domains and this server also accepts
mail for the local domain.

I'm using postfix and have the following setup for a virtual

[EMAIL PROTECTED] mapped to [EMAIL PROTECTED]

I was wondering if there is a way to login with the virtual email address,
for example [EMAIL PROTECTED]

I would also like to still be able to login with the local user as well. 

TIA, P




Re: [Dovecot] Getting two mails.....

2007-11-20 Thread Asheesh Laroia

On Tue, 20 Nov 2007, Bjørn T Johansen wrote:

When I receive a mail that is addressed to my email address and also 
with a cc to a mailinglist I subscribe to, I get two mails, which I 
guess is expected... But I have just moved to Dovecot from Cyrus, and 
Cyrus seems to know that this is the same mail, so only one of those two 
mail is stored on the imap srv...


Is there some option I am missing in Dovecot or isn't this possible 
using Dovecot?


FWIW I use procmail to filter these things out; look for The first is out 
of man procmailex and deals with duplicate messages. It should be the very 
first recipe, and looks like this: at 
http://www.onlamp.com/pub/a/bsd/2001/12/06/FreeBSD_Basics.html?page=last .


-- Asheesh.

--
Don't wake me up too soon...
Gonna take a ride across the moon...
You and me.

Re: [Dovecot] Throttle New Connections?

2007-11-20 Thread Eli Sand
 Yeah, I throttle initial connections per IP to something like 15 or 20.
 I started doing this after I got hit with a little more than 600
 connections/second for a few minutes.

Just a note to those who might not know - but Outlook (Express) and possibly
other MUAs like to connect once per account, so if you host multiple
accounts for a single person, you'll have them connecting in once for each
account whenever their client checks mail/starts up.

I host my own email and I have about 5 accounts (I've had more in the past)
I check.  The instant I set a throttle on connections per second I had tons
of errors come up when I would check my mail since I couldn't successfully
log in for all accounts.

What you'd possibly be more interested in if you're hosting mail for many
people is some way to throttle based on account, though that would require
peeking at the protocol data and such.

Eli.



Re: [Dovecot] Dovecot + Cygwin

2007-11-20 Thread Ronny

If that worked, try adding exit(0); as the first statement in
src/auth/main.c's main() function to see if it returns 53 before or
after it reaches that far.



I put some information output to the code (i do not have a debbuger 
running yet ;-) )


static void auth_process_input(void *context)
{
...

switch (i_stream_read(process-input)) {
...
case -1:
/* disconnected */
i_info(DIE 2);
auth_process_destroy(process);
return;
case -2:
/* buffer full */
...
i_info(DIE 3);
auth_process_destroy(process);
return;
}

The log is,
  dovecot: Nov 21 02:52:09 Info: DIE 2 
dovecot: Nov 21 02:52:09 Error: Auth process died too early - shutting down
dovecot: Nov 21 02:52:09 Error: child 1300 (auth) returned error 53




[Dovecot] Users w/o acl access appear to be subscribed to public folders (1.1b8)

2007-11-20 Thread Adam McDougall
I noticed this today, I had a user outside of our department test out
dovecot.  They were using squirrelmail and I noticed that dovecot thinks
this user is subscribed to ALL public folders even though a dovecot 
ACL prevents all access.  I'm pretty sure access is still denied.  
I was able to reproduce this with a guest account I added:

l lsub  #shared/decs/%
* LSUB (\Noselect) / #shared/decs/linuxadmin
* LSUB (\Noselect) / #shared/decs/jbossadmin
* LSUB () / #shared/decs/support
* LSUB () / #shared/decs/receipts
* LSUB (\Noselect) / #shared/decs/pcadmin
* LSUB () / #shared/decs/network
* LSUB (\Noselect) / #shared/decs/printmaster
* LSUB () / #shared/decs/postmaster
* LSUB (\Noselect) / #shared/decs/unixadmin
* LSUB () / #shared/decs/security
* LSUB (\Noselect) / #shared/decs/webmaster
l OK Lsub completed.

This only seems to happen when the acl plugin is enabled.  Without the acl
plugin, these are not listed as subscriptions.
After deleting /egr/mail/shared/decs/dovecot-acl-list and re-enabling the 
acl plugin, I get this:

l lsub  #shared/decs/%
* LSUB () / #shared/decs/unixadmin
* LSUB () / #shared/decs/support
* LSUB () / #shared/decs/security
* LSUB () / #shared/decs/printmaster
* LSUB () / #shared/decs/postmaster
* LSUB () / #shared/decs/pcadmin
* LSUB () / #shared/decs/network
* LSUB () / #shared/decs/linuxadmin
* LSUB () / #shared/decs/webmaster
* LSUB () / #shared/decs/jbossadmin
l OK Lsub completed.

Is it related, or is it different just because a new dovecot-acl-list got
created by another user already (but is mode 700?)


Re: [Dovecot] dspam integration

2007-11-20 Thread Peter Fern

Johannes Berg wrote:

But it's slow.  Especially with bulk moves



True. I use crm114 now which is a lot faster :)
  


Looks shiny, I'll have to give it a try :)


Right. I have a backend for my plugin using the dict API, but
unfortunately the dict API is broken enough to not work. If you want to
implement a mysql backend rather than that plugin I'd take a patch and
commit it to my plugin. That above plugin is based on an older version
of mine that directly overrides the COPY command which is less flexible
and much harder to do for 1.1.
  


I'll look into it (hopefully) in the next week or two as my schedule 
allows - this sounds like a possible solution.