Re: Messages on this list are often marked as spam.

2017-02-06 Thread Bjørn T Johansen
On Mon, 06 Feb 2017 17:39:07 -0500
Steven Mainor  wrote:

> Hello,
> 
> It seems that I get several emails a week from this list in my spam
> folder. Usually because the DKIM signature fails. Has anyone else
> noticed this problem or is it just me?
> 
> --
> Steven mainor
> st...@degga.net

Yes, same here... Having the same problem on other maillists as well, not sure 
why.

BTJ


Re: [Dovecot] Connection to PGSQL fails?

2013-03-16 Thread Bjørn T Johansen
On Sat, 16 Mar 2013 23:22:22 +0100
Bjørn T Johansen  wrote:

> On Sat, 16 Mar 2013 23:00:07 +0100
> Reindl Harald  wrote:
> 
> > 
> > 
> > Am 16.03.2013 22:50, schrieb Bjørn T Johansen:
> > > On Sat, 16 Mar 2013 22:38:20 +0100
> > > Reindl Harald  wrote:
> > > 
> > >> Am 16.03.2013 22:36, schrieb Bjørn T Johansen:
> > >>> I have configured a new server and copied the dovecot-sql.conf file 
> > >>> that works a different server to the new server... But when Dovecot 
> > >>> tries to connect to the database, the
> > >>> following error appears..:
> > >>>
> > >>> Mar 16 22:28:25 smtp dovecot: auth: Debug: Loading modules from 
> > >>> directory: /usr/lib64/dovecot/auth
> > >>> Mar 16 22:28:25 smtp dovecot: auth: Debug: Module loaded: 
> > >>> /usr/lib64/dovecot/auth/libauthdb_ldap.so
> > >>> Mar 16 22:28:25 smtp dovecot: auth: Debug: Module loaded: 
> > >>> /usr/lib64/dovecot/auth/libdriver_pgsql.so
> > >>> Mar 16 22:28:25 smtp dovecot: auth: Debug: Module loaded: 
> > >>> /usr/lib64/dovecot/auth/libdriver_sqlite.so
> > >>> Mar 16 22:28:25 smtp dovecot: auth: Debug: Module loaded: 
> > >>> /usr/lib64/dovecot/auth/libmech_gssapi.so
> > >>> Mar 16 22:28:25 smtp dovecot: auth: Error: pgsql: Connect failed to 
> > >>> serviceadmin: could not connect to server: Permission denied
> > >>> Mar 16 22:28:25 smtp dovecot: auth: Error: #011Is the server running on 
> > >>> host "10.50.150.35" and accepting
> > >>> Mar 16 22:28:25 smtp dovecot: auth: Error: #011TCP/IP connections on 
> > >>> port 5432?
> > >>> Mar 16 22:28:25 smtp dovecot: auth: Debug: auth client connected 
> > >>> (pid=1768)
> > >>>
> > >>> But if I use psql and connects to the same db server with the same 
> > >>> username and password, I can successfully connect...
> > >>> What am I missing?
> > >>
> > >> most likely the difference between TCP and socket-connection
> > > 
> > > Using tcp for both dovecot and my test with psql...
> > 
> > i do not believe it..
> > 
> > but however, if you do not post config informations and at teast the
> > exact command of "psql" i doubt someone can help you
> > 
> > most people do not realize that "localhost" is implicitly a unix-connection
> > and not the same as "127.0.0.1" as example
> > 
> 
> Hmmm... Well, I am not most people... :P ;)
> 
> psql -h 10.50.150.35 -U serviceadmin -d serviceadmin
> Password for user serviceadmin: 
> psql (9.1.8, server 9.1.6)
> Type "help" for help.
> 
> 
> And my connection string for dovecot, looks like this:
> 
> connect = host=10.50.150.35 dbname=serviceadmin user=serviceadmin 
> password=xx
> 
> 
> And can not see any difference?
> 
> 
> BTJ

OK, found the guilty one... Just discovered than someone had enabled SELinux 
and it of course stopped the "suspicous" traffic from dovecot :-S

BTJ 


Re: [Dovecot] Connection to PGSQL fails?

2013-03-16 Thread Bjørn T Johansen
On Sat, 16 Mar 2013 23:00:07 +0100
Reindl Harald  wrote:

> 
> 
> Am 16.03.2013 22:50, schrieb Bjørn T Johansen:
> > On Sat, 16 Mar 2013 22:38:20 +0100
> > Reindl Harald  wrote:
> > 
> >> Am 16.03.2013 22:36, schrieb Bjørn T Johansen:
> >>> I have configured a new server and copied the dovecot-sql.conf file that 
> >>> works a different server to the new server... But when Dovecot tries to 
> >>> connect to the database, the
> >>> following error appears..:
> >>>
> >>> Mar 16 22:28:25 smtp dovecot: auth: Debug: Loading modules from 
> >>> directory: /usr/lib64/dovecot/auth
> >>> Mar 16 22:28:25 smtp dovecot: auth: Debug: Module loaded: 
> >>> /usr/lib64/dovecot/auth/libauthdb_ldap.so
> >>> Mar 16 22:28:25 smtp dovecot: auth: Debug: Module loaded: 
> >>> /usr/lib64/dovecot/auth/libdriver_pgsql.so
> >>> Mar 16 22:28:25 smtp dovecot: auth: Debug: Module loaded: 
> >>> /usr/lib64/dovecot/auth/libdriver_sqlite.so
> >>> Mar 16 22:28:25 smtp dovecot: auth: Debug: Module loaded: 
> >>> /usr/lib64/dovecot/auth/libmech_gssapi.so
> >>> Mar 16 22:28:25 smtp dovecot: auth: Error: pgsql: Connect failed to 
> >>> serviceadmin: could not connect to server: Permission denied
> >>> Mar 16 22:28:25 smtp dovecot: auth: Error: #011Is the server running on 
> >>> host "10.50.150.35" and accepting
> >>> Mar 16 22:28:25 smtp dovecot: auth: Error: #011TCP/IP connections on port 
> >>> 5432?
> >>> Mar 16 22:28:25 smtp dovecot: auth: Debug: auth client connected 
> >>> (pid=1768)
> >>>
> >>> But if I use psql and connects to the same db server with the same 
> >>> username and password, I can successfully connect...
> >>> What am I missing?
> >>
> >> most likely the difference between TCP and socket-connection
> > 
> > Using tcp for both dovecot and my test with psql...
> 
> i do not believe it..
> 
> but however, if you do not post config informations and at teast the
> exact command of "psql" i doubt someone can help you
> 
> most people do not realize that "localhost" is implicitly a unix-connection
> and not the same as "127.0.0.1" as example
> 

Hmmm... Well, I am not most people... :P ;)

psql -h 10.50.150.35 -U serviceadmin -d serviceadmin
Password for user serviceadmin: 
psql (9.1.8, server 9.1.6)
Type "help" for help.


And my connection string for dovecot, looks like this:

connect = host=10.50.150.35 dbname=serviceadmin user=serviceadmin 
password=xx


And can not see any difference?


BTJ


Re: [Dovecot] Connection to PGSQL fails?

2013-03-16 Thread Bjørn T Johansen
On Sat, 16 Mar 2013 22:39:49 +0100
Patrick Westenberg  wrote:

> Bjørn T Johansen schrieb:
> > I have configured a new server and copied the dovecot-sql.conf file that 
> > works a different server to the new server... But when Dovecot tries to 
> > connect to the database, the
> > following error appears..:
> > Mar 16 22:28:25 smtp dovecot: auth: Error: pgsql: Connect failed to 
> > serviceadmin: could not connect to server: Permission denied
> > Mar 16 22:28:25 smtp dovecot: auth: Error: #011Is the server running on 
> > host "10.50.150.35" and accepting
> > Mar 16 22:28:25 smtp dovecot: auth: Error: #011TCP/IP connections on port 
> > 5432?
> > Mar 16 22:28:25 smtp dovecot: auth: Debug: auth client connected (pid=1768)
> >
> > But if I use psql and connects to the same db server with the same username 
> > and password, I can successfully connect...
> 
> Is your dovecot server allowed to connect to your db server (pg_hba.conf)?
> 
> Patrick

Yes, as I said, it is working when using psql from my dovecot server...

BTJ


Re: [Dovecot] Connection to PGSQL fails?

2013-03-16 Thread Bjørn T Johansen
On Sat, 16 Mar 2013 22:38:20 +0100
Reindl Harald  wrote:

> 
> 
> Am 16.03.2013 22:36, schrieb Bjørn T Johansen:
> > I have configured a new server and copied the dovecot-sql.conf file that 
> > works a different server to the new server... But when Dovecot tries to 
> > connect to the database, the
> > following error appears..:
> > 
> > Mar 16 22:28:25 smtp dovecot: auth: Debug: Loading modules from directory: 
> > /usr/lib64/dovecot/auth
> > Mar 16 22:28:25 smtp dovecot: auth: Debug: Module loaded: 
> > /usr/lib64/dovecot/auth/libauthdb_ldap.so
> > Mar 16 22:28:25 smtp dovecot: auth: Debug: Module loaded: 
> > /usr/lib64/dovecot/auth/libdriver_pgsql.so
> > Mar 16 22:28:25 smtp dovecot: auth: Debug: Module loaded: 
> > /usr/lib64/dovecot/auth/libdriver_sqlite.so
> > Mar 16 22:28:25 smtp dovecot: auth: Debug: Module loaded: 
> > /usr/lib64/dovecot/auth/libmech_gssapi.so
> > Mar 16 22:28:25 smtp dovecot: auth: Error: pgsql: Connect failed to 
> > serviceadmin: could not connect to server: Permission denied
> > Mar 16 22:28:25 smtp dovecot: auth: Error: #011Is the server running on 
> > host "10.50.150.35" and accepting
> > Mar 16 22:28:25 smtp dovecot: auth: Error: #011TCP/IP connections on port 
> > 5432?
> > Mar 16 22:28:25 smtp dovecot: auth: Debug: auth client connected (pid=1768)
> > 
> > But if I use psql and connects to the same db server with the same username 
> > and password, I can successfully connect...
> > What am I missing?
> 
> most likely the difference between TCP and socket-connection
> 

Using tcp for both dovecot and my test with psql...

BTJ


[Dovecot] Connection to PGSQL fails?

2013-03-16 Thread Bjørn T Johansen
I have configured a new server and copied the dovecot-sql.conf file that works 
a different server to the new server... But when Dovecot tries to connect to 
the database, the
following error appears..:

Mar 16 22:28:25 smtp dovecot: auth: Debug: Loading modules from directory: 
/usr/lib64/dovecot/auth
Mar 16 22:28:25 smtp dovecot: auth: Debug: Module loaded: 
/usr/lib64/dovecot/auth/libauthdb_ldap.so
Mar 16 22:28:25 smtp dovecot: auth: Debug: Module loaded: 
/usr/lib64/dovecot/auth/libdriver_pgsql.so
Mar 16 22:28:25 smtp dovecot: auth: Debug: Module loaded: 
/usr/lib64/dovecot/auth/libdriver_sqlite.so
Mar 16 22:28:25 smtp dovecot: auth: Debug: Module loaded: 
/usr/lib64/dovecot/auth/libmech_gssapi.so
Mar 16 22:28:25 smtp dovecot: auth: Error: pgsql: Connect failed to 
serviceadmin: could not connect to server: Permission denied
Mar 16 22:28:25 smtp dovecot: auth: Error: #011Is the server running on host 
"10.50.150.35" and accepting
Mar 16 22:28:25 smtp dovecot: auth: Error: #011TCP/IP connections on port 5432?
Mar 16 22:28:25 smtp dovecot: auth: Debug: auth client connected (pid=1768)

But if I use psql and connects to the same db server with the same username and 
password, I can successfully connect...

What am I missing?


Regards,

BTJ 

-- 
-------
Bjørn T Johansen

b...@havleik.no
---
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic 
messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"
---


Re: [Dovecot] Copying just the folders to new Dovecot server?

2012-12-14 Thread Bjørn T Johansen
On Fri, 14 Dec 2012 09:51:34 +0100 (CET)
Steffen Kaiser  wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> On Fri, 14 Dec 2012, Bjørn T Johansen wrote:
> 
> > I am setting up a new Dovecot server and I want to start from scratch, i.e. 
> > with an empty mailbox. But I want to have the same folders in my new 
> > mailbox that I have in my old. Is
> > there a way to create these folders without manually creating one by one?
> 
> Depending on your storage backend you can pre-create the folders. E.g. if 
> you use Maildir, you create
> 
> mkdir .Folder.Subfolder.Subfolder/new
> mkdir .Folder.Subfolder.Subfolder/cur
> mkdir .Folder.Subfolder.Subfolder/tmp
> 
> touch .Folder.Subfolder.Subfolder/maildirfolder
> 
> For current versions of Dovecot, you can use the doveadm tool:
> 
> doveadm mailbox create [-A|-u user] [-S socket_path] [-s] mailbox ...
> 
> Regards,
> 
> - -- 
> Steffen Kaiser


Thx but I then still need to do it manually.. But I think I will do it manually 
anyway, so I can do some cleanup at the same time... :)

BTJ

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



[Dovecot] Copying just the folders to new Dovecot server?

2012-12-14 Thread Bjørn T Johansen
I am setting up a new Dovecot server and I want to start from scratch, i.e. 
with an empty mailbox. But I want to have the same folders in my new mailbox 
that I have in my old. Is
there a way to create these folders without manually creating one by one?


Regards,

BTJ

-- 
---
Bjørn T Johansen

b...@havleik.no
---
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic 
messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"
---

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



[Dovecot] Copying mailbox from one mailserver to another?

2012-12-09 Thread Bjørn T Johansen
I see there is a tool called dsync that can do this but what are the cons of 
using dsync compared to just package the mailbox using tar and then
untar the mailbox on the new server?


Regards,

BTJ

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



Re: [Dovecot] Shutting down my Dovecot server?

2012-11-28 Thread Bjørn T Johansen
On Wed, 28 Nov 2012 19:34:57 -0500
Steve Litt  wrote:

