RE: Dovecot eBook

2019-07-20 Thread Peter Fraser via dovecot
Well, if there’s no other way, I guess I will have to.

Thanks.

Sent from Mail for Windows 10

From: LuKreme via dovecot
Sent: Saturday, July 20, 2019 3:33 AM
To: Peter Fraser via dovecot
Subject: Re: Dovecot eBook

On Jul 19, 2019, at 19:29, Peter Fraser via dovecot  wrote:

I have a strange question. I bought the Dovecot Book off Amazon. I can easily 
prove it with a picture and/or my receipt off Amazon. I still have it o my 
library but I don’t like to travel around with it. Is there a way for me to get 
a PDF copy? I just checked Amazon and there is still no PDF version available 
there.

Tedious, but scan the book. I have done this with my iPhone and it resulted in 
a very good copy that was fully OCRed





Dovecot eBook

2019-07-19 Thread Peter Fraser via dovecot
Hi Timo
I have a strange question. I bought the Dovecot Book off Amazon. I can easily 
prove it with a picture and/or my receipt off Amazon. I still have it o my 
library but I don’t like to travel around with it. Is there a way for me to get 
a PDF copy? I just checked Amazon and there is still no PDF version available 
there.


Regards
SI

Sent from Mail for Windows 10



Upgrade from version 1 to 2

2016-12-17 Thread Peter Fraser
Hi All
I am upgrading from dovecot-1.2.17 to dovecot2-2.2.27_4. I configured
version 2 from scratch. I have email in the maildir format. Would it be ok
in theory if I simply copy over the email files from the version 1 server
to the version 2 server or are there any hidden dangers here? Any problems
with indexing?

Thanks for any advice


Dovecot lmtp

2016-11-12 Thread Peter Fraser
Hi All
I am migrating from dovecot-1.x where I had LDA running
to dovecot2-2.2.26.0_1 where I am trying to set up LMTP. I have enabled a
TCP/IP socket .Setting below.
service lmtp {
inet_listener lmtp {
address = 127.0.0.1
port = 24
}
}

and put this additional entry in postfix
 virtual_transport = lmtp:127.0.0.1:24

in 10-mail.conf my mail location is below
mail_location=maildir:~/Maildir:INBOX=~/Maildir/:INDEX=~/Maildir/tmp/index

My problem is that when I enable lmtp, dovecot creates a new maildir at
/home/vmail/u...@domain.com and delivers the email there in a Maildir
instead of using the default one at /home/vmail/username

I researched it but I just can't seem to figure out why this is. I would
really appreciate any help on this. Thanks in advance.


Dovecot and zlib

2016-11-07 Thread Peter Fraser
HI All
I have a dovecot 1 server up and running without zlib and I am setting up a
new Dovecot 2 Server and I want to use zlib. What is the proper way to do
this? Should I set up the new server, copy the mail across and then enable
zlib or do I compress the current mail in place and then copy across?

Thanks for any help.


Re: Dovecot 2 LDAP "unknown user"

2016-11-05 Thread Peter Fraser
I finally managed to get this going but I have noticed in my case that:

1. I need to make sure the user logon name in AD and the samAccountname are
exactly the same, case and all. It seems postfix
uses the samAccountname and Dovecot the User logon name.
2. I also noticed that if the Display name for a user in AD is blank, that
user cannot log in using telnet  110.

I am quite willing to work with it as it is but if anyone knows if this is
normal behavior or not, I would be glad to know. Not sure if some could be
configured better.

Just for information, I am including my current configs. Thanks for your
assistance Steffen.

