Re: [Dovecot] plus-address delivery

2008-01-22 Thread Jim Horner
On Tuesday 22 January 2008 22:02:26 Jon Fullmer wrote:
> I'm sorry I didn't clarify that. Yes, I am using Dovecot deliver as my
> LDA.  Here's the line I have in Postfix's master.cf:
>
> dovecotunix  -   n   n   -   -   pipe
> flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f $
> {sender} -d [EMAIL PROTECTED] -n -m ${extension}


> Long story short, (too late) the e-mails are being delivered, but to a  
> completely new mailbox called "+spam".  For example, when I list  
> the directory ".", I now see two mailboxes (as opposed to  
> one): "" and "+spam".

I re-read the original... are you sure you are using Dovecot deliver? I didn't 
think it created mailboxes for non-existent users? I mean is "+spam" a 
user? If not then why is a directory being created? Just seems weird but 
maybe deliver does that.

My only thought is make sure these lines (or something appropriate for your 
setup) is in Postfix's main.cf.

recipient_delimiter = +
dovecot_destination_recipient_limit = 1
virtual_mailbox_domains = your.domain.here
virtual_transport = dovecot 



Re: [Dovecot] plus-address delivery

2008-01-22 Thread Jon Fullmer
Hmm... but it says "if the mailbox doesn't exist, it's created (unless  
-n is used)".  The mailbox does exist.


UNLESS, let me ask you this.  I notice that the mailboxes are created  
with a "." before them.  For example, if I "ls -la" in the users  
INBOX, I see user-created mailboxes, but they all start with a "."   
The mailbox that I'm trying to deliver is named ".spam" by the  
filesystem.  I'm calling it "spam" in the amavisd-new config.  Might  
that be the problem?  Should I be calling it ".spam"?  Would it  
actually be "+.spam"?


 - Jon

On Jan 22, 2008, at 4:51 AM, Steffen Kaiser wrote:



http://wiki.dovecot.org/LDA

- -m : Destination mailbox (default is INBOX). If the  
mailbox doesn't exist, it's created (unless -n is used). If message  
couldn't be saved to the mailbox for any reason, it's delivered to  
INBOX instead.
If Sieve plugin is used, this mailbox is used as the "keep" action's  
mailbox. It's also used if there is no Sieve script or if the script  
fails for some reason.


(Note the -n note)

Bye,

- -- Steffen Kaiser


Re: [Dovecot] plus-address delivery

2008-01-22 Thread Jon Fullmer
I'm sorry I didn't clarify that. Yes, I am using Dovecot deliver as my  
LDA.  Here's the line I have in Postfix's master.cf:


