Re: [Dovecot] Disabling plus sign extension delimiter in lmtp listener (or userdb)

2014-05-31 Thread Axel Luttgens
Le 30 mai 2014 à 16:27, Benoit Panizzon a écrit :

> Hello
> 
> [...]
> 
> 220 grautvornix.imp.ch Dovecot ready.
> mail from:
> 250 2.1.0 OK
> rcpt to:
> 550 5.1.1  User doesn't exist: b...@iscan.ch
> 
> I could not find any configuration parameters for the lmtp listener or userdb 
> service to tell it what to do with the + sign.
> Did I miss something, or is it impossible to have the + sign accepted as a 
> normal character in an email address?

Hello Benoit,

This is probably related to the recipient_delimiter setting, which defaults to 
'+'.

HTH,
Axel


Re: [Dovecot] dovecot: lda(foo): Error: User foo doesn't have home dir set, disabling duplicate database

2014-05-31 Thread Christian Hoffmann


Am 31.05.2014 19:57, schrieb Christian Hoffmann:

Am 31.05.2014 19:50, schrieb Pascal Volk:

On 05/31/2014 05:35 PM Christian Hoffmann wrote:

Hello Pascal,

but I didn't configure a userdb with driver=ldap. There is only one
userdb with driver=static and I assumed, that every user gets the same
uid, gid and a valid home directory.

Are there some circumstances, that different passdb-drivers treated in
special relation to userdb-drivers? Like, one have to configure a
userdb-driver=ldap if one uses a passdb-driver=ldap. But the
passdb-driver=pam looks into userdb-driver=static. That is the part, I
do not understand.


[*ToFu*]

What is the output of commands `doveadm user -f home foo` and `doveadm
user -f home  bar`?


Regards,
Pascal

Here it is:

root@ods2:~# doveadm user -f home foo
doveadm(root): Error: user foo: Auth USER lookup failed
doveadm(root): Error: userdb lookup failed for foo
root@ods2:~# doveadm user -f home bar
doveadm(root): Error: user bar: Auth USER lookup failed
doveadm(root): Error: userdb lookup failed for bar

Greetings
Christian

A look in the dovecot.log: These two lines appeared during the commands:

dovecot: auth: Error: static(foo): passdb doesn't support lookups, can't 
verify user's existence
dovecot: auth: Error: static(bar): passdb doesn't support lookups, can't 
verify user's existence


Which passdb is ment?

Greetings
Christian


[Dovecot] Upgraded my dovecot?

2014-05-31 Thread Knute Johnson
I upgraded my server from Ubuntu 12.04LTS to 14.04LTS and it upgrade my 
dovecot too.  Probably should have thought about that a little more 
before I pushed the button but oh well.


So it didn't work when it came back up and I had to add a "inbox=yes" 
line to my namespace in 15-mailboxes.conf and that fixed it.  So is 
there anything else I should update in my config files for this newer 
version of dovecot?


# 2.2.9: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-30-generic x86_64 Ubuntu 14.04 LTS
auth_mechanisms = plain login
mail_location = mbox:~/mail:INBOX=/var/mail/%u
namespace inbox {
  inbox = yes
  location =
  mailbox Drafts {
special_use = \Drafts
  }
  mailbox Junk {
special_use = \Junk
  }
  mailbox Sent {
special_use = \Sent
  }
  mailbox "Sent Messages" {
special_use = \Sent
  }
  mailbox Trash {
special_use = \Trash
  }
  prefix =
}
passdb {
  driver = pam
}
protocols = " imap"
service imap-login {
  inet_listener imaps {
port = 0
  }
}
service pop3-login {
  inet_listener pop3 {
port = 0
  }
  inet_listener pop3s {
port = 0
  }
}
ssl_cert =   imap_capability = IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID 
ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND 
UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 ESEARCH 
ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS

  mail_max_userip_connections = 30
}

Thanks,


Re: [Dovecot] dovecot: lda(foo): Error: User foo doesn't have home dir set, disabling duplicate database

2014-05-31 Thread Christian Hoffmann

Am 31.05.2014 19:50, schrieb Pascal Volk:

On 05/31/2014 05:35 PM Christian Hoffmann wrote:

Hello Pascal,

but I didn't configure a userdb with driver=ldap. There is only one
userdb with driver=static and I assumed, that every user gets the same
uid, gid and a valid home directory.

Are there some circumstances, that different passdb-drivers treated in
special relation to userdb-drivers? Like, one have to configure a
userdb-driver=ldap if one uses a passdb-driver=ldap. But the
passdb-driver=pam looks into userdb-driver=static. That is the part, I
do not understand.


[*ToFu*]

What is the output of commands `doveadm user -f home foo` and `doveadm
user -f home  bar`?


Regards,
Pascal

Here it is:

root@ods2:~# doveadm user -f home foo
doveadm(root): Error: user foo: Auth USER lookup failed
doveadm(root): Error: userdb lookup failed for foo
root@ods2:~# doveadm user -f home bar
doveadm(root): Error: user bar: Auth USER lookup failed
doveadm(root): Error: userdb lookup failed for bar

Greetings
Christian


Re: [Dovecot] dovecot: lda(foo): Error: User foo doesn't have home dir set, disabling duplicate database