> On Wed, 28 Nov 2012 21:52:37 +0100, Bjørn T Johansen said:
> > On 28.11.2012 18:10, Steve Litt wrote:
> > > On Wed, 28 Nov 2012 13:12:15 +0100, Bjørn T Johansen said:
> > >> I am planning to shut down my own Dovecot server and start using
> > >> the other Dovecot server I am administering together with a
> > >> friend..
> > >>
> > >> And I was thinking that I don't want to copy the emails I have on
> > >> my server so I want to start from scratch on the other server..
> > >> But I would like to be able to look at the old emails if I need
> > >> to, so was wondering if there is a way to do this without using an
> > >> imap server? Can I convert my mails stored in the maildir format
> > >> to mbox or is there a better way to solve my problem?
> > >
> > > I'm not sure why you want to convert to mbox, especially when there 
> > > are
> > > multiple mbox versions.
> > >
> > > I'm also not sure why you don't want to copy emails. How else would
> > > they appear on the new server. I suppose you could use rsync to copy
> > > the data itself.
> > >
> > > You use Claws-Mail. If I were in your shoes, I'd bring up the empty
> > > Dovecot server and make a new Claws-Mail account for that empty 
> > > server.
> > > Then in Claws-Mail I'd use the copy feature to copy whole folder 
> > > trees
> > > to the new server. Once that's done, I'd reconfigure your original
> > > Dovecot so it can serve only on its local machine, and bang, you
> > > have your new server, with old emails you can look at.
> > >
> > > This is similar to the procedure I used to move my Kmail folders 
> > > (over
> > > 100K messages) to Dovecot.
> > >
> > > http://www.troubleshooters.com/lpm/201202/201202.htm
> > >
> > > HTH,
> > >
> > > SteveT
> > 
> > Well, I could do that... But you see, there is not much of the emails
> > I have at the moment that I really need, I might need one now and
> > then... So that is why I don't want to copy almost 10GB of email to
> > the new server...
> > 
> > But I guess that might be the most practical solution perhaps... 
> > Doesn't seem to be a better solution
> > 
> > 
> > BTJ
> 
> 
> 
> Hi Bjørn,
> 
> Here's the thought process that led me to the suggestion. All email
> clients suck. Right now Claws-Mail sucks the least, but that could
> change in a heartbeat. In my experience, a Dovecot server is a much
> more reliable place to *keep* email than is any client, because you can
> access it from *any* IMAP aware email client. A localhost-only Dovecot
> isn't any harder to set up than an email client, but in my experience
> it's a much better steward of your email.
> 
> Imagine if, two years ago, you had kept such emails in Kmail, and then
> upgraded your Linux and been forced into Kmail2. It would have been a
> disaster.
> 
> The other thing is, I'm not really sure what your goal is. It sounds
> like you want your emails on yours and your friends IMAP server, and
> then a copy locally. Or perhaps you wanted your old email only locally.
> Either of those speaks to a local Dovecot server.
> 
> Thanks
> 
> SteveT
> 
> Steve Litt*  http://www.troubleshooters.com/
>   *  http://twitter.com/stevelitt
> Troubleshooting Training  *  Human Performance
> 
> 

I only want my old mails locally but I think I have to consider a local Dovecot 
installation; the more I think about it the more that seems to be the best 
solution... :)

BTJ

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



Re: [Dovecot] Shutting down my Dovecot server?

2012-11-28 Thread Bjørn T Johansen
On Wed, 28 Nov 2012 21:57:19 +0100
Reindl Harald  wrote:

> 
> 
> Am 28.11.2012 21:52, schrieb Bjørn T Johansen:
> > Well, I could do that... But you see, there is not much of the emails I 
> > have at the moment that I really need, I
> > might need one now and then...
> > So that is why I don't want to copy almost 10GB of email to the new 
> > server...
> 
> again:
> if you do NOT want them on the new server drag them to
> your local MUA - what the hell do you imagine as
> third option
> 
> * not on the server
> * not on the local MUA
> 
> so where do you believe they are?
> 
> well, you could delete them but you said you want
> them archied
> 

Yes, the other solution I was looking for has to be a away to open the mail in 
my local MUA, just wondering if there were more than one way to do
that...

But thx for your suggestions...


BTJ

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



Re: [Dovecot] Shutting down my Dovecot server?

2012-11-28 Thread Bjørn T Johansen

On 28.11.2012 18:10, Steve Litt wrote:

On Wed, 28 Nov 2012 13:12:15 +0100, Bjørn T Johansen said:

I am planning to shut down my own Dovecot server and start using the
other Dovecot server I am administering together with a friend..

And I was thinking that I don't want to copy the emails I have on my
server so I want to start from scratch on the other server.. But I
would like to be able to look at the old emails if I need to, so was
wondering if there is a way to do this without using an imap server?
Can I convert my mails stored in the maildir format to mbox or is
there a better way to solve my problem?


I'm not sure why you want to convert to mbox, especially when there 
are

multiple mbox versions.

I'm also not sure why you don't want to copy emails. How else would
they appear on the new server. I suppose you could use rsync to copy
the data itself.

You use Claws-Mail. If I were in your shoes, I'd bring up the empty
Dovecot server and make a new Claws-Mail account for that empty 
server.
Then in Claws-Mail I'd use the copy feature to copy whole folder 
trees

to the new server. Once that's done, I'd reconfigure your original
Dovecot so it can serve only on its local machine, and bang, you have
your new server, with old emails you can look at.

This is similar to the procedure I used to move my Kmail folders 
(over

100K messages) to Dovecot.

http://www.troubleshooters.com/lpm/201202/201202.htm

HTH,

SteveT


Well, I could do that... But you see, there is not much of the emails I 
have at the moment that I really need, I might need one now and then...
So that is why I don't want to copy almost 10GB of email to the new 
server...


But I guess that might be the most practical solution perhaps... 
Doesn't seem to be a better solution



BTJ

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



Re: [Dovecot] Shutting down my Dovecot server?

2012-11-28 Thread Bjørn T Johansen
On Wed, 28 Nov 2012 13:22:22 +0100
Reindl Harald  wrote:

> 
> 
> Am 28.11.2012 13:12, schrieb Bjørn T Johansen:
> > I am planning to shut down my own Dovecot server and start using the other 
> > Dovecot server I am administering together with a friend..
> > 
> > And I was thinking that I don't want to copy the emails I have on my server 
> > so I want to start from scratch on the other server.. 
> > But I would like to be able to look at the old emails if I need to, so was 
> > wondering if there is a way to do this without using an imap server?
> > Can I convert my mails stored in the maildir format to mbox or is there a 
> > better way to solve my problem?
> 
> why not simply drag&drop them to thunderbird or whatever MUA
> you are using?
> 

Well, I am using Claws Mail but you are thinking about make my emails available 
in offline modus? Guess that might be one way to go but I was just trying to 
figure out my options
as I have never done this  before... :)

BTJ

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



[Dovecot] Shutting down my Dovecot server?

2012-11-28 Thread Bjørn T Johansen
I am planning to shut down my own Dovecot server and start using the other 
Dovecot server I am administering together with a friend..

And I was thinking that I don't want to copy the emails I have on my server so 
I want to start from scratch on the other server.. 
But I would like to be able to look at the old emails if I need to, so was 
wondering if there is a way to do this without using an imap server?
Can I convert my mails stored in the maildir format to mbox or is there a 
better way to solve my problem?