dovecotunix  -   n   n   -   -   pipe
   flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f $ 
{sender} -d ${u

[EMAIL PROTECTED] -n -m ${extension}

I didn't think I had the "-m ${extension}", but it turns out I did.   
Any other thoughts?


 - Jon

On Jan 21, 2008, at 11:58 PM, Jim Horner wrote:



It is unclear if you are using Dovecot deliver or Postfix as your LDA.

The solution might be simply adding

recipient_delimiter = +

to Postfix's main.cf.

On the other hand, we are calling Dovecot deliver from Postfix from  
the
master.cf file. deliver puts the mail into the extension folder or  
INBOX if

the extension does not exist.

dovecot unix-   n   n   -   -   pipe
 flags=DOR user=vuser:vuser argv=/usr/local/libexec/dovecot/deliver -d
[EMAIL PROTECTED] -n -m ${extension}

If you are using Dovecot deliver, I think you can do the same thing  
using
sieve filters but from memory we ruled that out because it requires  
every
user to have a sieve script. There was talk of implementing a global  
sieve
script but that would only work from an include (which could get  
deleted) and

every user would still need a sieve script.


Jim





Re: [Dovecot] Create IMAP folders on first login?

2008-01-22 Thread Andreas Ntaflos
On Tuesday 22 January 2008 23:24:59 Andreas Schneider wrote:
> Andreas Ntaflos wrote:
> > On trying things out with different newly created virtual users I
> > wondered if it was possible for Dovecot to create certain IMAP folders on
> > the first login of the user? So that folders such "Drafts", "Sent" and
> > "Trash" are created automatically for each new user (upon login).
> >
> > Or is this a job for the mail client, or for the admin who creates the
> > new users?
>
> Hi,
>
> use the autocreate plugin Timo wrote. Search the archive if you don't find
> the source.

Thanks a lot, found it!

Andreas
-- 
Andreas Ntaflos 
Vienna, Austria 

GPG Fingerprint: 6234 2E8E 5C81 C6CB E5EC  7E65 397C E2A8 090C A9B4


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


Re: [Dovecot] Create IMAP folders on first login?

2008-01-22 Thread Andreas Schneider
Andreas Ntaflos wrote:
> Hello list, 
> 
> I am currently playing around with a virtual domain/virtual user setup and 
> thanks to the documentation on both the Dovecot and the Postfix websites 
> things are going swimmingly (apart from an oddity I will post separately 
> about). 
> 
> On trying things out with different newly created virtual users I wondered if 
> it was possible for Dovecot to create certain IMAP folders on the first login 
> of the user? So that folders such "Drafts", "Sent" and "Trash" are created 
> automatically for each new user (upon login).
> 
> Or is this a job for the mail client, or for the admin who creates the new 
> users?

Hi,

use the autocreate plugin Timo wrote. Search the archive if you don't find the
source.

> 
> TIA!
> 
> Andreas

-- andreas

-- 
http://www.cynapses.org/ - cybernetic synapses




signature.asc
Description: OpenPGP digital signature


[Dovecot] Create IMAP folders on first login?

2008-01-22 Thread Andreas Ntaflos
Hello list, 

I am currently playing around with a virtual domain/virtual user setup and 
thanks to the documentation on both the Dovecot and the Postfix websites 
things are going swimmingly (apart from an oddity I will post separately 
about). 

On trying things out with different newly created virtual users I wondered if 
it was possible for Dovecot to create certain IMAP folders on the first login 
of the user? So that folders such "Drafts", "Sent" and "Trash" are created 
automatically for each new user (upon login).

Or is this a job for the mail client, or for the admin who creates the new 
users?

TIA!

Andreas
-- 
Andreas Ntaflos 
Vienna, Austria 

GPG Fingerprint: 6234 2E8E 5C81 C6CB E5EC  7E65 397C E2A8 090C A9B4


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


Re: [Dovecot] Problem with quota support on debian etch

2008-01-22 Thread Sascha Bendix
Hi

> > quota=maildir:storage=' || quota AS quota, maildir AS home FROM
> > mailbox
> 
> One "quota=" too much. Use:
> 
> 'maildir:storage=' || quota AS quota
> 

Yes, you're right. Thanks.

Sincerly yours

Sascha Bendix


[Dovecot] 1.1beta14 cache bug ?

2008-01-22 Thread Raphael Bittencourt S. Costa
Helo all,

After enable auth_cache_size = 20480 and auth_cache_ttl = 0, dovecot
stops working for users that are in cache. See the log bellow: 


1 - POP3 session OK
jan 22 14:02:59 mailserver--03 dovecot: auth(default): client in: AUTH
1   PLAIN   service=pop3lip=10.0.149.3  rip=10.0.2.2
resp=
Jan 22 14:02:59 mailserver--03 dovecot: auth(default):
cache([EMAIL PROTECTED],10.0.2.2): miss
Jan 22 14:02:59 mailserver--03 dovecot: auth(default):
ldap([EMAIL PROTECTED],10.0.2.2): bind search:
base=ou=.com.br,ou=accounts,o=comMail
filter=(&(objectClass=qmailUser)([EMAIL PROTECTED])(!(accountStatus=disabled)))
Jan 22 14:02:59 mailserver--03 dovecot: auth(default):
ldap([EMAIL PROTECTED],10.0.2.2): result:
mailMessageStore(userdb_home)=/data/services/dominios/.com.br/t/te/teste2/ 
mailHostAddress(host)=10.0.149.3 
mailQuotaSize(userdb_quota_rule=*:bytes)=2048576000 uid(user)[EMAIL PROTECTED] 
qmailGID(userdb_gid)=1033 qmailUID(proxy_maybe)=1033
Jan 22 14:02:59 mailserver--03 dovecot: auth(default): client out: OK
1   [EMAIL PROTECTED]
Jan 22 14:02:59 mailserver--03 dovecot: auth(default): master in:
REQUEST  1   30851
Jan 22 14:02:59 mailserver--03 dovecot: auth(default):
prefetch([EMAIL PROTECTED],10.0.2.2): success
Jan 22 14:02:59 mailserver--03 dovecot: auth(default): master out: USER
1   [EMAIL PROTECTED]
home=/data/services/dominios/.com.br/t/te/teste2/
quota_rule=*:bytes=2048576000   gid=1033
Jan 22 14:02:59 mailserver--03 dovecot: pop3-login: Login:
user=<[EMAIL PROTECTED]>, method=PLAIN, rip=10.0.2.2, lip=10.0.149.3
Jan 22 14:02:59 mailserver--03 dovecot: auth(default): new auth
connection: pid=3085
Jan 22 14:02:59 mailserver--03 dovecot: POP3([EMAIL PROTECTED]):
Loading modules from directory: /usr/local/lib/dovecot/pop3
Jan 22 14:02:59 mailserver--03 dovecot: POP3([EMAIL PROTECTED]): Module
loaded: /usr/local/lib/dovecot/pop3/lib10_quota_plugin.so
Jan 22 14:02:59 mailserver--03 dovecot: POP3([EMAIL PROTECTED]):
Effective uid=1033, gid=1033
Jan 22 14:02:59 mailserver--03 dovecot: POP3([EMAIL PROTECTED]): Quota
root: name= backend=maildir args=
Jan 22 14:02:59 mailserver--03 dovecot: POP3([EMAIL PROTECTED]): Quota
rule: root= mailbox= bytes=2048576000 messages=0
Jan 22 14:02:59 mailserver--03 dovecot: POP3([EMAIL PROTECTED]):
Namespace: type=private, prefix=INBOX., sep=, inbox=yes, hidden=no,
list=yes, subscriptions=yes
Jan 22 14:02:59 mailserver--03 dovecot: POP3([EMAIL PROTECTED]):
maildir: data=/data/services/dominios/.com.br/t/te/teste2//Maildir
Jan 22 14:02:59 mailserver--03 dovecot: POP3([EMAIL PROTECTED]):
maildir++:
root=/data/services/dominios/.com.br/t/te/teste2//Maildir, index=,
control=, inbox=/data/services/dominios/.com.br/t/te/teste2//Maildir
Jan 22 14:03:02 mailserver--03 dovecot: POP3([EMAIL PROTECTED]):
Disconnected: Logged out top=0/0, retr=0/0, del=0/3012, size=534868620

2 - POP3 session fail
Jan 22 14:03:08 mailserver--03 dovecot: auth(default): client in: AUTH
1   PLAIN   service=pop3lip=10.0.149.3  rip=10.0.2.2
resp=
Jan 22 14:03:08 mailserver--03 dovecot: auth(default):
cache([EMAIL PROTECTED],10.0.2.2): hit
Jan 22 14:03:08 mailserver--03 dovecot: auth(default): client out: OK
1   [EMAIL PROTECTED] host=10.0.149.3 proxy   pass=
Jan 22 14:03:08 mailserver--03 dovecot: pop3-login: Login:
user=<[EMAIL PROTECTED]>, method=PLAIN, rip=10.0.2.2, lip=10.0.149.3
Jan 22 14:03:08 mailserver--03 dovecot: auth(default): new auth
connection: pid=3078

server01:~# telnet 10.0.145.3 110
Trying 10.0.145.3...
Connected to 10.0.145.3.
Escape character is '^]'.
+OK Dovecot ready.
user [EMAIL PROTECTED]
+OK
pass 123mudar
+OK Logged in.
Connection closed by foreign host.

Is it a bug on cache?

[]s,


Raphael Costa


[Dovecot] login_processes_count & login_max_processes_count question

2008-01-22 Thread Ken A

re:


# Maximum number of login processes to create. The listening process count
# usually stays at login_processes_count, but when multiple users start logging
# in at the same time more extra processes are created. To prevent fork-bombing
# we check only once in a second if new processes should be created - if all
# of them are used at the time, we double their amount until the limit set by
# this setting is reached.
#login_max_processes_count = 128


If the server is attacked by a password guessing routine, or just gets 
very busy, and login process count reaches 128, will the created 
processes ever get killed, or will dovecot continue to run 128 processes 
until it's restarted?


Thanks,
Ken


--
Ken Anderson
Pacific.Net


Re: [Dovecot] Virtual Users and permission denied on POP3 Authentication - cur directory

2008-01-22 Thread Iain M Conochie

John Dubchak wrote:


On Jan 22, 2008, at 4:34 AM, Iain M Conochie wrote:




if vuser has uid and gid of 5000

Have the userdb part of the dovecot config set to

userdb static {

  args = uid=5000 gid=5000 home=/var/spool/virtual_mailbox/%d/%n 
allow_all_users=yes


}

instead of using the

userdb sql {

}

That should see you right. However, beware there may be security 
issues allowing one user to write to all mailboxes.




Ian,

Thanks for the reply.  However, when I make the change, %d (domain) is 
not getting populated.  I am expecting:


/var/spool/virtual_mailbox/domain1.com/user1

But I get:

/var/spool/virtual_mailbox//user1


In the sql auth file what is

pass_attrs

set to?

Iain



And the query I use in the logs returns:

client out: OK1user=user1 domain=domain1.com

Where does Dovecot get the %d value when it tries to expand it?

Thanks,
John




Re: [Dovecot] Problem downloading mail with "large" attachment using Thunderbird....

2008-01-22 Thread Charles Marcus

Bazy, on 1/22/2008 5:09 AM, said the following:

We have a user that is using Thunderbird on Windows to read
mail over IMAP and it works ok, except for downloading mail
with "large" attachment.. When opening a mail with a
attachment with a size of 14-15MB, TB downloads the
attachment seemingly ok, but TB stops when reaching 99%.
After TB has stopped, if the user tries to select another
mail, TB just hangs and it has to be closed and started again
to work again... I have checked the dovecot log, but I can't
find anything there... We have also tried to create a log in
TB but everything looks ok there also...

Is there a known problem with TB and "large" attachment or
does anyone know how to fix this, if possible?



v1.0.8 fixed this for maildir, v1.0.9 for mbox.



We are still having this problem. (running v1.0.9)



Did v1.0.10 fix it?



It's not a dovecot issue, TB does that, try downloading atachaments
with Sylpheed or with a webmail client.


Balderdash.

We use TBird on all 55+ machines in our office, and regularly deal with 
large attachments - some as large as 50MB...


Of course, there is the *occasional* issue where someone tries to open 
an attachment before the message is finished downloading - this can 
confuse TBird (and probably other clients), and you have to force TBird 
to redownload it again (by deleting the local cache - or by forwarding 
it to yourself as an attachment)...


But this is a USER issue - tell your users not to try to open the 
attachment before TBird is finished downloading it (the status bar is 
finished).


--

Best regards,

Charles


Re: [Dovecot] plus-address delivery

2008-01-22 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, 22 Jan 2008, Jim Horner wrote:


dovecot unix-   n   n   -   -   pipe
 flags=DOR user=vuser:vuser argv=/usr/local/libexec/dovecot/deliver -d
[EMAIL PROTECTED] -n -m ${extension}


http://wiki.dovecot.org/LDA

- -m : Destination mailbox (default is INBOX). If the mailbox 
doesn't exist, it's created (unless -n is used). If message couldn't be 
saved to the mailbox for any reason, it's delivered to INBOX instead.
If Sieve plugin is used, this mailbox is used as the "keep" action's 
mailbox. It's also used if there is no Sieve script or if the script fails 
for some reason.


(Note the -n note)

Bye,

- -- 
Steffen Kaiser

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

iD8DBQFHldjfVJMDrex4hCIRAkKaAJ9+zTrP8tEHt3FBDaM0SfL20FFH6ACfcVo1
phgOh0kaXpN9La5H9cIGzDg=
=m1hx
-END PGP SIGNATURE-


Re: [Dovecot] Virtual Users and permission denied on POP3 Authentication - cur directory

2008-01-22 Thread John Dubchak


On Jan 22, 2008, at 4:34 AM, Iain M Conochie wrote:




if vuser has uid and gid of 5000

Have the userdb part of the dovecot config set to

userdb static {

  args = uid=5000 gid=5000 home=/var/spool/virtual_mailbox/%d/%n  
allow_all_users=yes


}

instead of using the

userdb sql {

}

That should see you right. However, beware there may be security  
issues allowing one user to write to all mailboxes.




Ian,

Thanks for the reply.  However, when I make the change, %d (domain) is  
not getting populated.  I am expecting:


/var/spool/virtual_mailbox/domain1.com/user1

But I get:

/var/spool/virtual_mailbox//user1

And the query I use in the logs returns:

client out: OK  1   user=user1 domain=domain1.com

Where does Dovecot get the %d value when it tries to expand it?

Thanks,
John


Re: [Dovecot] Virtual Users and permission denied on POP3 Authentication - cur directory

2008-01-22 Thread Iain M Conochie

John Dubchak wrote:

Hi,

I've been working on configuring a new 
Postfix+Dovecot+Cyrus-SASL+Postgres server to perform multi-domain 
virtual hosting with non-unix accounts.  I believe I have everything 
working correctly and have tested both the SASL portion and POP 
authentication through telnet and all works as expected, with one 
exception.


When I authenticate using POP3:

# telnet mail.host 110
Trying 192.168.XXX.XXX...
Connected to mail.host.
Escape character is '^]'.
+OK Dovecot ready.
user [EMAIL PROTECTED]
+OK
pass secret
+OK Logged in.
-ERR No INBOX for user.

And the maillog reports the following:

Jan 21 13:42:32 mail.host dovecot: pop3-login: Login: user=, 
method=PLAIN, rip=192.168.XXX.XXX, lip=192.168.XXX.XXX
Jan 21 13:42:32 mail.host dovecot: POP3(user1): 
mkdir(/var/spool/virtual_mailbox/domain1.com/user1/cur) failed: 
Permission denied
Jan 21 13:42:32 mail.host dovecot: POP3(user1): 
mkdir(/var/spool/virtual_mailbox/domain1.com/user1/cur) failed: 
Permission denied
Jan 21 13:42:32 mail.host dovecot: POP3(user1): Couldn't open INBOX: 
Internal error occurred. Refer to server log for more information. 
[2008-01-21 13:42:32]
Jan 21 13:42:32 mason dovecot: POP3(user1): No INBOX for user top=0/0, 
retr=0/0, del=0/0, size=0


The directory structures for the virtual mailboxes are:

/var/spool/virtual_mailbox/domain1.com/user1
/var/spool/virtual_mailbox/domain2.com/user1

And the entire tree from virtual_mailbox down is owned by 
vuser:vuser.  The directories have permissions 700.


What I believe is happening is that Dovecot is trying to use the uid 
and gid of user1, who doesn't have a system account, rather than 
vuser's when writing to the virtual_mailbox folders.  I'm not sure how 
I can configure Dovecot to use the vuser information.

if vuser has uid and gid of 5000

Have the userdb part of the dovecot config set to

userdb static {

   args = uid=5000 gid=5000 home=/var/spool/virtual_mailbox/%d/%n 
allow_all_users=yes


}

instead of using the

userdb sql {

}

That should see you right. However, beware there may be security issues 
allowing one user to write to all mailboxes.


regards

Iain



Here is my dovecot.conf:

-
protocols = imap pop3
listen = [*]
disable_plaintext_auth = no
syslog_facility = mail

mail_location = maildir:/var/spool/virtual_mailbox/%h

# Default umask to use for mail files and directories.
#umask = 0077

protocol imap {
}

protocol pop3 {
}

protocol lda {
  postmaster_address = [EMAIL PROTECTED]
}

auth_debug_passwords = yes
auth_debug = yes
auth_verbose = yes
auth default {
  # SQL database
  passdb sql {
args = /etc/dovecot-sql.conf
  }

  userdb sql {
args = /etc/dovecot-sql.conf
  }

  user = root
}
-

Any insight will be appreciated, I've been working on this non-stop 
for several days now and can't seem to figure it out.


Thanks,
John






Re: [Dovecot] Problem downloading mail with "large" attachment using Thunderbird....

2008-01-22 Thread Bazy
On Sun, 20 Jan 2008 14:41:08 +0200
Timo Sirainen <[EMAIL PROTECTED]> wrote:

> On Mon, 2007-12-31 at 14:04 +0100, Bjørn T Johansen wrote:
> > On Fri, 21 Dec 2007 17:59:04 +0200
> > Timo Sirainen <[EMAIL PROTECTED]> wrote:
> > 
> > > On Wed, 2007-12-12 at 13:15 +0100, Bjørn T Johansen wrote:
> > > > We have a user that is using Thunderbird on Windows to read mail over 
> > > > IMAP and it works ok, except for
> > > > downloading mail with "large" attachment.. When opening a mail with a 
> > > > attachment with a size of 14-15MB, TB
> > > > downloads the attachment seemingly ok, but TB stops when reaching 99%. 
> > > > After TB has stopped, if the user tries
> > > > to select another mail, TB just hangs and it has to be closed and 
> > > > started again to work again...
> > > > I have checked the dovecot log, but I can't find anything there... We 
> > > > have also tried to create a log in TB
> > > > but everything looks ok there also... 
> > > > 
> > > > Is there a known problem with TB and "large" attachment or does anyone 
> > > > know how to fix this, if possible?
> > > 
> > > v1.0.8 fixed this for maildir, v1.0.9 for mbox.
> > > 
> > 
> > We are still having this problem. (running v1.0.9)
> 
> Did v1.0.10 fix it?
> 
> 

It's not a dovecot issue, TB does that, try downloading atachaments with 
Sylpheed or with a webmail client.