Re: [Dovecot] How to make Dovecot verbous

2012-05-16 Thread Ken Stevenson
With regard to your original problem, it sounds like you don't have 
mysql support compiled into Dovecot (--with-mysql option). Not sure what 
the logging problem is. I've debugged authentication using just 
auth_debug_passwords=yes, but I didn't enable separate log files so the 
messages were in maillog.


On 2012-05-16 09:20, Frank Walter wrote:

Hello

I am struggling with Dovecot 2 (coming from Dovecot 1.0.10) with
mysql Authentification for Postfix.
I get errors when using it:

dovecot: auth: Fatal: Unknown database driver 'mysql'
dovecot: master: Error: service(auth): command startup failed, 
throttling


But a first thing would be to log the real errors, if there are any,
so I set in

/etc/dovecot/conf.d/10-logging.conf

auth_verbose, auth_verbose_passwords, auth_debug,
auth_debug_passwords, mail_debug, verbose_ssl

all to yes and I set:

debug_log_path = /var/log/dovecot-debug.log

but there is no logfile after restarting dovecot.

How can I enable a (verbous) own Logfile in Dovecot?

frank




Re: [Dovecot] Postfix Query

2012-05-10 Thread Ken Stevenson

What does your user_query look like in dovecot-sql.conf.ext?

On 2012-05-10 17:13, Tim wrote:

Hello,

Another question!!

Was just trying to sort out mail delivery to subdomains. I set up my
system so that I have a mail address of t...@subdomain.example.com. 
I've
sorted out Postfix to correctly identify this and pass on to Dovecot 
for
delivery but Dovecot doesn't seem to deliver where I want it to. 
Ideally

I would like to have a structure so that mail is delivered to

/var/mail/example.com/subdomain/user

My users are stored in MySQL and they are being pulled out correctly,
but dovecot is delivering to

/var/mail/subdomain.example.com/tim

Looking at my logs it seems that the mail location is being picked up
not being acted on...

May 10 21:51:20 auth(default): Info: master out: USER   1

t...@subdomain.example.com  maildir=example.com/subdomain/tim   
uid=mailuser
gid=mailgroup   quota_rule=*:bytes=2147483647

...a bit further down...

May 10 21:51:20 deliver(t...@subdomain.example.com): Info: auth input:
maildir=example.com/subdomain/tim

...then further down it seems to change all of a sudden...

May 10 21:51:20 deliver(t...@subdomain.example.com): Info: maildir:
data=/var/mail/subdomain.example.com/tim/Maildir
May 10 21:51:20 deliver(t...@subdomain.example.com): Info: maildir++:
root=/var/mail/subdomain.example.com/tim/Maildir, index=, control=,
inbox=/var/mail/subdomain.example.com/tim/Maildir

Bit confused! Any help would be appreciated!

Cheers,

Tim




Re: [Dovecot] Thunderbird STARTTLS error

2012-05-09 Thread Ken Stevenson


I got only this keys. Can you explain me what exactly you mean with
adding chains?
And I wonder why this error only occurs in Thunderbird, not in 
openssl.




Never mind, I don't think my first guess was correct. I wonder if it 
has to do with the error 27 reported in the verify by openssl. According 
to the manual, an error 27 means:


the root CA is not marked as trusted for the specified purpose.

It looks like the certificate is valid cryptographically, but that it 
wasn't certified for how you're using it.


If I run:

openssl x509 -in ssl.crt -noout -text

The output includes the following:

X509v3 Extended Key Usage:
TLS Web Server Authentication, TLS Web Client 
Authentication

X509v3 Key Usage: critical
Digital Signature, Key Encipherment

Does yours look different?


Re: [Dovecot] Thunderbird STARTTLS error

2012-05-09 Thread Ken Stevenson

On 2012-05-08 14:17, Markus Fritz wrote:

Hello,

the error is still present:
May  8 19:47:18 opsys dovecot: imap-login: Disconnected (no auth
attempts): rip=82.113.119.140, lip=78.46.216.126