Regards,

BTJ

-- 
---
Bjørn T Johansen

b...@havleik.no
---
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic 
messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"
---

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



Re: [Dovecot] Convert from ISO-8859-1 to UTF-8?

2012-05-20 Thread Bjørn T Johansen
On Sun, 20 May 2012 15:41:51 +0300
Timo Sirainen  wrote:

> On 20.5.2012, at 12.33, Bjørn T Johansen wrote:
> 
> > The server I am running Dovecot on is still using locale = ISO-8859-1 but I 
> > am thinking it is time to convert to UTF-8... 
> > Can I just use convmv to convert all the files in the mailboxes to UTF-8 or 
> > is there anything else I need to do?
> > Do I need to run iconv to convert the content also or does dovecot/MUA fix 
> > this by it self? (i.e. they display the mail as encoded in ISO-8859-1)
> 
> Dovecot doesn't use locale. You shouldn't do anything to any Dovecot files.
> 
> 

Aaah... Thx... :)

BTJ

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



[Dovecot] Convert from ISO-8859-1 to UTF-8?

2012-05-20 Thread Bjørn T Johansen
The server I am running Dovecot on is still using locale = ISO-8859-1 but I am 
thinking it is time to convert to UTF-8... 
Can I just use convmv to convert all the files in the mailboxes to UTF-8 or is 
there anything else I need to do?
Do I need to run iconv to convert the content also or does dovecot/MUA fix this 
by it self? (i.e. they display the mail as encoded in ISO-8859-1)



Regards,

BTJ

-- 
---
Bjørn T Johansen

b...@havleik.no
---
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic 
messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"
---

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



Re: [Dovecot] duplicate transaction log sequence?

2010-10-14 Thread Bjørn T Johansen
On Thu, 14 Oct 2010 17:37:45 +0100
Timo Sirainen  wrote:

> On Fri, 2010-10-08 at 23:51 +0200, Bjørn T Johansen wrote:
> > We had to move our dovecot from one server to another and used rsync to 
> > move the mail but it took us some time.. 
> 
> I guess you mean you ran it while users could still be making changes?
> 
> > 2010/10/08 23:28:23 imap(emailadr): Error: Index 
> > /opt/vmail/ba-avis.no/bpe/mail/.Nettforum/dovecot.index: Lost log for 
> > seq=22 offset=25248
> > 2010/10/08 23:28:23 imap(emailadr): Warning: fscking index file 
> > /opt/vmail/ba-avis.no/bpe/mail/.Nettforum/dovecot.index
> 
> Those should go away automatically. Don't worry about them.
> 
> > Also getting a lot of these..:
> > 
> > 2010/10/07 09:12:49 imap(emailadr): Warning: Fixed a duplicate: 
> > /opt/vmail/ba-avis.no/ihv/mail/cur/1283793654.M548656P18945.pat,W=3656:2,RS 
> > -> 1286435569.M468796P1301.hostname
> > 2010/10/07 09:12:49 imap(emailadr): Warning: Fixed a duplicate: 
> > /opt/vmail/ba-avis.no/ihv/mail/cur/1285324810.M197070P12420.pat,W=2857:2,Sb 
> > -> 1286435569.M468797P1301.hostname
> 
> Message's flags were changed between two rsyncs, so the same message got
> transferred twice but with different filenames. Dovecot now created a
> duplicate message (since it thought that it's safer to create a
> duplicate than to delete a non-duplicate).
> 
> > Those are just warning but should I do something with these as well?
> 
> They go away automatically too. Users might be annoyed at the duplicate
> messages.
> 
> > And more like these..:
> 
> All of the index errors will go away too.
> 
> > 2010/10/07 23:00:25 imap(emailadr): Panic: file index-status.c: line 155 
> > (index_storage_get_status): assertion failed: (status_r->recent <= 
> > status_r->messages)
> 
> I should some day try to fix this I guess..
> 
> > BTW, when moving from old server to new we upgraded Dovecot from 1.2.x to 
> > 2.0.5...
> 
> The next time you could do it with dsync to avoid these kind of
> problems.
> 

Yes, it was run while users were making changes... But I discoverd the main 
reasons for this... Someone had started the rsync process again after we
had started using the new server, which kind of "made a mess" of the mails on 
our new server :(

But dsync will be tried next time, thx... :)


Regards,

BTJ


[Dovecot] duplicate transaction log sequence?

2010-10-08 Thread Bjørn T Johansen
/mail/.Drafts/dovecot.index.log: duplicate transaction 
log sequence (18)
2010/10/07 23:00:25 imap(emailadr): Error: Transaction log 
/opt/vmail/ba-avis.no/abs/mail/.Drafts/dovecot.index.log: duplicate transaction 
log sequence (18)


This looks kind of severe?


BTW, when moving from old server to new we upgraded Dovecot from 1.2.x to 
2.0.5...


Regards,

BTJ

-- 
-------
Bjørn T Johansen

b...@havleik.no
---
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic 
messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"
---


[Dovecot] Restoring backup?

2009-08-18 Thread Bjørn T Johansen
I have understood correctly when thinking that all I need to do in order to 
restore mails, is to just copy the old maildir folder to the location
where mail_location is pointing to and dovecot will find all the mails and 
display the old mails?



Regards,

BTJ

-- 
---
Bjørn T Johansen

b...@havleik.no
---
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic 
messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"
---


Re: [Dovecot] Maximum number of connections from user+IP exceeded?

2009-07-27 Thread Bjørn T Johansen
On Mon, 27 Jul 2009 06:32:43 -0400
Charles Marcus  wrote:

> On 7/27/2009 6:22 AM, Bjørn T Johansen wrote:
> > Where can I change this setting... Can't find this setting in 
> > dovecot.conf
> 
> mail_max_userip_connections = 10
> Maximum number of IMAP connections allowed for a user from each IP
> address. NOTE: The username is compared case-sensitively.
> 

Thx... :)

BTJ


[Dovecot] Maximum number of connections from user+IP exceeded?

2009-07-27 Thread Bjørn T Johansen
Where can I change this setting... Can't find this setting in dovecot.conf


Regards,

BTJ

-- 
---
Bjørn T Johansen

b...@havleik.no
---
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic 
messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"
---


Re: [Dovecot] Fail2Ban and the Dovecot log

2009-05-12 Thread Bjørn T Johansen
On Mon, 11 May 2009 15:56:45 -0400
Lou Duchez  wrote:

> Hi,
> 
> Is there any way to disable the "dovecot: " at the beginning of each 
> line of the log?  Fail2Ban responds poorly to it.  I know there are a 
> number of sites with "failregex" strings for Fail2Ban and Dovecot, but 
> I've tried them all, and they don't work, at least with the latest 
> Fail2ban and the latest Dovecot.  The Fail2Ban wiki is pretty clear 
> about why there will be a problem:
> 
> "In order for a log line to match your failregex, it actually has to 
> match in two parts: the beginning of the line has to match a timestamp 
> pattern or regex, and the remainder of the line has to match your 
> failregex.".
> 
> So in other words, Fail2Ban expects that each line of the log will start 
> with a timestamp.
> 
> Thanks all!  Dovecot rocks.
> 

