[Dovecot] lmtp weird error: Bad address

2010-10-06 Thread Paweł Madej
From time to time for one of email addresses i got such error. Have no 

idea why, as it is valid. Dovecot 2.0.2

Oct  6 17:37:52 postfix/smtpd: connect from unknown[212.xxx.101.5]
Oct  6 17:37:52 postfix/smtpd: setting up TLS connection from 
unknown[212.xxx.101.5]
Oct  6 17:37:53 postfix/smtpd: Anonymous TLS connection established 
from unknown[212.xxx.101.5]: TLSv1 with cipher DHE-RSA-AES256

-SHA (256/256 bits)
Oct  6 17:37:53 sqlgrey: grey: from awl match: updating 
212.xxx.101(212.xxx.101.5), f...@example.com(f...@example.com)
Oct  6 17:37:59 postfix/policyd-weight: decided action=DUNNO  using 
cached result; rate: -2.3;  
  ; 
delay: 6s
Oct  6 17:37:59 postfix/smtpd: 9CD23A9C6BD: 
client=unknown[212.xxx.101.5]
Oct  6 17:37:59 postfix/cleanup: 9CD23A9C6BD: 
message-id=<4cac977f4c58d7.89836...@example.com>
Oct  6 17:37:59 postfix/qmgr: 9CD23A9C6BD: from=, 
size=1967, nrcpt=1 (queue active)

Oct  6 15:37:59 postfix/smtpd: disconnect from unknown[212.xxx.101.5]
Oct  6 17:38:00 postfix/smtpd: connect from 
localhost.localdomain[127.0.0.1]
Oct  6 17:38:00 postfix/smtpd: 39179A9C886: 
client=localhost.localdomain[127.0.0.1]
Oct  6 17:38:00 postfix/cleanup: 39179A9C886: 
message-id=<4cac977f4c58d7.89836...@example.com>
Oct  6 17:38:00 postfix/qmgr: 39179A9C886: from=, 
size=2335, nrcpt=1 (queue active)

Oct  6 17:38:00 dovecot: lmtp(12184): Connect from local
Oct  6 17:38:00 dovecot: lmtp(12184, t...@example.com): Error: 
lstat((null)) failed: Bad address
Oct  6 17:38:00 dovecot: lmtp(12184, t...@example.com): Error: 
file_dotlock_create((null)) failed: Bad address
Oct  6 17:38:00 dovecot: lmtp(12184, t...@example.com): Error: 
open((null)) failed: Bad address
Oct  6 17:38:00 postfix/smtpd: disconnect from 
localhost.localdomain[127.0.0.1]
Oct  6 17:38:00 postfix/lmtp: 9CD23A9C6BD: to=, 
relay=my.relay[/var/run/dspam/dspam.sock],
delay=7.3, delays=6.8/0/0/0.53, dsn=2.6.0, status=sent (250 2.6.0 
 Message accepted for delivery)

Oct  6 17:38:00 postfix/qmgr: 9CD23A9C6BD: removed

Message is delivered properly but i got such errors and have no idea 
why.

I've searched google for this but noone have answer for my problem.

Greets
--
Paweł Madej




Re: [Dovecot] lmtp weird error: Bad address

2010-10-10 Thread Paweł Madej
On Thu, 07 Oct 2010 08:49:21 +0200, Paweł Madej
 wrote:
>From time to time for one of email addresses i got such error. Have no idea 
>why, as it is valid. Dovecot 2.0.2
> 
> Oct  6 17:37:52 postfix/smtpd: connect from unknown[212.xxx.101.5]
> Oct  6 17:37:52 postfix/smtpd: setting up TLS connection from
> unknown[212.xxx.101.5]
> Oct  6 17:37:53 postfix/smtpd: Anonymous TLS connection established
> from unknown[212.xxx.101.5]: TLSv1 with cipher DHE-RSA-AES256
> -SHA (256/256 bits)
> Oct  6 17:37:53 sqlgrey: grey: from awl match: updating
> 212.xxx.101(212.xxx.101.5), f...@example.com(f...@example.com)
> Oct  6 17:37:59 postfix/policyd-weight: decided action=DUNNO  using
> cached result; rate: -2.3; 
>   ;
> delay: 6s
> Oct  6 17:37:59 postfix/smtpd: 9CD23A9C6BD: client=unknown[212.xxx.101.5]
> Oct  6 17:37:59 postfix/cleanup: 9CD23A9C6BD:
> message-id=<4cac977f4c58d7.89836...@example.com>
> Oct  6 17:37:59 postfix/qmgr: 9CD23A9C6BD: from=,
> size=1967, nrcpt=1 (queue active)
> Oct  6 15:37:59 postfix/smtpd: disconnect from unknown[212.xxx.101.5]
> Oct  6 17:38:00 postfix/smtpd: connect from localhost.localdomain[127.0.0.1]
> Oct  6 17:38:00 postfix/smtpd: 39179A9C886:
> client=localhost.localdomain[127.0.0.1]
> Oct  6 17:38:00 postfix/cleanup: 39179A9C886:
> message-id=<4cac977f4c58d7.89836...@example.com>
> Oct  6 17:38:00 postfix/qmgr: 39179A9C886: from=,
> size=2335, nrcpt=1 (queue active)
> Oct  6 17:38:00 dovecot: lmtp(12184): Connect from local
> Oct  6 17:38:00 dovecot: lmtp(12184, t...@example.com): Error:
> lstat((null)) failed: Bad address
> Oct  6 17:38:00 dovecot: lmtp(12184, t...@example.com): Error:
> file_dotlock_create((null)) failed: Bad address
> Oct  6 17:38:00 dovecot: lmtp(12184, t...@example.com): Error:
> open((null)) failed: Bad address
> Oct  6 17:38:00 postfix/smtpd: disconnect from
> localhost.localdomain[127.0.0.1]
> Oct  6 17:38:00 postfix/lmtp: 9CD23A9C6BD: to=,
> relay=my.relay[/var/run/dspam/dspam.sock],
> delay=7.3, delays=6.8/0/0/0.53, dsn=2.6.0, status=sent (250 2.6.0
>  Message accepted for delivery)
> Oct  6 17:38:00 postfix/qmgr: 9CD23A9C6BD: removed
> 
> Message is delivered properly but i got such errors and have no idea why.
> I've searched google for this but noone have answer for my problem.

Timo could you take your voice in this problem. That error happens now
for 2 more accounts and I have no idea if it is configuration problem or
application. My setup has about 50 accounts and only 3 of them shows
such errors.

-- 
Greets
Paweł Madej



Re: [Dovecot] anti-spam+anti-malware suggestions

2010-10-21 Thread Paweł Madej

On Thu, 21 Oct 2010 11:37:40 -0200, Fabricio Archanjo
 wrote:

Does someone run dspam or just me??
I like very much this antispam solution.



I use dspam + sqlgrey + policyd-weight to prevent spam.

60% rejects are invalid recipient drop
30% nonreturning from sqlgrey
10% goes to dspam with autolearning.

--
Pozdrawiam
Paweł Madej




[Dovecot] Global ACLs

2010-09-09 Thread Paweł Madej

Hello,

how can I do this

every user have .Spam mailbox and i want user spamadmin to have access 
to it


i got global acl file with content

user=spamadmin lrp

but I cannot list other users .Spam mailboxes

Greets and thanks in advance for any help and suggestions

--
Paweł Madej



[Dovecot] Expire Mysql backend

2010-09-09 Thread Paweł Madej

Hello,

Is it possible to make expire plugin get per user number of days to 
expire emails in trash?


for example

user1 trash 14d
user2 trash 30d
user3 trash 0d - disable

--
Paweł Madej



Re: [Dovecot] Expire Mysql backend

2010-09-13 Thread Paweł Madej
I use v1.2.x for now because 2.0 is hard masked in gentoo portage. How
stable is v2.0 for now? is it suitable for production environment or
should I wait a bit until it is more tested?

On Mon, 13 Sep 2010 12:57:23 +0100, Timo Sirainen  wrote:
> On Thu, 2010-09-09 at 11:17 +0200, Paweł Madej wrote:
> 
>> Is it possible to make expire plugin get per user number of days to
>> expire emails in trash?
>>
>> for example
>>
>> user1 trash 14d
>> user2 trash 30d
>> user3 trash 0d - disable
> 
> v2.0 yes, v1.x no.

-- 
Paweł Madej


Re: [Dovecot] Global ACLs

2010-09-13 Thread Paweł Madej
> Yeah, it won't work magically like that. You need to do one of:
> 
> a) Use master user logins and log in with each user separately.
> http://wiki.dovecot.org/Authentication/MasterUsers
> 
> b) Enable shared mailboxes and directly have your command SELECT other
> users' mailboxes without LISTing them first.
> 
> c) Do b) but also enable ACL shared dict and fill it with all users so
> that spamadmin's LIST will also show all users' mailboxes.

Thanks for suggestions it looks like solution a) will mostly fit my
needs. I'll give it a try and write if had some problems.

-- 
Paweł Madej


Re: [Dovecot] Expire Mysql backend

2010-09-13 Thread Paweł Madej


On Mon, 13 Sep 2010 15:09:37 +0300, Eray Aslan 
wrote:
> On 13.09.2010 15:00, Paweł Madej wrote:
>> I use v1.2.x for now because 2.0 is hard masked in gentoo portage.
> 
> Not anymore.  Please sync your tree.
> 