Whenever I start a session with openssl to STARTTTL (Server:
mail.opsys.de) the handshake is successfull. Also I am able to login
to my account via 1 login.
In Thunderbird port 993 for SSL/TLS works correct, only STARTTLS on
port 143 isn't working properly.
The cert is Class 1 and signed by StartCom Ltd..
Dovecot.conf (for viewable reasons of this mail pasted):
http://pastie.org/private/bmrymyuo16ohzxdahf0nq
And here openssl output: 
http://pastie.org/private/3rpgll2s7hblev9ozpcq8w

Note the 'Verify return code: 21 (unable to verify the first
certificate)' in the output...

Thanks for helping, I am working on this problem since 3 days.

Kind regards

Markus Fritz


How about this:

Note: If you receive an error that looks like:

 454 TLS not available due to temporary reason', Port: 25, Secure(SSL): 
Yes, Server Error: 455, Error Number: 0x800CCC7F


or anything similar, it is because your Norton AntiVirus Email Scanning 
or other Anti-Virus software is scanning your outgoing email. Shut off 
the 'Scan outgoing Email' option and it should work.


It came from here:

https://cs.stanford.edu/computing-guide/email/client-settings


Re: [Dovecot] Thunderbird STARTTLS error

2012-05-08 Thread Ken Stevenson
I'm just learning about this, but I was able to get it working 
recently. Also I haven't read your earlier posts.


Did you receive intermediate certificates from StartCom? When I got my 
certificate, I had to concatenate together the contents of the 
domain_name.crt file and the gd_bundle.crt file. That concatenated file 
is the one I specify for ssl_cert_file. It has 4 certificates in it. I 
ask because when I run the openssl command, my certificate chain has 4 
sections where yours only has one.


Does your ssl.cert have the intermediate certificates in it?

On 2012-05-08 14:17, Markus Fritz wrote:

Hello,

the error is still present:
May  8 19:47:18 opsys dovecot: imap-login: Disconnected (no auth
attempts): rip=82.113.119.140, lip=78.46.216.126

Whenever I start a session with openssl to STARTTTL (Server:
mail.opsys.de) the handshake is successfull. Also I am able to login
to my account via 1 login.
In Thunderbird port 993 for SSL/TLS works correct, only STARTTLS on
port 143 isn't working properly.
The cert is Class 1 and signed by StartCom Ltd..
Dovecot.conf (for viewable reasons of this mail pasted):
http://pastie.org/private/bmrymyuo16ohzxdahf0nq
And here openssl output: 
http://pastie.org/private/3rpgll2s7hblev9ozpcq8w

Note the 'Verify return code: 21 (unable to verify the first
certificate)' in the output...

Thanks for helping, I am working on this problem since 3 days.

Kind regards

Markus Fritz




Re: [Dovecot] dsync with virtual users

2012-05-07 Thread Ken Stevenson

On 2012-05-07 07:45, Charles Marcus wrote:

Is there a question in  there somewhere?


Sorry about that. I'm trying to understand the syntax of the dsync 
command. I have two servers with almost identical mail setups using 
dovecot 2.13.


Here's the source side:

$ doveadm user k...@allenmyland.com
userdb: k...@allenmyland.com
  home  : /var/vmail/k...@allenmyland.com
  uid   : 5000
  gid   : 5000

Here's the destination side:

root@abbott4 ~ # doveadm user k...@allenmyland.com
userdb: k...@allenmyland.com
  home  : /zdata/vmail/k...@allenmyland.com
  uid   : 5000
  gid   : 5000

What is the correct syntax of the dsync command to backup email from 
the first server to the second?


If I su to vmail then use

$ dsync -u k...@allenmyland.com backup k...@abbott4.allenmyland.com

I get :

dsync-local(k...@allenmyland.com): Error: remote: doveadm(ken): Fatal: 
User doesn't exist
dsync-local(k...@allenmyland.com): Error: read() from worker server 
failed: EOF


I presume that's because it's doing a user lookup on the remote side 
for ken instead of using my email address. How do I specify the username 
for the remote side?


Any help would be appreciated.



[Dovecot] dsync with virtual users

2012-05-06 Thread Ken Stevenson

I'm using dovecot v2.0.16