Well, this is not completely true... I have a working fail2ban config using the 
dovecot log file, not syslog, and it's working fine...
I had to change the date format for the log file, but after doing that, the 
fail2ban works as it should...

BTJ


Re: [Dovecot] OT: Looking for a robust IMAP client

2008-12-18 Thread Bjørn T Johansen
On Thu, 18 Dec 2008 22:11:25 +
Mário Barbosa  wrote:

> On Mon, 15 Dec 2008 12:45:13 -0500
> Stewart Dean  wrote:
> 
> > Is there a simple robust IMAP client to replace Pine (which I *think*
> > is no longer supported)?  GUI or TTY session?
> > 
> > I'm wondering if there is something we can tell users to use when
> > Things Are Dire.  GUI would be better since it removes one of the few
> > remaining reasons for a logon server
> 
> GUIwise, I have been using Sylpheed for years, both personally and
> professionally, and I believe it to be the best GUI-type IMAP client
> around. It too does the header caching and other stuff mentioned but,
> compared with Thunderbird, it has:
> 
> . always performed "better" (i.e., faster)
> . never crashed (AFAICR)
> 
> Bling-wise, it's a bit poor, but it gets the job done.
> 
> Mário Barbosa


I would recommend Claws Mail instead, it is "the succesor" of Sylpheed and is 
much better... :)


BTJ

-- 
---
Bjørn T Johansen

b...@havleik.no
---
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic 
messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"
---


[Dovecot] Moving from pysieved to native ManageSieve?

2008-07-20 Thread Bjørn T Johansen
If moving from pysieved to Dovecot native ManageSieve implementation, should 
this just work or do I need to do anything
with existing sieve filter rule files, etc?

Any reasons not to do the switch?


Regards,

BTJ
-- 
---
Bjørn T Johansen

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


Re: [Dovecot] "Errors" in logfile after upgrading to 1.1.1?

2008-07-20 Thread Bjørn T Johansen
On Sun, 20 Jul 2008 23:24:26 +0300
Timo Sirainen <[EMAIL PROTECTED]> wrote:

> On Sun, 2008-07-20 at 22:07 +0200, Bjørn T Johansen wrote:
> > > On Sat, 2008-07-19 at 23:31 +0200, Bjørn T Johansen wrote:
> > > > Not sure but I mean I didn't have these in the log file before the 
> > > > upgrade:
> > > > 
> > > > auth(default): passwd([EMAIL PROTECTED]): unknown user
> > > > auth(default): prefetch([EMAIL PROTECTED]): passdb didn't return userdb 
> > > > entries, trying the next userdb
> 
> These should have happened with v1.0 too. Perhaps you enabled
> auth_verbose=yes only after moving to v1.1?

Nope, did not enable it now; must have done a while ago. Just didn't notice 
these before...

> 
> > > Post your dovecot -n output.
> >   passdb:
> > driver: sql
> > args: /etc/dovecot/dovecot-sql.conf
> 
> So your users are primarily in SQL.
> 
> >   userdb:
> > driver: passwd
> 
> Since your users are in SQL, I don't think you'll want to try to look
> them up from /etc/passwd? So just remove the userdb passwd {} from
> dovecot.conf.

Nope, I agree; no need to look them up from /etc/passwd :-|

Thx... :)


BTJ


Re: [Dovecot] "Errors" in logfile after upgrading to 1.1.1?

2008-07-20 Thread Bjørn T Johansen
On Sun, 20 Jul 2008 19:02:22 +0300
Timo Sirainen <[EMAIL PROTECTED]> wrote:

> On Sat, 2008-07-19 at 23:31 +0200, Bjørn T Johansen wrote:
> > Not sure but I mean I didn't have these in the log file before the 
> > upgrade:
> > 
> > auth(default): passwd([EMAIL PROTECTED]): unknown user
> > auth(default): prefetch([EMAIL PROTECTED]): passdb didn't return userdb 
> > entries, trying the next userdb
> 
> Post your dovecot -n output.
> 

Here it is...:

# 1.1.1: /etc/dovecot/dovecot.conf
log_path: /lv1/logs/dovecot.log
protocols: imap imaps pop3 pop3s
listen: [*]
disable_plaintext_auth: no
login_dir: /usr/var/run/dovecot/login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
mail_location: maildir:/opt/vmail/%d/%n
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_plugin_dir(default): /usr/lib/dovecot/imap
mail_plugin_dir(imap): /usr/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/pop3
imap_client_workarounds(default): outlook-idle
imap_client_workarounds(imap): outlook-idle
imap_client_workarounds(pop3): 
pop3_client_workarounds(default): 
pop3_client_workarounds(imap): 
pop3_client_workarounds(pop3): outlook-no-nuls
auth default:
  mechanisms: plain login
  user: vmail
  verbose: yes
  passdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
  userdb:
driver: passwd
  userdb:
driver: prefetch
  userdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
  socket:
type: listen
client:
  path: /var/spool/postfix/private/auth
  mode: 432
  user: postfix
  group: postfix
master:
  path: /var/run/dovecot/auth-master
  mode: 384
  user: vmail


BTJ


[Dovecot] "Errors" in logfile after upgrading to 1.1.1?

2008-07-19 Thread Bjørn T Johansen
Not sure but I mean I didn't have these in the log file before the upgrade:

auth(default): passwd([EMAIL PROTECTED]): unknown user
auth(default): prefetch([EMAIL PROTECTED]): passdb didn't return userdb 
entries, trying the next userdb


Is there some config that is wrong or?


btw, authentiation is working


Regards,

BTJ

-- 
-------
Bjørn T Johansen

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


Re: [Dovecot] Is it ok to upgrade to 1.1?

2008-07-19 Thread Bjørn T Johansen
On Sat, 19 Jul 2008 10:43:33 -0400
Charles Marcus <[EMAIL PROTECTED]> wrote:

> On 7/19/2008, Bjørn T Johansen ([EMAIL PROTECTED]) wrote:
> > Or is it some issues left that need to be sorted out?
> 
> Much less issues than 1.0.x series - but of course it is always up to 
> the admin of the server to decide...
> 
> Meaning... this is not a question for this list. 1.1.x is released as 
> stable (currently at 1.1.1). If you have specicif 'special case' that 
> gives you reason to think you might have a problem, ask away - but the 
> best way to answer this question is to test...
> 

ok, took a "chance" and upgraded to 1.1.1 and it seems to work nicely... :)

BTJ


[Dovecot] Is it ok to upgrade to 1.1?

2008-07-19 Thread Bjørn T Johansen
Or is it some issues left that need to be sorted out?


Regards,

BTJ

-- 
---
Bjørn T Johansen

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


Re: [Dovecot] VMware and Time moved backwards

2008-05-21 Thread Bjørn T Johansen
Why not? I have been running ntp inside vmware for many years now, without any 
problems

BTJ

On Wed, 21 May 2008 12:30:01 -0700
Peter Hessler <[EMAIL PROTECTED]> wrote:

> never ever ever run ntp on virtual hardware.
> 
> instead, run ntp on the host hardware, and tell the client to always 
> obey the bios clock.  I add "* * * * * /sbin/hwclock --localtime --hctosys"
> to my crontab for that.
> 
> 
> 
> On 2008 May 21 (Wed) at 20:27:09 +0200 (+0200), Robert Henjes wrote:
> :
> :Hi,
> :
> :I followed the discussions regarding the "time moved backward" problem
> :and the use of ntp in such cases. At our department we are running two
> :dovecot servers within an vmware server environment, and unfortunately
> :the timedrift (with ntpd active) exceeds sometimes up to 30 minutes
> :virtual drift within 10 minutes realtime (mostly into future). This is
> :due to some overcorrections within the TSC algorithms of the vmware
> :virtual machine.
> :
> :More information and some hints to workaround are documented here:
> :http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1420
> :
> :Nevertheless we are currently working on evaluating a stable solution by
> :doing some system measurements, which would be the best option to cope
> :with this problem, since the XEN environment seems to have a similar
> :issue.
> :
> :Running "ntpdate -u" as a cronjob is not an option due to two facts:
> :a) Time is moving quickly and may cause "major problems" ;)
> :b) It is not recommended by the vmware team itself as well
> :
> :We are currently considering two options:
> :a) Using the "clock=pit" kernel option, which may cause the system to be
> :to slow
> :b) using vmware tools and use only the ntp synchronisation of the host
> :(we have currently only little experience with this). Also vmware tools
> :are somewhat critical in case of updates. So our intention was to
> :use as less vmware specific things as possible within the virtual
> :machine, so only our host itself depends on vmware specific software.
> :
> :The question is, which option would you prefer? Is there another
> :solution beside the mentioned ones? 
> :
> :According to Timo's postings, workarounds within the dovecot itself to
> :cope with "time moved backward" problems are not planned yet to be
> :impelented.
> :
> :So best regards,
> :Robert
> :
> :
> 


Re: [Dovecot] SSL certificate?

2008-01-31 Thread Bjørn T Johansen
On Thu, 31 Jan 2008 15:25:47 +0200
Timo Sirainen <[EMAIL PROTECTED]> wrote:

> On Thu, 2008-01-31 at 13:48 +0100, Bjørn T Johansen wrote:
> > I have now tried every combination I can think of but my mail client still 
> > tells me..:
> > 
> > "Certificate for hostname is unknown. "
> > 
> > and
> > 
> > "Signature status: unable to get local issuer certificate."
> > 
> > 
> > I am trying to install a GoDaddy certificate and I have my public cert and 
> > then GoDaddys intermediate certificate in my crt
> > file, which I think is how it is supposed to be but I still get this...
> > 
> > What am I doing wrong?
> 
> As far as I know the only thing that matters is the certificate order in
> the file. Maybe checking with "openssl s_client -connect host:993" shows
> something useful?

I think I have found the problem... It is libetpan and GnuTLS that apparently 
can't build the cert chain properly... I just tried
using Thunderbird and the certificate was accepted without any problems... :(

> 
> But this reminds me anyway: Are the certificates GoDaddy offers still
> using intermediate certs? I was thinking about buying one of those
> $22/year ones for dovecot.org. Although I don't think I really need one
> right now. :)

Yes, still intermedia certs...

BTJ


Re: [Dovecot] SSL certificate?

2008-01-31 Thread Bjørn T Johansen
On Thu, 31 Jan 2008 01:33:32 +0300
Nikolay Shopik <[EMAIL PROTECTED]> wrote:

> On 31.01.2008 1:27, Bjørn T Johansen wrote:
> > When I install an SSL certificate, I can't find a config option to set 
> > configure the Server Certificate Chain
> > file...
> > Is this not possible or can I do it another way?
> > (When I connect, I am being told the Signature status is uncheckable...)
> >
> >
> > Regards,
> >
> > BTJ
> >
> >   
> You need put all certificates in one file in correct order. Look for 
> example here
> http://wiki.dovecot.org/SSL/DovecotConfiguration
> 

I have now tried every combination I can think of but my mail client still 
tells me..:

"Certificate for hostname is unknown. "

and

"Signature status: unable to get local issuer certificate."


I am trying to install a GoDaddy certificate and I have my public cert and then 
GoDaddys intermediate certificate in my crt file,
which I think is how it is supposed to be but I still get this...

What am I doing wrong?


BTJ


[Dovecot] SSL certificate?

2008-01-30 Thread Bjørn T Johansen
When I install an SSL certificate, I can't find a config option to set 
configure the Server Certificate Chain
file...
Is this not possible or can I do it another way?
(When I connect, I am being told the Signature status is uncheckable...)


Regards,

BTJ

-- 
---
Bjørn T Johansen

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


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

2007-12-31 Thread Bjørn T Johansen
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)

BTJ


Re: [Dovecot] Audit log?

2007-12-25 Thread Bjørn T Johansen
If you know regexp so... But thx... :)

BTJ

On Fri, 21 Dec 2007 15:40:09 +
Rob Coward <[EMAIL PROTECTED]> wrote:

> Yes, but surely its not a big leap for you to rewrite my regex to:
> 
> auth\(default\): sql\(.*,\): Password mismatch
> 
> Rob
> 
> On Fri, 2007-12-21 at 16:30 +0100, Bjørn T Johansen wrote:
> > Yes, but that doesn't work for sql auth; as you see, the line logged is 
> > different...
> > 
> > BTJ
> > 
> > On Fri, 21 Dec 2007 14:32:01 +
> > Rob Coward <[EMAIL PROTECTED]> wrote:
> > 
> > > I use pam authentication in dovecot and the following fail2ban filter
> > > seems to work fine for me:
> > > 
> > > failregex = auth\(default\): pam\(.*,\): pam_authenticate\(\)
> > > failed:
> > > 
> > > Rob
> > > 
> > > On Fri, 2007-12-21 at 12:04 +0100, Bj__rn T Johansen wrote:
> > > 
> > > > On Thu, 20 Dec 2007 18:42:01 +0200
> > > > Timo Sirainen <[EMAIL PROTECTED]> wrote:
> > > > 
> > > > > On Thu, 2007-12-20 at 13:18 +0100, Bj__rn T Johansen wrote:
> > > > > > Yes, I know about those but I was kind of hoping to see failed 
> > > > > > authentications in some logs without
> > > > > > enabling debug logging, like if I use PAM authentication
> > > > > 
> > > > > auth_verbose=yes enables logging failed logins.
> > > > > 
> > > > 
> > > > That did the trick... thx... :)
> > > > 
> > > > If I only had learned regexp like I have been meaning too for many 
> > > > years now, this would have been a piece of
> > > > cake but...
> > > > 
> > > > Does anyone use Dovecot together with fail2ban? If so, could any one 
> > > > share the failregex they are using? (A)
> > > > (or perhaps someone could create a regexp that recognize a line like 
> > > > this:
> > > > 
> > > > dovecot: Dec 21 11:58:07 Info: auth(default): sql([EMAIL 
> > > > PROTECTED],85.19.143.23): Password mismatch
> > > > 
> > > > )
> > > > 
> > > > 
> > > > BTJ
> > > 
> > > 
> > > Please consider the environment before printing this email. 
> > > 
> > > 
> > > GAME Stores Group Ltd has been awarded _Retailer of the Year_ at the 2006 
> > > Golden Joystick Awards and 
> > > 'Thames Valley Business Award' for Outstanding Employer of Choice 2006.
> > > 
> > > This e-mail and any files transmitted with it are confidential and 
> > > intended solely for the use of the 
> > > individual or entity to whom they are addressed. If you have received 
> > > this e-mail in error please 
> > > notify the system manager at:  
> > >  
> > > mailto:[EMAIL PROTECTED]
> > >  
> > > The recipient acknowledges that the transmissions made via the Internet 
> > > can be corrupted and therefore 
> > > THE GAME GROUP PLC and any of its subsidiaries do not give any warranty 
> > > as to the quality or accuracy of 
> > > any information contained in the message or assume any liability for it 
> > > or for its transmission, reception or
> > > storage.  
> > > 
> > > This footnote also confirms that this e-mail message has been swept by 
> > > anti-virus software for the presence of
> > > computer viruses. 
> > > http://www.game.co.uk
> > > http://www.gamegroup.plc.uk 
> > > 
> > > Registered Number: 1937170
> > > Registered Office: Unity House, Telford Road, Basingstoke, Hampshire. 
> > > RG21 6YJ Registered in England and Wales.
> 
> Please consider the environment before printing this email. 
> 
> 
> GAME Stores Group Ltd has been awarded ‘Retailer of the Year’ at the 2006 
> Golden Joystick Awards and 
> 'Thames Valley Business Award' for Outstanding Employer of Choice 2006.
> 
> This e-mail and any files transmitted with it are confidential and intended 
> solely for the use of the 
> individual or entity to whom they are addressed. If you have received this 
> e-mail in error please 
> notify the system manager at:  
>  
> mailto:[EMAIL PROTECTED]
>  
> The recipient acknowledges that the transmissions made via the Internet can 
> be corrupted and therefore 
> THE GAME GROUP PLC and any of its subsidiaries do not give any warranty as to 
> the quality or accuracy of 
> any information contained in the message or assume any liability for it or 
> for its transmission, reception or storage.  
> 
> This footnote also confirms that this e-mail message has been swept by 
> anti-virus software for the presence of computer viruses.
>  
> http://www.game.co.uk
> http://www.gamegroup.plc.uk 
> 
> Registered Number: 1937170
> Registered Office: Unity House, Telford Road, Basingstoke, Hampshire. RG21 
> 6YJ Registered in England and Wales.


Re: [Dovecot] Audit log?

2007-12-21 Thread Bjørn T Johansen
Yes, but that doesn't work for sql auth; as you see, the line logged is 
different...

BTJ

On Fri, 21 Dec 2007 14:32:01 +
Rob Coward <[EMAIL PROTECTED]> wrote:

> I use pam authentication in dovecot and the following fail2ban filter
> seems to work fine for me:
> 
> failregex = auth\(default\): pam\(.*,\): pam_authenticate\(\)
> failed:
> 
> Rob
> 
> On Fri, 2007-12-21 at 12:04 +0100, Bj__rn T Johansen wrote:
> 
> > On Thu, 20 Dec 2007 18:42:01 +0200
> > Timo Sirainen <[EMAIL PROTECTED]> wrote:
> > 
> > > On Thu, 2007-12-20 at 13:18 +0100, Bj__rn T Johansen wrote:
> > > > Yes, I know about those but I was kind of hoping to see failed 
> > > > authentications in some logs without
> > > > enabling debug logging, like if I use PAM authentication
> > > 
> > > auth_verbose=yes enables logging failed logins.
> > > 
> > 
> > That did the trick... thx... :)
> > 
> > If I only had learned regexp like I have been meaning too for many years 
> > now, this would have been a piece of
> > cake but...
> > 
> > Does anyone use Dovecot together with fail2ban? If so, could any one share 
> > the failregex they are using? (A)
> > (or perhaps someone could create a regexp that recognize a line like this:
> > 
> > dovecot: Dec 21 11:58:07 Info: auth(default): sql([EMAIL 
> > PROTECTED],85.19.143.23): Password mismatch
> > 
> > )
> > 
> > 
> > BTJ
> 
> 
> Please consider the environment before printing this email. 
> 
> 
> GAME Stores Group Ltd has been awarded _Retailer of the Year_ at the 2006 
> Golden Joystick Awards and 
> 'Thames Valley Business Award' for Outstanding Employer of Choice 2006.
> 
> This e-mail and any files transmitted with it are confidential and intended 
> solely for the use of the 
> individual or entity to whom they are addressed. If you have received this 
> e-mail in error please 
> notify the system manager at:  
>  
> mailto:[EMAIL PROTECTED]
>  
> The recipient acknowledges that the transmissions made via the Internet can 
> be corrupted and therefore 
> THE GAME GROUP PLC and any of its subsidiaries do not give any warranty as to 
> the quality or accuracy of 
> any information contained in the message or assume any liability for it or 
> for its transmission, reception or
> storage.  
> 
> This footnote also confirms that this e-mail message has been swept by 
> anti-virus software for the presence of
> computer viruses. 
> http://www.game.co.uk
> http://www.gamegroup.plc.uk 
> 
> Registered Number: 1937170
> Registered Office: Unity House, Telford Road, Basingstoke, Hampshire. RG21 
> 6YJ Registered in England and Wales.


Re: [Dovecot] Audit log?

2007-12-21 Thread Bjørn T Johansen
On Thu, 20 Dec 2007 18:42:01 +0200
Timo Sirainen <[EMAIL PROTECTED]> wrote:

> On Thu, 2007-12-20 at 13:18 +0100, Bjørn T Johansen wrote:
> > Yes, I know about those but I was kind of hoping to see failed 
> > authentications in some logs without enabling debug logging,
> > like if I use PAM authentication
> 
> auth_verbose=yes enables logging failed logins.
> 

That did the trick... thx... :)

If I only had learned regexp like I have been meaning too for many years now, 
this would have been a piece of cake but...

Does anyone use Dovecot together with fail2ban? If so, could any one share the 
failregex they are using? (A)
(or perhaps someone could create a regexp that recognize a line like this:

dovecot: Dec 21 11:58:07 Info: auth(default): sql([EMAIL 
PROTECTED],85.19.143.23): Password mismatch

)


BTJ


Re: [Dovecot] Audit log?

2007-12-20 Thread Bjørn T Johansen
On Thu, 20 Dec 2007 14:07:43 +0200
"Marius ROMAN" <[EMAIL PROTECTED]> wrote:

> On Dec 20, 2007 2:01 PM, Bjørn T Johansen <[EMAIL PROTECTED]> wrote:
> > Where can I found the log that dovecot writes if a user fails to log in?
> > I am authenticating agains an sql db, but I can't find where dovecot logs 
> > this, if it does?
> >
> >
> > Regards,
> >
> > BTJ
> >
> 
> 
> http://wiki.dovecot.org/Debugging/Authentication?highlight=%28debug%29
> 
> Marius

Yes, I know about those but I was kind of hoping to see failed authentications 
in some logs without enabling debug logging, like
if I use PAM authentication


BTJ


[Dovecot] Audit log?