listen = *
login_greeting = Mail Server ready.
mail_gid = 1002
mail_home = /home/vmail/%u
mail_location = maildir:~/Maildir
mail_uid = 1002
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 {
  args = /usr/local/etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
service lmtp {
  unix_listener lmtp {
user = vmail
  }
}
ssl_cert = 
wrote:

> Sorry yes, peter is the unmangled user name.
>
> On Fri, Nov 4, 2016 at 2:18 AM, Steffen Kaiser <
> skdove...@smail.inf.fh-brs.de> wrote:
>
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>> On Thu, 3 Nov 2016, Peter Fraser wrote:
>>
>> The command doveadm user -u username successfully returns the username and
>>> any information it can for the user in AD. As a matter of fact, I entered
>>> some home directory information in AD and this command returned the
>>> User's
>>> Home Directory as well. Is it a problem though that the telnet test won't
>>> work?
>>>
>>
>> Hmm, I don't understand the question,
>>
>> telnet xyz 143
>> 1 login username password
>>
>> must work in order to login via IMAP.
>>
>> But you didn't answered the other question, see below
>>
>> On Thu, Nov 3, 2016 at 2:36 AM, Steffen Kaiser <
>>> skdove...@smail.inf.fh-brs.de> wrote:
>>>
>>> -BEGIN PGP SIGNED MESSAGE-
>>>> Hash: SHA1
>>>>
>>>> On Wed, 2 Nov 2016, Peter Fraser wrote:
>>>>
>>>> #Custom Settings
>>>>
>>>>> hosts = 192.168.153.143
>>>>> dn = u...@domain.com
>>>>> dnpass = password
>>>>> auth_bind = yes
>>>>> auth_bind_userdn = %u...@domain.com
>>>>> ldap_version = 3
>>>>> base = dc=rpservices,dc=com
>>>>> #user_filter = (&(objectclass=person)(mail=%u))
>>>>> user_filter = (&(objectclass=person)(uid=%u))
>>>>> pass_filter = (&(objectclass=person)(uid=%u))
>>>>> user_attrs = homeDirectory=/home/vmail/%u,uid=1002,gid=1002
>>>>>
>>>>>
>>>> you wrote:
>>>>
>>>> root@BSD-11:/usr/local/etc/dovecot # doveadm auth test username
>>>>>
>>>>>>
>>>>>> extra fields:
>>>>>>>  user=username
>>>>>>>
>>>>>>>
>>>>>> is successful. Is user=username
>>>>^^^   that same as the username in doveadm?
>>>>
>>>
>>
>> Here. You've posted mangled information only, so if the extra fields
>> return another username, other tests are different.
>>
>> What about:
>>>>
>>>>  doveadm user -u username
>>>>
>>>> ?
>>>>
>>>>
>>>> When I tried to log in again using telnet 127.0.0.1 110, the error
>>>> shows up
>>>>
>>>>> in maillog. I first tried logging in with just the username, then I
>>>>> tried
>>>>> using usern...@domain.com. Using doveadm still works though.
>>>>>
>>>>>
>>>>
>>>> BSD-11 dovecot: auth: ldap(peter,127.0.0.1,): unknown
>>>>> user
>>>>> Nov  2 11:29:23 BSD-11 dovecot: auth: Error:
>>>>> ldap(user,127.0.0.1,): user not found from userdb
>>>>>
>>>>
>> what about here, is peter, appearing in the first line, the unmangled
>> "user" here?
>>
>>
>> Nov  2 11:29:23 BSD-11 dovecot: pop3: Error: Authenticated user not found
>>>>> from userdb, auth lookup id=226492417 (client-pid=874 client-id=1)
>>>>> Nov  2 11:29:23 B

Re: Dovecot 2 LDAP "unknown user"

2016-11-04 Thread Peter Fraser
Sorry yes, peter is the unmangled user name.

On Fri, Nov 4, 2016 at 2:18 AM, Steffen Kaiser <
skdove...@smail.inf.fh-brs.de> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On Thu, 3 Nov 2016, Peter Fraser wrote:
>
> The command doveadm user -u username successfully returns the username and
>> any information it can for the user in AD. As a matter of fact, I entered
>> some home directory information in AD and this command returned the User's
>> Home Directory as well. Is it a problem though that the telnet test won't
>> work?
>>
>
> Hmm, I don't understand the question,
>
> telnet xyz 143
> 1 login username password
>
> must work in order to login via IMAP.
>
> But you didn't answered the other question, see below
>
> On Thu, Nov 3, 2016 at 2:36 AM, Steffen Kaiser <
>> skdove...@smail.inf.fh-brs.de> wrote:
>>
>> -BEGIN PGP SIGNED MESSAGE-
>>> Hash: SHA1
>>>
>>> On Wed, 2 Nov 2016, Peter Fraser wrote:
>>>
>>> #Custom Settings
>>>
>>>> hosts = 192.168.153.143
>>>> dn = u...@domain.com
>>>> dnpass = password
>>>> auth_bind = yes
>>>> auth_bind_userdn = %u...@domain.com
>>>> ldap_version = 3
>>>> base = dc=rpservices,dc=com
>>>> #user_filter = (&(objectclass=person)(mail=%u))
>>>> user_filter = (&(objectclass=person)(uid=%u))
>>>> pass_filter = (&(objectclass=person)(uid=%u))
>>>> user_attrs = homeDirectory=/home/vmail/%u,uid=1002,gid=1002
>>>>
>>>>
>>> you wrote:
>>>
>>> root@BSD-11:/usr/local/etc/dovecot # doveadm auth test username
>>>>
>>>>>
>>>>> extra fields:
>>>>>>  user=username
>>>>>>
>>>>>>
>>>>> is successful. Is user=username
>>>^^^   that same as the username in doveadm?
>>>
>>
>
> Here. You've posted mangled information only, so if the extra fields
> return another username, other tests are different.
>
> What about:
>>>
>>>  doveadm user -u username
>>>
>>> ?
>>>
>>>
>>> When I tried to log in again using telnet 127.0.0.1 110, the error shows
>>> up
>>>
>>>> in maillog. I first tried logging in with just the username, then I
>>>> tried
>>>> using usern...@domain.com. Using doveadm still works though.
>>>>
>>>>
>>>
>>> BSD-11 dovecot: auth: ldap(peter,127.0.0.1,): unknown
>>>> user
>>>> Nov  2 11:29:23 BSD-11 dovecot: auth: Error:
>>>> ldap(user,127.0.0.1,): user not found from userdb
>>>>
>>>
> what about here, is peter, appearing in the first line, the unmangled
> "user" here?
>
>
> Nov  2 11:29:23 BSD-11 dovecot: pop3: Error: Authenticated user not found
>>>> from userdb, auth lookup id=226492417 (client-pid=874 client-id=1)
>>>> Nov  2 11:29:23 BSD-11 dovecot: pop3-login: Internal login failure
>>>> (pid=874
>>>> id=1) (internal failure, 1 successful auths): user=, method=PLAIN
>>>> Nov  2 11:30:42 BSD-11 dovecot: auth: ldap(u...@domain.com): invalid
>>>> credentials
>>>> Nov  2 14:08:17 BSD-11 dovecot: auth:
>>>> ldap(user,127.0.0.1,<4uLkKVZAvY9/AAAB>): invalid credentials
>>>> Nov  2 14:09:38 BSD-11 dovecot: auth:
>>>> ldap(u...@domain.com,127.0.0.1,<4uLkKVZAvY9/AAAB>):
>>>> invalid credentials
>>>> Nov  2 14:11:00 BSD-11 dovecot: pop3-login: Disconnected: Inactivity
>>>> (auth
>>>> failed, 2 attempts in 163 secs): user=<u...@domain.com>
>>>>
>>>> On Wed, Nov 2, 2016 at 4:39 AM, Steffen Kaiser <
>>>> skdove...@smail.inf.fh-brs.de> wrote:
>>>>
>>>> -BEGIN PGP SIGNED MESSAGE-
>>>>
>>>>> Hash: SHA1
>>>>>
>>>>> On Tue, 1 Nov 2016, Peter Fraser wrote:
>>>>>
>>>>> root@BSD-11:/usr/local/etc/dovecot # doveadm auth test username
>>>>>
>>>>> Password:
>>>>>> passdb: user auth succeeded
>>>>>> extra fields:
>>>>>>  user=username
>>>>>> root@BSD-11:/usr/local/etc/dovecot #
>>>>>>
>>>>>> But when I run telnet 127.0.0.1 110 and try to log in it says unknown
>>>>>> user.
>&

Re: Dovecot 2 LDAP "unknown user"

2016-11-03 Thread Peter Fraser
Thanks for your reply again Steffen.
The command doveadm user -u username successfully returns the username and
any information it can for the user in AD. As a matter of fact, I entered
some home directory information in AD and this command returned the User's
Home Directory as well. Is it a problem though that the telnet test won't
work?

On Thu, Nov 3, 2016 at 2:36 AM, Steffen Kaiser <
skdove...@smail.inf.fh-brs.de> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On Wed, 2 Nov 2016, Peter Fraser wrote:
>
> #Custom Settings
>> hosts = 192.168.153.143
>> dn = u...@domain.com
>> dnpass = password
>> auth_bind = yes
>> auth_bind_userdn = %u...@domain.com
>> ldap_version = 3
>> base = dc=rpservices,dc=com
>> #user_filter = (&(objectclass=person)(mail=%u))
>> user_filter = (&(objectclass=person)(uid=%u))
>> pass_filter = (&(objectclass=person)(uid=%u))
>> user_attrs = homeDirectory=/home/vmail/%u,uid=1002,gid=1002
>>
>
> you wrote:
>
>> root@BSD-11:/usr/local/etc/dovecot # doveadm auth test username
>>>
>>>> extra fields:
>>>>  user=username
>>>>
>>>
> is successful. Is user=username
>^^^   that same as the username in doveadm?
>
> What about:
>
>  doveadm user -u username
>
> ?
>
>
> When I tried to log in again using telnet 127.0.0.1 110, the error shows up
>> in maillog. I first tried logging in with just the username, then I tried
>> using usern...@domain.com. Using doveadm still works though.
>>
>
>
>> BSD-11 dovecot: auth: ldap(peter,127.0.0.1,): unknown
>> user
>> Nov  2 11:29:23 BSD-11 dovecot: auth: Error:
>> ldap(user,127.0.0.1,): user not found from userdb
>> Nov  2 11:29:23 BSD-11 dovecot: pop3: Error: Authenticated user not found
>> from userdb, auth lookup id=226492417 (client-pid=874 client-id=1)
>> Nov  2 11:29:23 BSD-11 dovecot: pop3-login: Internal login failure
>> (pid=874
>> id=1) (internal failure, 1 successful auths): user=, method=PLAIN
>> Nov  2 11:30:42 BSD-11 dovecot: auth: ldap(u...@domain.com): invalid
>> credentials
>> Nov  2 14:08:17 BSD-11 dovecot: auth:
>> ldap(user,127.0.0.1,<4uLkKVZAvY9/AAAB>): invalid credentials
>> Nov  2 14:09:38 BSD-11 dovecot: auth:
>> ldap(u...@domain.com,127.0.0.1,<4uLkKVZAvY9/AAAB>):
>> invalid credentials
>> Nov  2 14:11:00 BSD-11 dovecot: pop3-login: Disconnected: Inactivity (auth
>> failed, 2 attempts in 163 secs): user=<u...@domain.com>
>>
>> On Wed, Nov 2, 2016 at 4:39 AM, Steffen Kaiser <
>> skdove...@smail.inf.fh-brs.de> wrote:
>>
>> -BEGIN PGP SIGNED MESSAGE-
>>> Hash: SHA1
>>>
>>> On Tue, 1 Nov 2016, Peter Fraser wrote:
>>>
>>> root@BSD-11:/usr/local/etc/dovecot # doveadm auth test username
>>>
>>>> Password:
>>>> passdb: user auth succeeded
>>>> extra fields:
>>>>  user=username
>>>> root@BSD-11:/usr/local/etc/dovecot #
>>>>
>>>> But when I run telnet 127.0.0.1 110 and try to log in it says unknown
>>>> user.
>>>> Error below in maillog.
>>>> BSD-11 dovecot: pop3: Error: Authenticated user not found from userdb,
>>>> auth
>>>> lookup id=2262958081 (client-pid=2273 client-id=1)
>>>> Nov  1 15:15:41 BSD-11 dovecot: pop3-login: Internal login failure
>>>> (pid=2273 id=1) (internal failure, 1 successful auths): user=
>>>>
>>>>
>>> passdb {
>>>
>>>>  args = /usr/local/etc/dovecot/dovecot-ldap.conf.ext
>>>>  driver = ldap
>>>> }
>>>>
>>>>
>>> userdb {
>>>
>>>>  args = /usr/local/etc/dovecot/dovecot-ldap.conf.ext
>>>>  driver = ldap
>>>> }
>>>>
>>>>
>>> #Contents of dovecot-ldap.conf.ext
>>>
>>>> hosts = 192.168.153.143
>>>> dn = u...@domain.com
>>>> dnpass = password
>>>> auth_bind = yes
>>>> auth_bind_userdn = domain\%u
>>>> ldap_version = 3
>>>> base = dc=domain,dc=com
>>>> pass_filter = (&(objectclass=person)(uid=%u))
>>>> user_attrs = homeDirectory=/home/vmail/%u,uid=1002,gid=1002
>>>>
>>>>
>>> duplicate pass_filter to user_filter.
>>>
>>> - -- Steffen Kaiser
>>> -BEGIN PGP SIGNATURE-
>>> Version: GnuPG v1
>>>
>>> iQEVAwUBWBm0Onz1H7kL/d9rAQJWhQf+PRD5yd29UyL1drjlTOWD/s4qUffg8OBh
>>> inb8L3eCKDuSad8s9INUJSa6WxGEVdatL4PKjTcbL5IsPIob87W5jOduWFMtPlt0
>>> FXxWtfc1bAjRyNLzkGe1mUT1z0EDVO22UkQSd9J3bZQ9wR+FzgeGqdcyzl+WSyzB
>>> Eaiea23ieCjhZRAZF/pl1gDjkap+tPQ8gZLdt4p1QQrY5Jllifu5jYEyjqPkwUXf
>>> YMfEiCJSInyMQ8CCuL1Aj8iM/7qLLi8pyC9KSA6NntK4mpHAaInYln6SZY+ZGJCY
>>> KV60nGuwwv3qQFeKchhhr+GpGDQYXJ5eBq+Ji+cKgvbypFa13NNS8A==
>>> =l02F
>>> -END PGP SIGNATURE-
>>>
>>>
>>
> - -- Steffen Kaiser
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1
>
> iQEVAwUBWBrpDnz1H7kL/d9rAQKwzggAnJz4LR0SXVWSFdSDrKYs40IEN/ko/4el
> D7/4q4lVBo9dntf+NeGS1JxttebiN7ng4F5pm841Z0l7acj6z8HzMCr11Voqbuy7
> 4WJirG2DnwmzxZRi1M86QGqXWU00jhFplSvZfWhX8uQasmp1FqV3hhUMmcTFfXTX
> DqtFali5ymUPV87XU2hZEtpe3jkBdjWmmHW8gVfSXVXBcRBa96+12FEOwONLVVcQ
> VGZRb6XxWexRcwAo4NY+NfqcM3OEGC4AZgfqBsWnZOUhijnw+ffbu4YL8aZBIGlB
> P78R0N0DtpRAToRJYvr00OMk27dkHU+0Ock/cFUr6H1cYXHBsfvO2A==
> =lz82
> -END PGP SIGNATURE-
>


Re: Dovecot 2 LDAP "unknown user"

2016-11-02 Thread Peter Fraser
I updated dovecot-ldap.conf.ext so that it now reads as below:

#Custom Settings
hosts = 192.168.153.143
dn = u...@domain.com
dnpass = password
auth_bind = yes
auth_bind_userdn = %u...@domain.com
ldap_version = 3
base = dc=rpservices,dc=com
#user_filter = (&(objectclass=person)(mail=%u))
user_filter = (&(objectclass=person)(uid=%u))
pass_filter = (&(objectclass=person)(uid=%u))
user_attrs = homeDirectory=/home/vmail/%u,uid=1002,gid=1002

When I tried to log in again using telnet 127.0.0.1 110, the error shows up
in maillog. I first tried logging in with just the username, then I tried
using usern...@domain.com. Using doveadm still works though.

 BSD-11 dovecot: auth: ldap(peter,127.0.0.1,): unknown
user
Nov  2 11:29:23 BSD-11 dovecot: auth: Error:
ldap(user,127.0.0.1,): user not found from userdb
Nov  2 11:29:23 BSD-11 dovecot: pop3: Error: Authenticated user not found
from userdb, auth lookup id=226492417 (client-pid=874 client-id=1)
Nov  2 11:29:23 BSD-11 dovecot: pop3-login: Internal login failure (pid=874
id=1) (internal failure, 1 successful auths): user=, method=PLAIN
Nov  2 11:30:42 BSD-11 dovecot: auth: ldap(u...@domain.com): invalid
credentials
Nov  2 14:08:17 BSD-11 dovecot: auth:
ldap(user,127.0.0.1,<4uLkKVZAvY9/AAAB>): invalid credentials
Nov  2 14:09:38 BSD-11 dovecot: auth:
ldap(u...@domain.com,127.0.0.1,<4uLkKVZAvY9/AAAB>):
invalid credentials
Nov  2 14:11:00 BSD-11 dovecot: pop3-login: Disconnected: Inactivity (auth
failed, 2 attempts in 163 secs): user=<u...@domain.com>

On Wed, Nov 2, 2016 at 4:39 AM, Steffen Kaiser <
skdove...@smail.inf.fh-brs.de> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On Tue, 1 Nov 2016, Peter Fraser wrote:
>
> root@BSD-11:/usr/local/etc/dovecot # doveadm auth test username
>> Password:
>> passdb: user auth succeeded
>> extra fields:
>>  user=username
>> root@BSD-11:/usr/local/etc/dovecot #
>>
>> But when I run telnet 127.0.0.1 110 and try to log in it says unknown
>> user.
>> Error below in maillog.
>> BSD-11 dovecot: pop3: Error: Authenticated user not found from userdb,
>> auth
>> lookup id=2262958081 (client-pid=2273 client-id=1)
>> Nov  1 15:15:41 BSD-11 dovecot: pop3-login: Internal login failure
>> (pid=2273 id=1) (internal failure, 1 successful auths): user=
>>
>
> passdb {
>>  args = /usr/local/etc/dovecot/dovecot-ldap.conf.ext
>>  driver = ldap
>> }
>>
>
> userdb {
>>  args = /usr/local/etc/dovecot/dovecot-ldap.conf.ext
>>  driver = ldap
>> }
>>
>
> #Contents of dovecot-ldap.conf.ext
>> hosts = 192.168.153.143
>> dn = u...@domain.com
>> dnpass = password
>> auth_bind = yes
>> auth_bind_userdn = domain\%u
>> ldap_version = 3
>> base = dc=domain,dc=com
>> pass_filter = (&(objectclass=person)(uid=%u))
>> user_attrs = homeDirectory=/home/vmail/%u,uid=1002,gid=1002
>>
>
> duplicate pass_filter to user_filter.
>
> - -- Steffen Kaiser
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1
>
> iQEVAwUBWBm0Onz1H7kL/d9rAQJWhQf+PRD5yd29UyL1drjlTOWD/s4qUffg8OBh
> inb8L3eCKDuSad8s9INUJSa6WxGEVdatL4PKjTcbL5IsPIob87W5jOduWFMtPlt0
> FXxWtfc1bAjRyNLzkGe1mUT1z0EDVO22UkQSd9J3bZQ9wR+FzgeGqdcyzl+WSyzB
> Eaiea23ieCjhZRAZF/pl1gDjkap+tPQ8gZLdt4p1QQrY5Jllifu5jYEyjqPkwUXf
> YMfEiCJSInyMQ8CCuL1Aj8iM/7qLLi8pyC9KSA6NntK4mpHAaInYln6SZY+ZGJCY
> KV60nGuwwv3qQFeKchhhr+GpGDQYXJ5eBq+Ji+cKgvbypFa13NNS8A==
> =l02F
> -END PGP SIGNATURE-
>


Dovecot 2 LDAP "unknown user"

2016-11-01 Thread Peter Fraser
Hi All
I am using Dovecot dovecot2-2.2.25_6 on FreeBSD 11. I am trying to set up
LDAP authentication to Active Director as I had it in version 1 of Dovecot.
My settings are at bottom. When I run doveadm auth test username, I get
back
root@BSD-11:/usr/local/etc/dovecot # doveadm auth test username
Password:
passdb: user auth succeeded
extra fields:
  user=username
root@BSD-11:/usr/local/etc/dovecot #

But when I run telnet 127.0.0.1 110 and try to log in it says unknown user.
Error below in maillog.
BSD-11 dovecot: pop3: Error: Authenticated user not found from userdb, auth
lookup id=2262958081 (client-pid=2273 client-id=1)
Nov  1 15:15:41 BSD-11 dovecot: pop3-login: Internal login failure
(pid=2273 id=1) (internal failure, 1 successful auths): user=



root@BSD-11:/usr/local/etc/dovecot # doveconf -n
# 2.2.25 (7be1766): /usr/local/etc/dovecot/dovecot.conf
# OS: FreeBSD 11.0-RELEASE-p1 i386
auth_debug = yes
auth_verbose = yes
listen = *
login_greeting = Mail Server ready.
mail_location = maildir:~/Maildir
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 {
  args = /usr/local/etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
ssl_cert = 

Dovecot 2 Issue

2016-03-09 Thread Peter Fraser
Hi All
I have had a Dovecot-1.x Server running without issue for about 5 years
now. I decided to set up a new Server and configure version 2 from scratch.
I am having a little issue though.

Set up on FreeBSD 10.2
Using dovecot2-2.2.21_1

Dovecot starts up but isn't listening on pop3 and imap ports. Not sure what
I have missed. My dovecot -a readout is below. Thanks for any help.

root@SMTP1:/home/frank # doveconf -a
# 2.2.21 (5345f22): /usr/local/etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.12 (c1c0a23)
# OS: FreeBSD 10.2-RELEASE-p9 amd64
# NOTE: Send doveconf -n output instead when asking for help.
auth_anonymous_username = anonymous
auth_cache_negative_ttl = 1 hours
auth_cache_size = 0
auth_cache_ttl = 1 hours
auth_debug = yes
auth_debug_passwords = no
auth_default_realm =
auth_failure_delay = 2 secs
auth_gssapi_hostname =
auth_krb5_keytab =
auth_master_user_separator =
auth_mechanisms = plain
auth_proxy_self =
auth_realms =
auth_socket_path = auth-userdb
auth_ssl_require_client_cert = no
auth_ssl_username_from_cert = no
auth_use_winbind = no
auth_username_chars =
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@
auth_username_format = %Ln
auth_username_translation =
auth_verbose = yes
auth_verbose_passwords = no
auth_winbind_helper_path = /usr/bin/ntlm_auth
auth_worker_max_count = 30
base_dir = /var/run/dovecot
config_cache_size = 1 M
debug_log_path =
default_client_limit = 1000
default_idle_kill = 1 mins
default_internal_user = dovecot
default_login_user = dovenull
default_process_limit = 100
default_vsz_limit = 256 M
deliver_log_format = msgid=%m: %$
dict_db_config =
director_consistent_hashing = no
director_doveadm_port = 0
director_mail_servers =
director_servers =
director_user_expire = 15 mins
director_user_kick_delay = 2 secs
director_username_hash = %u
disable_plaintext_auth = yes
dotlock_use_excl = yes
doveadm_allowed_commands =
doveadm_password =
doveadm_port = 0
doveadm_socket_path = doveadm-server
doveadm_username = doveadm
doveadm_worker_count = 0
dsync_alt_char = _
dsync_remote_cmd = ssh -l%{login} %{host} doveadm dsync-server -u%u -U
first_valid_gid = 1000
first_valid_uid = 1000
haproxy_timeout = 3 secs
haproxy_trusted_networks =
hostname = example.com
imap_capability =
imap_client_workarounds = delay-newmail tb-extra-mailbox-sep
imap_hibernate_timeout = 0
imap_id_log =
imap_id_send = name *
imap_idle_notify_interval = 2 mins
imap_logout_format = in=%i out=%o
imap_max_line_length = 64 k
imap_metadata = no
imap_urlauth_host =
imap_urlauth_logout_format = in=%i out=%o
imap_urlauth_port = 143
imapc_features =
imapc_host =
imapc_list_prefix =
imapc_master_user =
imapc_max_idle_time = 29 mins
imapc_password =
imapc_port = 143
imapc_rawlog_dir =
imapc_sasl_mechanisms =
imapc_ssl = no
imapc_ssl_verify = yes
imapc_user =
import_environment = TZ CORE_OUTOFMEM CORE_ERROR
info_log_path =
instance_name = dovecot
last_valid_gid = 0
last_valid_uid = 0
lda_mailbox_autocreate = no
lda_mailbox_autosubscribe = no
lda_original_recipient_header =
libexec_dir = /usr/local/libexec/dovecot
listen = *
lmtp_address_translate =
lmtp_hdr_delivery_address = final
lmtp_proxy = no
lmtp_rcpt_check_quota = no
lmtp_save_to_detail_mailbox = no
lmtp_user_concurrency_limit = 0
lock_method = fcntl
log_path = syslog
log_timestamp = "%b %d %H:%M:%S "
login_access_sockets =
login_greeting = Mail Server ready.
login_log_format = %$: %s
login_log_format_elements = user=<%u> method=%m rip=%r lip=%l mpid=%e %c
session=<%{session}>
login_proxy_max_disconnect_delay = 0
login_source_ips =
login_trusted_networks =
mail_access_groups =
mail_always_cache_fields =
mail_attachment_dir =
mail_attachment_fs = sis posix
mail_attachment_hash = %{sha1}
mail_attachment_min_size = 128 k
mail_attribute_dict =
mail_cache_fields = flags
mail_cache_min_mail_count = 0
mail_chroot =
mail_debug = no
mail_fsync = optimized
mail_full_filesystem_access = no
mail_gid =
mail_home =
mail_location = maildir:~/Maildir:INBOX=~/Maildir/:INDEX=~/Maildir/tmp/index
mail_log_prefix = "%s(%u): "
mail_max_keyword_length = 50
mail_max_lock_timeout = 0
mail_max_userip_connections = 10
mail_never_cache_fields = imap.envelope
mail_nfs_index = no
mail_nfs_storage = no
mail_plugin_dir = /usr/local/lib/dovecot
mail_plugins =
mail_prefetch_count = 0
mail_privileged_group = mail
mail_save_crlf = no
mail_server_admin =
mail_server_comment =
mail_shared_explicit_inbox = no
mail_temp_dir = /tmp
mail_temp_scan_interval = 1 weeks
mail_uid =
mailbox_idle_check_interval = 30 secs
mailbox_list_index = no
mailbox_list_index_very_dirty_syncs = no
maildir_broken_filename_sizes = no
maildir_copy_with_hardlinks = yes
maildir_empty_new = no
maildir_stat_dirs = no
maildir_very_dirty_syncs = no
managesieve_client_workarounds =
managesieve_implementation_string = Dovecot Pigeonhole
managesieve_logout_format = bytes=%i/%o
managesieve_max_compile_errors = 5
managesieve_max_line_length = 65536
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto 

[Dovecot] Migration Question

2012-07-03 Thread Peter Fraser
Hi all
I got a shiny new server and I want to install the latest and greatest of
everything on it. The old server has dovecot-1.2.17 working
with postfix-2.8.4,1, dovecot quotas, sieve etc.
My question is: Would it work of I installed dovecot 2 on this server along
with everything I want and just copy the /home/virtualmail directory where
all the user mail directories are? I use the Maildir format by the way.


[Dovecot] Quota Issue

2010-04-21 Thread Peter Fraser
Hi All

I'm using dovecot version 1.2.4_1 and I noticed something strange. I
checked the list but so far I haven't found anything that exactly fits
my setup. I'm using maildirs and ldap as a backend to authenticate. A
user went over quota, realized it and proceeded to delete a lot of
email. Even now, after about 15 minutes, the quota indicator is still
showing that he is over quota even though the users mailbox size is
down by over 200MB. Why isn't Dovecot showing the change, and is there
a way around this?

Thanks for any help.


Re: [Dovecot] Quota Issue

2010-04-21 Thread Peter Fraser
He used Thunderbird to delete them. I checked and they were deleted,
not just flagged.


On Wed, Apr 21, 2010 at 3:36 PM, Charles Marcus
cmar...@media-brokers.com wrote:
 On 2010-04-21 3:17 PM, Peter Fraser wrote:
 Hi All

 I'm using dovecot version 1.2.4_1 and I noticed something strange. I
 checked the list but so far I haven't found anything that exactly fits
 my setup. I'm using maildirs and ldap as a backend to authenticate. A
 user went over quota, realized it and proceeded to delete a lot of
 email. Even now, after about 15 minutes, the quota indicator is still
 showing that he is over quota even though the users mailbox size is
 down by over 200MB. Why isn't Dovecot showing the change, and is there
 a way around this?

 How did he delete them? Maybe they are just flagged for deletion but
 haven't been PURGED yet?

 --

 Best regards,

 Charles



Re: [Dovecot] Quota Issue

2010-04-21 Thread Peter Fraser
Ok this is an update. The quota has been refreshed now. Any ideas why
it takes so long though? It wasn't refreshed until almost an hour
later.

On Wed, Apr 21, 2010 at 3:51 PM, Peter Fraser petros.fra...@gmail.com wrote:
 He used Thunderbird to delete them. I checked and they were deleted,
 not just flagged.


 On Wed, Apr 21, 2010 at 3:36 PM, Charles Marcus
 cmar...@media-brokers.com wrote:
 On 2010-04-21 3:17 PM, Peter Fraser wrote:
 Hi All

 I'm using dovecot version 1.2.4_1 and I noticed something strange. I
 checked the list but so far I haven't found anything that exactly fits
 my setup. I'm using maildirs and ldap as a backend to authenticate. A
 user went over quota, realized it and proceeded to delete a lot of
 email. Even now, after about 15 minutes, the quota indicator is still
 showing that he is over quota even though the users mailbox size is
 down by over 200MB. Why isn't Dovecot showing the change, and is there
 a way around this?

 How did he delete them? Maybe they are just flagged for deletion but
 haven't been PURGED yet?

 --

 Best regards,

 Charles




Re: [Dovecot] Public Folder Quotas

2009-10-29 Thread Peter Fraser
The public mailbox quota works fine. Thanks to ll who helped. I'm running 1.2.4
This is what I did to get a public folder called newsletters with
quota of 100M

1. Create a maildir called newsletters
2. Entered this to define the namespace in dovecot.conf

namespace public {
  separator = /
  prefix = newsletters/
  list = yes
  subscriptions = yes
  location = maildir:/home/public/newsletters
}

3. quota3 = maildir:Public quota:ns=newsletters/
4. quota3_rule = *:storage=100M

Thanks again.

On Thu, Oct 29, 2009 at 10:05 AM, Anton Dollmaier
antondollma...@aditsystems.de wrote:
 OK thanks just one last query, would the quota rule be something like
 this?
 quota_rule2 = Public*:storage=100M


 ===
 namespace public {
        prefix = shared.
        separator = .
 (...)
 }
 dict {
  quotadict = mysql:/etc/dovecot/dovecot-dict-quota.conf
  expire = mysql:/etc/dovecot/dovecot-dict-expire.conf
 }
  quota = dict:INBOX::proxy::quotadict
  quota2 = dict:shared:%d:ns=shared.:proxy::quotadict
  quota_rule = *:storage=50M:messages=1000
  quota_rule2 = Trash:storage=50M:messages=100
  quota2_rule = *:storage=100M:messages=1000
 ===

 this currently works - you must use the prefix of the namespace as parameter
 in the quota-definition.



[Dovecot] Public Folders

2009-10-22 Thread Peter Fraser
Hi All
I'm trying to implement public folders. My dovecot -n readout is at
the bottom. I created a maildir called resumes in /home/public

Its contents are:
mail# ls -la /home/public/resumes
total 6
drwx--  3 vmail  vmail  512 Oct 22 08:58 .
drwx--  4 vmail  vmail  512 Oct 22 08:47 ..
drwx--  5 vmail  vmail  512 Oct 22 08:58 Maildir
-rw---  1 vmail  vmail0 Oct 21 18:30 dovecot-acl-list

Then I created a directory called resumes in
/usr/local/etc/dovecot-acls and in it, I created the file dovecot-acl

I put the following entries in dovecot-acl
owner lrwstiekxa
user=user1 rwl

When I connect as user1 in thunderbird, right click on the inbox and
go subscribe, I see a greyed out public which I cannot subscribe to. I
do not see resumes. Any ideas on why this is?

mail# dovecot -n
# 1.2.4: /usr/local/etc/dovecot.conf
# OS: FreeBSD 7.2-RELEASE-p1 i386
protocols: imap imaps pop3 pop3s
ssl_cert_file: /usr/local/etc/dovecot/ssl/certs/dovecot.pem
ssl_key_file: /usr/local/etc/dovecot/ssl/private/dovecot.pem
ssl_cipher_list: ALL:!ADH!LOW:!SSLv2:!EXP:+HIGH:+MEDIUM
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/local/libexec/dovecot/imap-login
login_executable(imap): /usr/local/libexec/dovecot/imap-login
login_executable(pop3): /usr/local/libexec/dovecot/pop3-login
login_greeting: Mail Server ready.
verbose_proctitle: yes
first_valid_uid: 1000
first_valid_gid: 1000
mail_privileged_group: vmail
mail_location: maildir:~/Maildir:INBOX=~/Maildir/:INDEX=~/Maildir/tmp/index
mail_executable(default): /usr/local/libexec/dovecot/imap
mail_executable(imap): /usr/local/libexec/dovecot/imap
mail_executable(pop3): /usr/local/libexec/dovecot/pop3
mail_plugins(default): quota imap_quota acl imap_acl
mail_plugins(imap): quota imap_quota acl imap_acl
mail_plugins(pop3): quota
mail_plugin_dir(default): /usr/local/lib/dovecot/imap
mail_plugin_dir(imap): /usr/local/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3
imap_client_workarounds(default): delay-newmail netscape-eoh
tb-extra-mailbox-sep
imap_client_workarounds(imap): delay-newmail netscape-eoh tb-extra-mailbox-sep
imap_client_workarounds(pop3):
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
dict_db_config: /usr/local/etc/dovecot-db.conf
namespace:
  type: public
  separator: /
  prefix: public/
  location: maildir:/home/public
  list: yes
  subscriptions: yes
namespace:
  type: private
  separator: /
  location: maildir:/home/vmail/%u/Maildir
  inbox: yes
  list: yes
  subscriptions: yes
lda:
  mail_plugins: quota acl
  postmaster_address: postmas...@example.com
  sendmail_path: /usr/sbin/sendmail
auth default:
  mechanisms: plain login
  username_format: %Lu
  debug: yes
  passdb:
driver: pam
args: session=yes dovecot
  passdb:
driver: ldap
args: /usr/local/etc/dovecot-ldap.conf
  userdb:
driver: static
args: uid=1002 gid=1002 home=/home/vmail/%u allow_all_users=yes
  socket:
type: listen
client:
  path: /var/run/dovecot/auth-client
  mode: 432
master:
  path: /var/run/dovecot/auth-master
  mode: 384
plugin:
  quota: maildir
  quota2: maildir:user quota
  quota_rule: *:storage=512M
  quota_rule2: Trash:storage=10M
  quota_rule3: SPAM:ignore
  quota_warning: storage=95%% /usr/local/etc/dovecot/quota-warning.sh 95
  quota_warning2: storage=80%% /usr/local/etc/dovecot/quota-warning.sh 80
  acl: vfile:/usr/local/etc/dovecot-acls:cache_secs=300


[Dovecot] Public Folder Quotas

2009-10-22 Thread Peter Fraser
Hi All

I'm really busy adding features to dovecot running on my dev box to
later move into prod. I saw where public mailbox quotas was added to
1.2 Does anyone have this working? I haven't been able to find docs on
that as of yet.


Re: [Dovecot] Per User Quotas

2009-10-16 Thread Peter Fraser
Well I did all that and when I look at the properties for the inbox in
thunderbird under quotas, It still shows 512MB for that user.

These are the logs below:
dovecot: Oct 16 09:54:44 Info: dovecot v1.1.16 starting up
dovecot: Oct 16 09:54:46 Info: auth(default): new auth connection: pid=32854
dovecot: Oct 16 09:54:46 Info: auth(default): new auth connection: pid=32855
dovecot: Oct 16 09:54:46 Info: auth(default): new auth connection: pid=32856
dovecot: Oct 16 09:54:46 Info: auth(default): new auth connection: pid=32857
dovecot: Oct 16 09:54:46 Info: auth(default): new auth connection: pid=32858
dovecot: Oct 16 09:54:46 Info: auth(default): new auth connection: pid=32859
dovecot: Oct 16 10:09:27 Error: auth(default): LDAP: Connection lost
to LDAP server, reconnecting
dovecot: Oct 16 10:09:57 Error: auth(default): LDAP: Connection lost
to LDAP server, reconnecting
dovecot: Oct 16 10:24:27 Error: auth(default): LDAP: Connection lost
to LDAP server, reconnecting
dovecot: Oct 16 10:24:57 Error: auth(default): LDAP: Connection lost
to LDAP server, reconnecting
dovecot: Oct 16 10:36:33 Info: auth(default): new auth connection: pid=32984
dovecot: Oct 16 10:36:35 Info: auth(default): client in:
AUTH1   PLAIN   service=imapsecured lip=192.168.1.80
rip=192.168.1.112   lport=993   rport=1857
dovecot: Oct 16 10:36:35 Info: auth(default): client out: CONT  1   
dovecot: Oct 16 10:36:35 Info: auth(default): client in: CONThidden
dovecot: Oct 16 10:36:35 Info: auth-worker(default):
pam(peter.fraser,192.168.1.112): lookup service=dovecot
dovecot: Oct 16 10:36:35 Info: auth-worker(default):
pam(peter.fraser,192.168.1.112): #1/1 style=1 msg=Password:
dovecot: Oct 16 10:36:35 Info: auth-worker(default):
pam(peter.fraser,192.168.1.112): pam_authenticate() failed:
authentication error (password mismatch?)
dovecot: Oct 16 10:36:35 Info: auth(default): client out: OK1   
user=peter.fraser
dovecot: Oct 16 10:36:35 Info: auth(default): master in: REQUEST1   
32859   1
dovecot: Oct 16 10:36:35 Info: auth(default):
ldap(peter.fraser,192.168.1.112): user search: base=dc=atlas,dc=local
scope=subtree 
filter=((objectClass=person)(userprincipalname=peter.fra...@atlas.local))
fields=description
dovecot: Oct 16 10:39:35 Info: imap-login: Disconnected: Inactivity
(auth failed, 1 attempts): user=peter.fraser, method=PLAIN,
rip=192.168.1.112, lip=192.168.1.80, TLS
dovecot: Oct 16 10:46:31 Info: auth(default): new auth connection: pid=33006
dovecot: Oct 16 10:49:30 Info: imap-login: Disconnected: Inactivity
(no auth attempts): rip=192.168.1.112, lip=192.168.1.80, TLS
handshaking
dovecot: Oct 16 10:51:28 Error: auth(default): LDAP: Connection lost
to LDAP server, reconnecting
dovecot: Oct 16 10:51:28 Error: auth(default): LDAP: Connection lost
to LDAP server, reconnecting
dovecot: Oct 16 10:51:30 Info: auth(default):
ldap(peter.fraser,192.168.1.112): Aborting (timeout), we're not
connected to LDAP server
dovecot: Oct 16 10:51:30 Info: auth(default): master out:
USER1   peter.fraseruid=1002gid=1002
home=/home/vmail/peter.fraser
dovecot: Oct 16 10:51:30 Info: IMAP(peter.fraser): Loading modules
from directory: /usr/local/lib/dovecot/imap
dovecot: Oct 16 10:51:30 Info: IMAP(peter.fraser): Module loaded:
/usr/local/lib/dovecot/imap/lib10_quota_plugin.so
dovecot: Oct 16 10:51:30 Info: IMAP(peter.fraser): Module loaded:
/usr/local/lib/dovecot/imap/lib11_imap_quota_plugin.so
dovecot: Oct 16 10:51:30 Info: IMAP(peter.fraser): Effective uid=1002,
gid=1002, home=/home/vmail/peter.fraser
dovecot: Oct 16 10:51:30 Info: IMAP(peter.fraser): Quota root: name=
backend=maildir args=
dovecot: Oct 16 10:51:30 Info: IMAP(peter.fraser): Quota rule: root=
mailbox=* bytes=536870912 messages=0
dovecot: Oct 16 10:51:30 Info: IMAP(peter.fraser): Quota rule: root=
mailbox=Trash bytes=10485760 messages=0
dovecot: Oct 16 10:51:30 Info: IMAP(peter.fraser): Quota rule: root=
mailbox=SPAM ignored
dovecot: Oct 16 10:51:30 Info: IMAP(peter.fraser): Quota root:
name=user quota backend=maildir args=
dovecot: Oct 16 10:51:30 Info: IMAP(peter.fraser): maildir: data=~/Maildir
dovecot: Oct 16 10:51:30 Info: IMAP(peter.fraser): maildir++:
root=/home/vmail/peter.fraser/Maildir, index=, control=,
inbox=/home/vmail/peter.fraser/Maildir
dovecot: Oct 16 10:51:30 Info: IMAP(peter.fraser): Connection closed bytes=0/0


On Fri, Oct 16, 2009 at 1:31 AM, thedoghousemailcom
thedoghousemail...@googlemail.com wrote:
 Hi Peter,

 please insert 1024M in the description field in active directory.

 Greetings


 And of course, I put in a users description field in Active Directory
 *:bytes=%1024

 When I log in as that user, and check the quota, I'm still seeing 512 MB

 Very strange.







Re: [Dovecot] Per User Quotas

2009-10-16 Thread Peter Fraser
Yes, the servers are up servicing clients and my production mail
server with dovecot even uses it to authenticate users for email. They
are all up and running.

On Fri, Oct 16, 2009 at 3:02 PM, Timo Sirainen t...@iki.fi wrote:
 On Fri, 2009-10-16 at 14:55 -0500, Peter Fraser wrote:

 dovecot: Oct 16 10:09:27 Error: auth(default): LDAP: Connection lost
 to LDAP server, reconnecting
 ..
 dovecot: Oct 16 10:51:30 Info: auth(default):p
 ldap(peter.fraser,192.168.1.112): Aborting (timeout), we're not
 connected to LDAP server

 That seems to be your problem. Is LDAP working at all?




Re: [Dovecot] Per User Quotas

2009-10-15 Thread Peter Fraser
Ok I see, so can I get per-user quotas going and still use userdb
static? or do I have to change to userdb ldap?


On Thu, Oct 15, 2009 at 11:30 AM, Timo Sirainen t...@iki.fi wrote:
 On Wed, 2009-10-14 at 21:18 -0500, Peter Fraser wrote:
   userdb:
     driver: static
     args: uid=1002 gid=1002 home=/home/vmail/%u allow_all_users=yes

 This catches all userdb lookups.

   userdb:
     driver: passwd
     args: blocking=yes

 This is never used. You probably want to comment it out.

 user_attrs = 
 homeDirectory=/home/vmail/%u,uidNumber=1002,gidNumber=1002,streetAddress=quota_rule=*:storage=%$M

 These aren't used, because you're using userdb static instead of userdb
 ldap.



Re: [Dovecot] Per User Quotas

2009-10-15 Thread Peter Fraser
OK this is what I now have.
In dovecot.conf I put:
userdb ldap {
   args = /usr/local/etc/dovecot-ldap.conf
}

In dovecot-ldap.conf:
hosts = 192.168.1.97
base = dc=atlas,dc=local
auth_bind = yes
scope = subtree
auth_bind_userdn = atlas\%u
user_filter = ((objectClass=mailUser)(mail=%u))
default_pass_scheme = CRYPT
pass_filter = ((objectclass=person)(uid=%u))
pass_attrs = userPassword=password
user_attrs = streetAddress=quota_rule=*:storage=%$M
,=uid=uid,=gid=gid,=home=/home/vmail/%u

And the quota in street address of AD

When I fire up thunderbird now, I see sending login information for a
long time before it comes up and even when it does, I still see the
general quota.



On Thu, Oct 15, 2009 at 12:40 PM, Timo Sirainen t...@iki.fi wrote:
 On Thu, 2009-10-15 at 19:36 +0200, thedoghousemailcom wrote:
 Hi Peter + Timo,

 I think the solution is the right order in dovecot.conf:

 userdb ldap should stand in front of userdb static.

 Well, if that's done then userdb static is used only when user isn't
 found from ldap. And I guess that should normally never happen..



Re: [Dovecot] Per User Quotas

2009-10-15 Thread Peter Fraser
Here they are

mail# dovecot -n
# 1.1.16: /usr/local/etc/dovecot.conf
# OS: FreeBSD 7.2-RELEASE-p1 i386
protocols: imaps pop3s imap
ssl_cert_file: /usr/local/etc/dovecot/ssl/certs/dovecot.pem
ssl_key_file: /usr/local/etc/dovecot/ssl/private/dovecot.pem
ssl_cipher_list: ALL:!ADH!LOW:!SSLv2:!EXP:+HIGH:+MEDIUM
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/local/libexec/dovecot/imap-login
login_executable(imap): /usr/local/libexec/dovecot/imap-login
login_executable(pop3): /usr/local/libexec/dovecot/pop3-login
login_greeting: POP3 Server ready.
verbose_proctitle: yes
first_valid_gid: 0
mail_access_groups: mail
mail_location: maildir:~/Maildir
mail_debug: yes
mail_executable(default): /usr/local/libexec/dovecot/imap
mail_executable(imap): /usr/local/libexec/dovecot/imap
mail_executable(pop3): /usr/local/libexec/dovecot/pop3
mail_plugins(default): quota imap_quota
mail_plugins(imap): quota imap_quota
mail_plugins(pop3): quota
mail_plugin_dir(default): /usr/local/lib/dovecot/imap
mail_plugin_dir(imap): /usr/local/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3
imap_client_workarounds(default): delay-newmail outlook-idle
netscape-eoh tb-extra-mailbox-sep
imap_client_workarounds(imap): delay-newmail outlook-idle netscape-eoh
tb-extra-mailbox-sep
imap_client_workarounds(pop3):
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
auth default:
  username_format: %Lu
  debug: yes
  passdb:
driver: pam
  passdb:
driver: ldap
args: /usr/local/etc/dovecot-ldap.conf
  userdb:
driver: ldap
args: /usr/local/etc/dovecot-ldap.conf
  userdb:
driver: passwd
plugin:
  quota: maildir
  quota2: maildir:user quota
  quota_rule: *:storage=512M
  quota_rule2: Trash:storage=10M
  quota_rule3: SPAM:ignore

Maillog Below
Oct 15 14:44:22 mail dovecot: dovecot v1.1.16 starting up
Oct 15 14:44:23 mail dovecot: auth(default): new auth connection: pid=27040
Oct 15 14:44:23 mail dovecot: auth(default): new auth connection: pid=27038
Oct 15 14:44:23 mail dovecot: auth(default): new auth connection: pid=27039
Oct 15 14:44:23 mail dovecot: auth(default): new auth connection: pid=27041
Oct 15 14:44:23 mail dovecot: auth(default): new auth connection: pid=27042
Oct 15 14:44:23 mail dovecot: auth(default): new auth connection: pid=27043
Oct 15 14:45:43 mail dovecot: auth(default): new auth connection: pid=27048
Oct 15 14:45:45 mail dovecot: auth(default): client in: AUTH1
 PLAIN   service=imapsecured lip=192.168.1.80
rip=192.168.1.
Oct 15 14:45:45 mail dovecot: auth(default): client out: CONT   1
Oct 15 14:45:45 mail dovecot: auth(default): client in: CONThidden
Oct 15 14:45:45 mail dovecot: auth-worker(default):
pam(peter.fraser,192.168.1.112): lookup service=dovecot
Oct 15 14:45:45 mail dovecot: auth-worker(default):
pam(peter.fraser,192.168.1.112): #1/1 style=1 msg=Password:
Oct 15 14:45:45 mail dovecot: auth-worker(default):
pam(peter.fraser,192.168.1.112): pam_authenticate() failed:
authentication error (password
Oct 15 14:45:45 mail dovecot: auth(default): client out: OK 1
 user=peter.fraser
Oct 15 14:45:45 mail dovecot: auth(default): master in: REQUEST 1
 27043   1
Oct 15 14:45:45 mail dovecot: auth(default):
ldap(peter.fraser,192.168.1.112): user search: base=dc=atlas,dc=local
scope=subtree filter=((obj
Oct 15 14:47:28 mail postfix/scache[26993]: statistics: start interval
Oct 15 14:44:08



On Thu, Oct 15, 2009 at 2:25 PM, Timo Sirainen t...@iki.fi wrote:
 On Thu, 2009-10-15 at 14:11 -0500, Peter Fraser wrote:
 user_attrs = streetAddress=quota_rule=*:storage=%$M
 ,=uid=uid,=gid=gid,=home=/home/vmail/%u

 The =uid=uid part looks wrong. Should be more like =uid=1000, =gid=1000.

 Anyway.. Post again dovecot -n output and also logs with auth_debug=yes
 and mail_debug=yes.




Re: [Dovecot] Per User Quotas

2009-10-15 Thread Peter Fraser
Ok thanks  I tried your config. Just edited to my my setup.
This is what I now have

dovecot.conf
---
passdb ldap {
  args = /usr/local/etc/dovecot-ldap.conf
}

userdb ldap {
   args = /usr/local/etc/dovecot-ldap-userdb.conf
}

userdb static {
  args = uid=1002 gid=1002 home=/home/vmail/%u allow_all_users=yes
}
---

dovecot-ldap.conf
---
hosts = 192.168.0.97 192.168.0.76
base = dc=atlas,dc=local
auth_bind = yes
auth_bind_userdn = atlas\%u
#auth_bind_userdn = atlas\%u
user_filter = ((objectClass=person)(cn=%u))
user_attrs = homeDirectory=home=/home/vmail/%u,description=quota_rule=*:bytes=%$
--

dovecot-ldap-userdb.conf
---
hosts = 192.168.0.97 192.168.0.76
base = dc=atlas,dc=local
ldap_version = 3
auth_bind = no
dn = atlas\user
dnpass = password
user_filter = ((objectClass=person)(userprincipalname...@atlas.local))
user_attrs = description=quota_rule=*:bytes=%$

And of course, I put in a users description field in Active Directory
*:bytes=%1024

When I log in as that user, and check the quota, I'm still seeing 512 MB

Very strange.


Re: [Dovecot] ldap quota dovecot

2009-10-14 Thread Peter Fraser
HI All
I'm having this exact problem but I call deliver this way in Postfix
virtual_transport = dovecot
mailbox_transport = dovecot
Should I remove these and use the mailbox_command directive instead as
you suggested?
or is there a mailbox_transport alternative?


On Mon, Sep 28, 2009 at 4:26 PM, Timo Sirainen t...@iki.fi wrote:
 On Mon, 2009-09-28 at 23:20 +0200, Mathieu BALCERAK wrote:
 Timo Sirainen a écrit :
  On Sun, 2009-09-27 at 16:26 +0200, Mathieu BALCERAK wrote:
 
  I have the same issue, when i upgrade to 1.2.5
  the quota per user work only if i remove the directive
  quota_rule=*:storage=2G
  I set this rules as default for all my users except for 3 users.
  The imap_quota report perfectly the quota but dovecot lda take the
  quota_rule, per user quota
  not apply.
 
 
  How are you calling deliver?
 
 
 I call the deliver in postfix :
 mailbox_command = /usr/lib/dovecot/deliver

 That's the problem.

 I've tested with
 mailbox_command = /usr/lib/dovecot/deliver -d  $USER

 This will solve your problem.

 but i have this error :

 deliver($USER): Error: userdb lookup:
 connect(/var/run/dovecot/auth-master) failed: Permission denied

 Change the permissions so that it does have access. You can specify the
 auth-master permissions in dovecot.conf. I guess you'll have to use
 mode=0666.



[Dovecot] Per User Quotas

2009-10-14 Thread Peter Fraser
Hi All
I have not been able to get per user quotas going. A general quota
works fine. My LDAP server is windows 2000.

Here is my config

mail# dovecot -n
# 1.1.3: /usr/local/etc/dovecot.conf
log_path: /var/log/dovecot.log
protocols: imaps pop3s lda managesieve
listen(default): *
listen(imap): *
listen(pop3): *
listen(managesieve): *:2000
ssl_cert_file: /usr/local/etc/dovecot/ssl/certs/dovecot.pem
ssl_key_file: /usr/local/etc/dovecot/ssl/private/dovecot.pem
ssl_cipher_list: ALL:!ADH!LOW:!SSLv2:!EXP:+HIGH:+MEDIUM
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/local/libexec/dovecot/imap-login
login_executable(imap): /usr/local/libexec/dovecot/imap-login
login_executable(pop3): /usr/local/libexec/dovecot/pop3-login
login_executable(managesieve): /usr/local/libexec/dovecot/managesieve-login
login_greeting: Mail Server ready.
login_greeting_capability(default): yes
login_greeting_capability(imap): yes
login_greeting_capability(pop3): no
login_greeting_capability(managesieve): no
verbose_proctitle: yes
first_valid_uid: 1000
first_valid_gid: 1000
mail_privileged_group: mail
mail_location: maildir:~/Maildir:INBOX=~/Maildir/:INDEX=~/Maildir/tmp/index
mail_debug: yes
maildir_copy_preserve_filename: yes
mail_executable(default): /usr/local/libexec/dovecot/imap
mail_executable(imap): /usr/local/libexec/dovecot/imap
mail_executable(pop3): /usr/local/libexec/dovecot/pop3
mail_executable(managesieve): /usr/local/libexec/dovecot/managesieve
mail_plugins(default): quota imap_quota
mail_plugins(imap): quota imap_quota
mail_plugins(pop3): quota
mail_plugins(managesieve):
mail_plugin_dir(default): /usr/local/lib/dovecot/imap
mail_plugin_dir(imap): /usr/local/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3
mail_plugin_dir(managesieve): /usr/local/lib/dovecot/managesieve
imap_client_workarounds(default): delay-newmail netscape-eoh
tb-extra-mailbox-sep
imap_client_workarounds(imap): delay-newmail netscape-eoh tb-extra-mailbox-sep
imap_client_workarounds(pop3):
imap_client_workarounds(managesieve):
pop3_enable_last(default): no
pop3_enable_last(imap): no
pop3_enable_last(pop3): yes
pop3_enable_last(managesieve): no
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
pop3_client_workarounds(managesieve):
managesieve_implementation_string(default): dovecot
managesieve_implementation_string(imap): dovecot
managesieve_implementation_string(pop3): dovecot
managesieve_implementation_string(managesieve): Cyrus timsieved v2.2.13
sieve_storage(default):
sieve_storage(imap):
sieve_storage(pop3):
sieve_storage(managesieve): ~/sieve
sieve(default):
sieve(imap):
sieve(pop3):
sieve(managesieve): ~/.dovecot.sieve
auth default:
  mechanisms: plain login
  username_format: %Ln
  verbose: yes
  debug: yes
  passdb:
driver: ldap
args: /usr/local/etc/dovecot-ldap.conf
  userdb:
driver: static
args: uid=1002 gid=1002 home=/home/vmail/%u allow_all_users=yes
  userdb:
driver: passwd
args: blocking=yes
  socket:
type: listen
client:
  path: /var/run/dovecot/auth-client
  mode: 432
master:
  path: /var/run/dovecot/auth-master
  mode: 384
  user: vmail
  group: vmail
plugin:
  quota_warning: storage=95%% /usr/local/etc/dovecot/quota-warning.sh 95
  quota_warning2: storage=80%% /usr/local/etc/dovecot/quota-warning.sh 80
  quota: maildir
  quota2: maildir:user quota
  quota_rule: *:storage=512M
  quota_rule2: Trash:storage=10M
  quota_rule3: SPAM:ignore
  sieve: /home/vmail/%u/.dovecot.sieve

I have this in dovecot-ldap.conf
hosts = 192.168.1.97 192.168.1.76
base = dc=atlas,dc=local
auth_bind = yes
auth_bind_userdn = atlas\%u
pass_filter = ((objectclass=person)(uid=%u))
user_attrs = 
homeDirectory=/home/vmail/%u,uidNumber=1002,gidNumber=1002,streetAddress=quota_rule=*:storage=%$M

I then put this in the streetAddress area of the user info in AD
*:storage=256M

But no go. When I log in either in thunderbird or squirrelmail, I see
the general quota for that user which is 512M and not 256M

I'm at a loss, any help would be appreciated.

By the way, after reading another thread, I added this to postfix but
still no go.
mailbox_command = /usr/local/libexec/dovecot/deliver -d  $USER


[Dovecot] Per User Quotas

2008-11-06 Thread Peter Fraser
HI All
Asking for a little patience and a bit of help here. I'm using
dovecot-1.1.3_1 with postfix and squirrelmail. I have implemented a global
quota successfully. That works fine. I want to now implement per user
quotas. So far I have read the howto in the documentation and searched
several threads but can't seem to get it working properly. My LDAP server is
Windows 2003 Active Directory.

Is there any documentation specific to AD that I could look at or any other
doc that could help me?

My last effort was to put this in dovecot-ldap.conf
user_attrs = streetAddress=quota_rule4=*:storage=%$M
,=uid=1002,=gid=1002,=home=/home/vmail/%u

and this in dovecot.conf in addition to the other quota rules.
quota_rule4 = *:bytes=%$

I then put the quota in the streetAddress area of AD.

I'd certainly appreciate any help.

Thanks.


Re: [Dovecot] Per User Quotas

2008-11-06 Thread Peter Fraser
OK thanks for replying, I am attaching both files with the information.

On Thu, Nov 6, 2008 at 9:09 AM, Timo Sirainen [EMAIL PROTECTED] wrote:

 On Thu, 2008-11-06 at 09:02 -0500, Peter Fraser wrote:
  HI All
  Asking for a little patience and a bit of help here. I'm using
  dovecot-1.1.3_1 with postfix and squirrelmail. I have implemented a
 global
  quota successfully. That works fine. I want to now implement per user
  quotas. So far I have read the howto in the documentation and searched
  several threads but can't seem to get it working properly. My LDAP server
 is
  Windows 2003 Active Directory.
 
  Is there any documentation specific to AD that I could look at or any
 other
  doc that could help me?
 
  My last effort was to put this in dovecot-ldap.conf
  user_attrs = streetAddress=quota_rule4=*:storage=%$M
  ,=uid=1002,=gid=1002,=home=/home/vmail/%u

 You can also define the uid and gid with mail_uid and mail_gid settings
 in dovecot.conf.

  and this in dovecot.conf in addition to the other quota rules.
  quota_rule4 = *:bytes=%$
 
  I then put the quota in the streetAddress area of AD.

 Sounds like it would work. Why doesn't it? Set auth_debug=yes and show
 logs. Also show dovecot -n output.


mail# dovecot -n
# 1.1.3: /usr/local/etc/dovecot.conf
protocols: imaps pop3s lda managesieve
listen(default): *
listen(imap): *
listen(pop3): *
listen(managesieve): *:2000
ssl_cert_file: /usr/local/etc/dovecot/ssl/certs/dovecot.pem
ssl_key_file: /usr/local/etc/dovecot/ssl/private/dovecot.pem
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/local/libexec/dovecot/imap-login
login_executable(imap): /usr/local/libexec/dovecot/imap-login
login_executable(pop3): /usr/local/libexec/dovecot/pop3-login
login_executable(managesieve): /usr/local/libexec/dovecot/managesieve-login
login_greeting: Mail Server ready.
login_greeting_capability(default): yes
login_greeting_capability(imap): yes
login_greeting_capability(pop3): no
login_greeting_capability(managesieve): no
verbose_proctitle: yes
first_valid_uid: 1000
first_valid_gid: 1000
mail_privileged_group: mail
mail_location: maildir:~/Maildir
mail_debug: yes
maildir_copy_preserve_filename: yes
mail_executable(default): /usr/local/libexec/dovecot/imap
mail_executable(imap): /usr/local/libexec/dovecot/imap
mail_executable(pop3): /usr/local/libexec/dovecot/pop3
mail_executable(managesieve): /usr/local/libexec/dovecot/managesieve
mail_plugins(default): quota imap_quota
mail_plugins(imap): quota imap_quota
mail_plugins(pop3): quota
mail_plugins(managesieve): 
mail_plugin_dir(default): /usr/local/lib/dovecot/imap
mail_plugin_dir(imap): /usr/local/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3
mail_executable(managesieve): /usr/local/libexec/dovecot/managesieve
mail_plugins(default): quota imap_quota
mail_plugins(imap): quota imap_quota
mail_plugins(pop3): quota
mail_plugins(managesieve): 
mail_plugin_dir(default): /usr/local/lib/dovecot/imap
mail_plugin_dir(imap): /usr/local/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3
mail_plugin_dir(managesieve): /usr/local/lib/dovecot/managesieve
imap_client_workarounds(default): delay-newmail netscape-eoh 
tb-extra-mailbox-sep
imap_client_workarounds(imap): delay-newmail netscape-eoh tb-extra-mailbox-sep
imap_client_workarounds(pop3): 
imap_client_workarounds(managesieve): 
pop3_enable_last(default): no
pop3_enable_last(imap): no
pop3_enable_last(pop3): yes
pop3_enable_last(managesieve): no
pop3_client_workarounds(default): 
pop3_client_workarounds(imap): 
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
pop3_client_workarounds(managesieve): 
managesieve_implementation_string(default): dovecot
managesieve_implementation_string(imap): dovecot
managesieve_implementation_string(pop3): dovecot
managesieve_implementation_string(managesieve): Cyrus timsieved v2.2.13
sieve_storage(default): 
sieve_storage(imap): 
sieve_storage(pop3): 
sieve_storage(managesieve): ~/sieve
sieve(default): 
sieve(imap): 
sieve(pop3): 
sieve(managesieve): ~/.dovecot.sieve
auth default:
  mechanisms: plain login
  username_format: %Ln
  verbose: yes
  debug: yes
maildir_copy_preserve_filename: yes
mail_executable(default): /usr/local/libexec/dovecot/imap
mail_executable(imap): /usr/local/libexec/dovecot/imap
mail_executable(pop3): /usr/local/libexec/dovecot/pop3
mail_executable(managesieve): /usr/local/libexec/dovecot/managesieve
mail_plugins(default): quota imap_quota
mail_plugins(imap): quota imap_quota
mail_plugins(pop3): quota
mail_plugins(managesieve): 
mail_plugin_dir(default): /usr/local/lib/dovecot/imap
mail_plugin_dir(imap): /usr/local/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3
mail_plugin_dir(managesieve): /usr/local/lib/dovecot/managesieve
imap_client_workarounds(default): delay-newmail netscape-eoh 
tb-extra-mailbox-sep
imap_client_workarounds(imap): delay-newmail netscape-eoh tb-extra-mailbox-sep
imap_client_workarounds(pop3

[Dovecot] Quota Issues

2008-10-06 Thread Peter Fraser
Hi All

Is there a way to test to see if the dovecot quota settings are being
applied?
I'm doing this as part of troubleshooting.
I have set up dovecot + quotas  with squirrelmail and I am not seeing the
quota graphs in squirrelmail but I am not getting any errors.
Could someone please help me with this?

THanks.


[Dovecot] Maildir

2007-12-31 Thread Peter Fraser
I have been trying to set up dovecot with postfix to use at work.
I'm trying to configure dovecot to authenticate against active directory and
postfix the same.
I installed dovecot 1.0.10 on FreeBSD 7.0 beta 2

When I telnet in the get authentication ok but an error suggesting that
there is no Mailbox belonging to that user. I am using Maildirs. How can I
now create a Maildir with the proper permissions for that virtual user?

Thanks for any assistance.