2014-05-31 Thread Pascal Volk
On 05/31/2014 05:35 PM Christian Hoffmann wrote:
> Hello Pascal,
> 
> but I didn't configure a userdb with driver=ldap. There is only one 
> userdb with driver=static and I assumed, that every user gets the same 
> uid, gid and a valid home directory.
> 
> Are there some circumstances, that different passdb-drivers treated in 
> special relation to userdb-drivers? Like, one have to configure a 
> userdb-driver=ldap if one uses a passdb-driver=ldap. But the 
> passdb-driver=pam looks into userdb-driver=static. That is the part, I 
> do not understand.
> 
>> [*ToFu*]

What is the output of commands `doveadm user -f home foo` and `doveadm
user -f home  bar`?


Regards,
Pascal
-- 
The trapper recommends today: c01dcofe.1415...@localdomain.org


Re: [Dovecot] dovecot: lda(foo): Error: User foo doesn't have home dir set, disabling duplicate database

2014-05-31 Thread Christian Hoffmann

Hello Pascal,

but I didn't configure a userdb with driver=ldap. There is only one 
userdb with driver=static and I assumed, that every user gets the same 
uid, gid and a valid home directory.


Are there some circumstances, that different passdb-drivers treated in 
special relation to userdb-drivers? Like, one have to configure a 
userdb-driver=ldap if one uses a passdb-driver=ldap. But the 
passdb-driver=pam looks into userdb-driver=static. That is the part, I 
do not understand.


Greetings
Christian

Am 31.05.2014 19:12, schrieb Pascal Volk:

On 05/31/2014 03:04 PM Christian Hoffmann wrote:

Hello everyone,

I have a small problem with dovecot installed on ubuntu-13.10. I use
dovcot as LDA with a LDAP-passdb and a pam-passdb. The userdb is static.
A mail to LDAP-user 'foo' is delivered with the error-message

dovecot: lda(foo): Error: User foo doesn't have home dir set, disabling
duplicate database

Your LDAP based userdb doesn't return the home directory for user foo.
The LDAP lookup should return the home directory. See
http://wiki2.dovecot.org/UserDatabase

And even for virtual users you should have a home directory for each
virtual user. See http://wiki2.dovecot.org/VirtualUsers/Home


A mail to the pam-user 'bar' will deliverd without this error. But both
users should work with the static-userdb. Where is my mistake?

Because the userdb returns the home directory of the system user bar.


Regards,
Pascal


Re: [Dovecot] dovecot: lda(foo): Error: User foo doesn't have home dir set, disabling duplicate database

2014-05-31 Thread Pascal Volk
On 05/31/2014 03:04 PM Christian Hoffmann wrote:
> Hello everyone,
> 
> I have a small problem with dovecot installed on ubuntu-13.10. I use 
> dovcot as LDA with a LDAP-passdb and a pam-passdb. The userdb is static. 
> A mail to LDAP-user 'foo' is delivered with the error-message
> 
> dovecot: lda(foo): Error: User foo doesn't have home dir set, disabling 
> duplicate database

Your LDAP based userdb doesn't return the home directory for user foo.
The LDAP lookup should return the home directory. See
http://wiki2.dovecot.org/UserDatabase

And even for virtual users you should have a home directory for each
virtual user. See http://wiki2.dovecot.org/VirtualUsers/Home

> A mail to the pam-user 'bar' will deliverd without this error. But both 
> users should work with the static-userdb. Where is my mistake?

Because the userdb returns the home directory of the system user bar.


Regards,
Pascal
-- 
The trapper recommends today: c01dcofe.1415...@localdomain.org


[Dovecot] dovecot: lda(foo): Error: User foo doesn't have home dir set, disabling duplicate database

2014-05-31 Thread Christian Hoffmann

Hello everyone,

I have a small problem with dovecot installed on ubuntu-13.10. I use 
dovcot as LDA with a LDAP-passdb and a pam-passdb. The userdb is static. 
A mail to LDAP-user 'foo' is delivered with the error-message


dovecot: lda(foo): Error: User foo doesn't have home dir set, disabling 
duplicate database


A mail to the pam-user 'bar' will deliverd without this error. But both 
users should work with the static-userdb. Where is my mistake?


Greetings
Christian

dovecot --version
2.1.7
 my dovecot.conf
# 2.1.7: /etc/dovecot/dovecot.conf
# OS: Linux 3.11.0-22-generic i686 Ubuntu 13.10 ext4
disable_plaintext_auth = no
first_valid_uid = 107
last_valid_uid = 109
listen = *
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_home = /var/mail/%u
mail_location = maildir:/var/mail/%u/Maildir
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character 
vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy 
include variables body enotify environment mailbox date ihave
passdb {
  args = /etc/dovecot/dovecot-ldap.conf
  driver = ldap
}
passdb {
  driver = pam
}
plugin {
  sieve = /var/mail/%u/dovecot.sieve
  sieve_before = /etc/dovecot/sieve.global/spamfilter.sieve
}
protocols = imap pop3 sieve
service auth {
  user = root
}
service managesieve-login {
  inet_listener sieve {
port = 2000
  }
}
ssl_cert = 

Re: [Dovecot] Plugin mail-filter tangles

2014-05-31 Thread Stanislas SABATIER
Le 30/05/2014 23:30, Axel Luttgens a écrit :
> A case I described as being a bit frightening, since it could raise
> some privacy concerns. 
I agree !
> Anyway, managing to have Postfix sending one message per recipient
> might prove useful for diagnosing the problem. HTH, Axel 
I managed to force Postfix to send one message per recipient, and it
seams to fix the issue at Dovecot's side.
So, we need to dig into Dovecot's LMTP handler. I would be delighted to
help you !

Regards,
Stan.