2007-12-20 Thread Bjørn T Johansen
Where can I found the log that dovecot writes if a user fails to log in?
I am authenticating agains an sql db, but I can't find where dovecot logs this, 
if it does?


Regards,

BTJ

-- 
---
Bjørn T Johansen

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


Re: [Dovecot] Just verifying upgrade procedure?

2007-12-12 Thread Bjørn T Johansen
On Wed, 12 Dec 2007 13:38:48 +0100
Benoit Branciard <[EMAIL PROTECTED]> wrote:

> Bjørn T Johansen a écrit :
> > When upgrading from source, it's ok to just run make install and every 
> > files will be overwritten with the new version?
> > Nothing else one should do?
> > 
> 
> Pay attention to the fact that the dovecot daemon dynamically starts the 
> imap and pop server executables whenever inboud connexions are requested.
> 
> If you upgrade without stopping the master dovecot, and clients request 
> connexions, dovecot will try to run the new imap and pop executables, 
> which are not the same version as the master, and problems may arise.
> 
> The "good" solution is to stop the master dovecot *before* make install, 
> and restart it afterwards; or to make sure no clients try to connect 
> before you completed the upgrade process.
> 
> 

Yes, I always stop dovecot before running make install :)


BTJ


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

2007-12-12 Thread Bjørn T Johansen
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?


Regards,

BTJ

-- 
-------
Bjørn T Johansen

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


[Dovecot] Just verifying upgrade procedure?

2007-12-12 Thread Bjørn T Johansen
When upgrading from source, it's ok to just run make install and every files 
will be overwritten with the new version?
Nothing else one should do?


Regards,

BTJ

-- 
---
Bjørn T Johansen

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


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

2007-11-21 Thread Bjørn T Johansen
On Wed, 21 Nov 2007 09:05:14 +0100 (CET)
Steffen Kaiser <[EMAIL PROTECTED]> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> On Tue, 20 Nov 2007, Bjørn T Johansen wrote:
> 
> > When I receive a mail that is addressed to my email address and also with a 
> > cc to a mailinglist I subscribe to, I
> > get two mails, which I guess is expected... But I have just moved to 
> > Dovecot from Cyrus, and Cyrus seems to know
> > that this is the same mail, so only one of those two mail is stored on the 
> > imap srv...
> 
> I guess you mean:
> http://cyrusimap.web.cmu.edu/twiki/bin/view/Cyrus/DuplicateDeliveryExplained

Yes, this is what I mean.  :)

> ?
> 
> As far as I know there is no such thing in Dovecot's deliver. However, 
> deliver is easy to understand and probably you find someone to jump in and 
> make a patch.
> 
> If you do not use Dovecot deliver, check your local MDA.

Yes, I use Dovecot deliver

> 
> If you mean that Cyrus stores two identical mails only once physically, 
> e.g. when spooling for two users, then no, because Dovecot is not designed 
> to only support virtual users, but with real users two users cannot easily 
> share the same file.

Nope, this is not what I mean


BTJ


[Dovecot] Getting two mails.....

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

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


Regards,

BTJ

-- 
---
Bjørn T Johansen

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


Re: [Dovecot] Creating "special" folders?

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

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

Thx... :)

BTJ


[Dovecot] Creating "special" folders?

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


Regards,

BTJ

-- 
---
Bjørn T Johansen

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


Re: [Dovecot] Caching?

2007-11-13 Thread Bjørn T Johansen
On Tue, 13 Nov 2007 15:17:48 +0200
Timo Sirainen <[EMAIL PROTECTED]> wrote:

> On 13.11.2007, at 13.21, Bjørn T Johansen wrote:
> 
> > Any way to minimize the number of sql statements that dovecot do?
> >
> > (and I tried adding userdb prefetch { } but number of sql calls are  
> > still the same)
> 
> Did you add the userdb_* fields to passdb?

Yes...

> Did you put prefetchbefore userdb sql? 

Nope... That might be the reason?

> Show dovecot -n output? 

# 1.0.7: /etc/dovecot/dovecot.conf
log_path: /lv1/logs/dovecot.log
protocols: imap imaps pop3 pop3s
listen: [*]
disable_plaintext_auth: no
login_dir: /usr/var/run/dovecot/login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
mail_location: maildir:/opt/vmail/%d/%n
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_plugin_dir(default): /usr/lib/dovecot/imap
mail_plugin_dir(imap): /usr/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/pop3
pop3_uidl_format(default): 
pop3_uidl_format(imap): 
pop3_uidl_format(pop3): %08Xu%08Xv
pop3_client_workarounds(default): 
pop3_client_workarounds(imap): 
pop3_client_workarounds(pop3): outlook-no-nuls
auth default:
  mechanisms: plain login digest-md5 cram-md5
  user: vmail
  passdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
  userdb:
driver: passwd
  userdb:
driver: prefetch
  userdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
  socket:
type: listen
client:
  path: /var/spool/postfix/private/auth
  mode: 432
  user: postfix
  group: postfix
master:
  path: /var/run/dovecot/auth-master
  mode: 384
  user: vmai

Set auth_debug=yes to see  
> what SQL queries Dovecot actually sends.
> 
> For actual caching there's also auth_cache_size setting which is 0 by  
> default.

auth_cache_size is used for only authentication or all sql access?


BTJ


[Dovecot] Caching?

2007-11-13 Thread Bjørn T Johansen
Any way to minimize the number of sql statements that dovecot do?

(and I tried adding userdb prefetch { } but number of sql calls are still the 
same)


Am I doing something wrong or?



Regards,

BTJ

-- 
---
Bjørn T Johansen

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


Re: [Dovecot] Secure authentication?

2007-11-11 Thread Bjørn T Johansen
On Sun, 11 Nov 2007 22:28:52 +1100
Peter Fern <[EMAIL PROTECTED]> wrote:

> Bjørn T Johansen wrote:
> > I have enabled SSL support for my dovecot installation but if I enable 
> > secure authentication in my MUA, I get
> > an error from dovecot telling me that this is not supported..
> >
> > Is this because dovecot does not support this or am I missing some config?
> >   
> 
> SSL and secure passwords are different things - if you've enabled SSL on 
> the client, secure passwords are redundant really - the whole connection 
> is encrypted.  Secure password authentication is only supported by 
> dovecot when your backend password store is in unencrypted plain text - 
> the client hashes the password, which is compared to a hash generated by 
> the server.  If memory serves, SPA is based on NTLM, hence the 
> requirement for plaintext in the backend for generation of the hash, 
> though I suppose if you were storing NTLM hashes it could be made to 
> work.  Personally, I prefer to have the passwords securely encrypted in 
> the backend though, and so rely on SSL for securing the connection, 
> disregarding SPA entirely.


Yes, thanks for all the replies It was all a misunderstanding on my part 
about what secure authentication
really was but SSL is up and working anyway :)


BTJ


[Dovecot] Secure authentication?

2007-11-10 Thread Bjørn T Johansen
I have enabled SSL support for my dovecot installation but if I enable secure 
authentication in my MUA, I get an
error from dovecot telling me that this is not supported..

Is this because dovecot does not support this or am I missing some config?


Regards,

BTJ

-- 
---
Bjørn T Johansen

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