That's nice :)

>> How
>> stable is v2.0 for now? is it suitable for production environment or
>> should I wait a bit until it is more tested?
> 
> That is for you to decide.  Historically, dovecot has been pretty
> stable.  We have enabled v2.0 on test servers and for a small number of
> accounts with no problems so far.

If you say so maybe I'll try backing up current configuration and test
2.0.2.
This is build from scratch server to which I'll migrate users from
another server.

-- 
Paweł Madej

Zajrzyj na Internetowe Forum Farmaceutyczne
http://forum-farmaceutyczne.org/s/k


Re: [Dovecot] Expire Mysql backend

2010-09-13 Thread Paweł Madej
amd64 stable now but last week as i synced it was masked. now its
~amd64. thanks for pointing out :*

On Mon, 13 Sep 2010 09:03:24 -0400, Charles Marcus
 wrote:
> On 2010-09-13 8:00 AM, Paweł Madej  wrote:
>> I use v1.2.x for now because 2.0 is hard masked in gentoo portage.
> 
> What arch? Its ~unstable for amd64...

-- 
Paweł Madej

Zajrzyj na Internetowe Forum Farmaceutyczne
http://forum-farmaceutyczne.org/s/k


[Dovecot] dspam + dovecot LDA

2010-09-14 Thread Paweł Madej

Hello,

Is there any possibility to make dspam transport validated emails 
directly to dovecot LDA? for now I use such schema:


postfix > dspam > postfix > dovecot LDA but wanted to not return 
emails to postfix. I've found that such configuration is possible with 
dspam+ cyrus IMAP.


Documentation of dovecot is great but I haven't found such solution.

Thanks in advance for any help.

--
Greets
Paweł Madej
Poland



Re: [Dovecot] dspam + dovecot LDA

2010-09-14 Thread Paweł Madej


On Tue, 14 Sep 2010 11:41:49 +0100, Timo Sirainen  wrote:
> On Tue, 2010-09-14 at 10:15 +0200, Paweł Madej wrote:
> 
>> Is there any possibility to make dspam transport validated emails
>> directly to dovecot LDA?
> 
> What methods does dspam support?
> 
>> for now I use such schema:
>>
>> postfix > dspam > postfix > dovecot LDA but wanted to not return
>> emails to postfix. I've found that such configuration is possible with
>> dspam+ cyrus IMAP.
> 
> Maybe Dovecot v2.0 + LMTP?

that's second point to test 2.0 :) this time i have no other way than
try 2.0. LMTP is supported so that should work.

-- 
Paweł Madej

Zajrzyj na Internetowe Forum Farmaceutyczne
http://forum-farmaceutyczne.org/s/k


Re: [Dovecot] dspam + dovecot LDA

2010-09-14 Thread Paweł Madej


On Tue, 14 Sep 2010 14:31:28 +0200, Tom Hendrikx 
wrote:
> On 14/09/10 10:15, Paweł Madej wrote:
>> Hello,
>>
>> Is there any possibility to make dspam transport validated emails
>> directly to dovecot LDA? for now I use such schema:
> 
> You can setup dovecot LDA as delivery agent in dspam.conf. Never tried
> it but I think that would work.
> 
> However, I remeber some issue with this setup reported on dspam list:
> when lda cannot deliver the message (storage errors, quota exceeded),
> then your message is lost. No DSN to sender, no bounce, etc. That 's why
> I have postfix in between :)
> 
> LMTP would probably solve that, though.
> 
> Regards,
>   Tom

Thanks for pointing out this problem. I'll try solution with LMTP and
dovecot 2.0.

-- 
Paweł Madej

Zajrzyj na Internetowe Forum Farmaceutyczne
http://forum-farmaceutyczne.org/s/k


Re: [Dovecot] Expire Mysql backend

2010-09-16 Thread Paweł Madej
Hello Timo,

After searching documentation a lot I had to write here. I'm sorry to
say that Expire plugin documentation says nothing about such
configuration scenario. There are only informations about dict and
timestamps. but this was also in 1.2.x version.

Could you link where to read about this new feature?


On Mon, 13 Sep 2010 12:57:23 +0100, Timo Sirainen  wrote:
> On Thu, 2010-09-09 at 11:17 +0200, Paweł Madej wrote:
> 
>> Is it possible to make expire plugin get per user number of days to
>> expire emails in trash?
>>
>> for example
>>
>> user1 trash 14d
>> user2 trash 30d
>> user3 trash 0d - disable
> 
> v2.0 yes, v1.x no.

-- 
Paweł Madej

Zajrzyj na Internetowe Forum Farmaceutyczne
http://forum-farmaceutyczne.org/s/k