Re: [Dovecot] dovecot dspam plugin using libdspam

2007-09-20 Thread Trever L. Adams



Hi,

the git address has changed.

git clone git://git.cynapses.org/gladiac/dovecot-dspam-plugin.git

-- andreas

  


Hello, Andreas,

I have not had a chance to look at your plugin. I am wondering if you 
have updated the plugin for the API changes in 1.1 alpha series 
(particularly alpha6). If so, I am at a point I can test the plugin out 
and possibly contribute code.


Thank you for a quick response,
Trever Adams


Re: [Dovecot] dovecot dspam plugin using libdspam

2007-09-20 Thread Marcus Rueckert
On 2007-09-20 13:42:03 +0200, Andreas Schneider wrote:
 Trever L. Adams wrote:
  
  Hello, Andreas,
  
  I have not had a chance to look at your plugin. I am wondering if you
  have updated the plugin for the API changes in 1.1 alpha series
  (particularly alpha6). If so, I am at a point I can test the plugin out
  and possibly contribute code.
 
 Hi Trever,
 
 I haven't updated the plugin for the 1.1 API changes. I'm running 1.0.x on my
 server.
 
 Feel free to send patches to get it working with 1.1 :)

that leads to the question how big those changes are and if it would be
feasible to #if on some DOVECOT_VERSION define to avoid forking the
plugin for 1.1.

Timo?

darix

-- 
   openSUSE - SUSE Linux is my linux
   openSUSE is good for you
   www.opensuse.org


[Dovecot] Dovecot ignoring reject_code delay_warning_time settings

2007-09-20 Thread Radim Hejc

Hello,

hope guys someone can help me

i have installed mailserver according this tutorial
http://johnny.chadda.se/2007/04/15/mail-server-howto-postfix-and-dovecot-with-mysql-and-tlsssl-postgrey-and-dspam/
which is linked from dovecot maunal pages

Using Debian Etch 4.1 amd64,  Postfix 2.3.8, Dovecot v1.0.rc15 ,  have 
tried also 32bit version with same result


Everything works great except when i send mail to non-existing user in 
existing domain

Dovecot is ignoring Postfix main.cf values
delay_warning_time = 4h
and
unknown_local_recipient_reject_code = 550

And  is sending  error message ca every two hours for 4 days like :

Out: 220 mailserver2.mydomain.tld ESMTP Postfix (Debian/GNU)
In:  EHLO mail.otherdomain.tld
Out: 250- mailserver2.mydomain.tld
Out: 250-PIPELINING
Out: 250-SIZE 1024
Out: 250-VRFY
Out: 250-ETRN
Out: 250-STARTTLS
Out: 250-AUTH PLAIN
Out: 250-AUTH=PLAIN
Out: 250-ENHANCEDSTATUSCODES
Out: 250-8BITMIME
Out: 250 DSN
In:  STARTTLS
Out: 220 2.0.0 Ready to start TLS
In:  EHLO mail.otherdomain.tld
Out: 250- mailserver2.mydomain.tld
Out: 250-PIPELINING
Out: 250-SIZE 1024
Out: 250-VRFY
Out: 250-ETRN
Out: 250-AUTH PLAIN
Out: 250-AUTH=PLAIN
Out: 250-ENHANCEDSTATUSCODES
Out: 250-8BITMIME
Out: 250 DSN
In:  MAIL From:[EMAIL PROTECTED] SIZE=704
Out: 250 2.1.0 Ok
In:  RCPT To:[EMAIL PROTECTED]
Out: 451 4.3.0 [EMAIL PROTECTED]: Temporary lookup failure
In:  QUIT
Out: 221 2.0.0 Bye

I have googled out somewhere parameter for dovecot.conf
unknown_address_reject_code = 550 , but Dovecot is not taking this one.

Is Dovecot using Postfix paramteres
delay_warning_time =
and
unknown_local_recipient_reject_code =
??

Assuming not, becauase Postfix is delivering over Dovecot, as defined in 
postfix/master.conf
dovecot unix - n n - - pipe flags=DRhu user=vmail:mail 
argv=/usr/lib/dovecot/deliver -d $(recipient)



So how can i set this two parameters ??

Thanks in advance for any hint

Radim

--
Radim Hejc






Re: [Dovecot] dovecot dspam plugin using libdspam

2007-09-20 Thread Timo Sirainen
On Thu, 2007-09-20 at 13:48 +0200, Marcus Rueckert wrote:
  Feel free to send patches to get it working with 1.1 :)
 
 that leads to the question how big those changes are and if it would be
 feasible to #if on some DOVECOT_VERSION define to avoid forking the
 plugin for 1.1.

Hmm. Looks like there aren't any easy to #if macros available. But I've
done a lot of small changes all around and it would probably be pretty
dirty to make the same source work with both 1.0 and 1.1.



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Antwort: Re: Running a script when a mail arrives

2007-09-20 Thread Timo Sirainen
On Wed, 2007-09-19 at 15:24 +0200, Dennis Becker wrote:
 But I'm still confused why there's no possibility included to execute 
 external scripts in a .dovecot.sieve solution.

That would be a really bad feature to have if the user doesn't have
shell access. Also it would require changing the libsieve code to
support this kind of a new extension, which I'd rather not do myself.



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Running a dovecot IMAPS server

2007-09-20 Thread Timothy Murphy
Timo Sirainen wrote:

 To clarify my question, suppose one has email organised in server X
 as described above, in directories ~/Maildir/Family/[cur.new.tmp/ , etc.
 And now suppose one wants to access this email from laptop Y.
 How exactly does one have to change the setup on machine X?
 And what does one set mail_location to?
 
 Why do you want it to work like that? Can't you just use the Maildir++
 layout and use the email only via IMAP?
 
 It seems to me that this is an issue likely to be faced by anyone
 wanting to run a small home network.
 reading email on various machines,
 and wanting this email to be kept in sync.
 
 If you use only IMAP, there should be no problem.

Just a note to say I have everything working fine now.
As suggested, I am basically using IMAP for everything.

Looking back, there were two problems.

Firstly, for some reason I kept getting a warning
that the resource .INBOX.directory could not be found
(this is not the exact message).

Secondly, it took an extraordinarily long time
for the IMAPS directory on my laptop to appear.
In fact, it only appeared (to my surprise)
when I re-booted the laptop after several hours.
I take it that this was somehow related
to SSL or TSL authentication.

I found that I had to move my old ~/Maildir/Folder/cur/*
messages by hand to the IMAP folder created by kmail
at ~/Maildir/.Folder/new/ ;
kmail did not allow me to move messages from a Local folder
to an IMAP folder, although it saw both.

Incidentally, as far as I can see one has to keep a Local account
on kmail, as well as an IMAP account,
since eg sent mail goes to ~/Maildir/sent-mail/cur/ .
I didn't find any kmail setting to change this.
Also, I assume it is sensible to leave the trash folder
on the local machine.

One tiny query; my .procmailrc has DEFAULT set to
$HOME/Maildir/ ,which seems to work fine.
Someone suggested it should be set to $HOME/Maildir/new/ ?

In any case, dovecot IMAPS is working perfectly now, as I said.
Thank you very much for what seems an excellent program.
I had previously tried to set up a Cyrus IMAP server,
but for one reason or another this did not work
(under Fedora 7).






Re: [Dovecot] Multiple Quota ignore= in Dovecot 1.0.x?

2007-09-20 Thread Timo Sirainen
On Wed, 2007-09-19 at 08:29 -0700, Rich at Whidbey Telecom wrote:
 Any chance that multiple ignore= statements cab be specified for a 
 quota in Dovecot 1.0.x?

No.

 We know this is possible in 1.1, but won't be 
 able to update until it's stable.

Actually 1.1 doesn't currently have ignore= at all. You can do something
similar with its rules, but they still count the quota. I don't know if
I should bother adding the ignore setting to it.

An alternative to v1.1 is also applying the quota-rewrite patch on top
of v1.0.



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] SASL from remote server

2007-09-20 Thread Timo Sirainen
On Mon, 2007-09-17 at 19:31 +0200, Marcus Rueckert wrote:
 On 2007-09-17 19:59:37 +0300, Timo Sirainen wrote:
  On 17.9.2007, at 19.25, Daniel L. Miller wrote:
  
  Is there a way, using Dovecot and Postfix, to use SASL from a  
  remote server?  Since it appears the communication uses Unix  
  sockets, does this mean it is restricted to local services only?
  
  Not directly, but there are programs that can do unix - tcp socket  
  proxying. Maybe some day when dovecot-auth is separated into its own  
  dovecot-sasl package that could be added.
 
 how difficult would it be to add it now? given that dovecot is gaining
 more and more popularity, the feature might help to get more people to
 migrate to dovecot.

Probably not that difficult, but I see this as a pretty low priority
feature.



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Running a dovecot IMAPS server

2007-09-20 Thread Charles Marcus

On 9/20/2007, Timothy Murphy ([EMAIL PROTECTED]) wrote:

Incidentally, as far as I can see one has to keep a Local account
on kmail, as well as an IMAP account,


Dunno why it would be necessary. TBird doesn't have an easy way to lose 
the 'Local Folders' - maybe kmail has something similar that you are 
referring to? I just keep those collapsed and ignore them.



since eg sent mail goes to ~/Maildir/sent-mail/cur/ .
I didn't find any kmail setting to change this.


???

'Special' folders are definable by the client - in TBird, I always use 
'Sent', 'Drafts', 'Templates' and 'Trash' (these are the defaults too).



Also, I assume it is sensible to leave the trash folder on the local
machine.


Sensible? No... but it is a personal preference...

I keep the Trash expiration (a TBird setting, not a server-side setting) 
separate from the defaults, set to delete messages older than 30 days - 
and I like having the trash on the IMAP server, but that is a personal 
preference.


I still think you are missing something about how IMAP works...

--

Best regards,

Charles


[Dovecot] Error: auth(default): passwd-file ... is missing userdb info

2007-09-20 Thread [EMAIL PROTECTED]

Hallo

Have pop3 plain login  Error  and need some changes somewhere...
?where?
Please see log down
nora

--- dovecot.log ---
20 14:17:23 Error: auth(default): passwd-file /etc/dovecot/passwd: User 
[EMAIL PROTECTED] is missing userdb info
dovecot: Sep 20 14:19:16 Error: Logins with UID 0 not permitted (user 
[EMAIL PROTECTED])


Re: [Dovecot] quota reporting and mail.app

2007-09-20 Thread Mike Horwath
On Wed, Sep 19, 2007 at 06:54:39PM -0400, Benjamin R. Haskell wrote:
 As Rich mentioned, it appears to be a Mail.app issue with the empty-string 
 QUOTAROOT name.
 
 There's a FIXME in the dovecot source regarding this:
 
 root = quota_root_init(setups[0], ); /* FIXME: name? */
 
 See attached patch (against 1.0.3, but from hg.dovecot.org, seems to still 
 be valid) for a workaround. It causes dovecot to use a default QUOTAROOT 
 name of DEFAULT. [ I left the /*FIXME*/, since I'm not Timo. :-) ]

Interesting, thanks!

-- 
Mike Horwath[EMAIL PROTECTED]
 ipHouse - Welcome home!


Re: [Dovecot] quota reporting and mail.app

2007-09-20 Thread Mike Horwath
On Thu, Sep 20, 2007 at 05:10:18PM +0300, Timo Sirainen wrote:
 On Wed, 2007-09-19 at 18:54 -0400, Benjamin R. Haskell wrote:
  There's a FIXME in the dovecot source regarding this:
  
  root = quota_root_init(setups[0], ); /* FIXME: name? */
 
 I used an empty name because some other server did the same thing.
 Anyway quota-rewrite patch and v1.1 support naming quota roots in config
 file.

Cool!

This is production stuff so I will hold off on 1.1 anything until later.

-- 
Mike Horwath[EMAIL PROTECTED]
 ipHouse - Welcome home!


Re: [Dovecot] Dovecot as LDA issues - please help

2007-09-20 Thread Placid Publishing, LLC

Timo Sirainen wrote:

On Wed, 2007-09-19 at 23:12 -0500, Placid Publishing, LLC wrote:
  
The error I get when running /usr/local/libexec/dovecot/deliver -c 
dovecot.conf -d username
Sep 19 22:55:57 pelorus dovecot: auth-worker(default): mysql: Connected 
to localhost (db)

Sep 19 22:55:57 pelorus deliver(support): auth input: support
Sep 19 22:55:57 pelorus deliver(support): auth input: uid=1011
Sep 19 22:55:57 pelorus deliver(support): auth input: gid=1011
Sep 19 22:55:57 pelorus deliver(support): chdir(/root) failed: 
Permission denied



This probably happens because you have HOME=/root environment set
while running deliver. v1.1's deliver clears the whole environment so
this isn't a problem, but for now either unset it yourself, or add
home=/ (or something) to plugin {}.

Anyway this error message isn't fatal.

  
Ok, what exactly should home be? I dont have home directories for my 
virtual users, no need for them.
Sep 19 22:55:57 pelorus deliver(support): maildir: 
data=/usr/local/virtual//support
Sep 19 22:55:57 pelorus deliver(support): maildir: 
root=/usr/local/virtual//support, index=/usr/local/virtual//support, 
control=, inbox=



So the messages stop here? There should have been something more..
  


Yes that was it, what else should there be and why isn't it there?
  
*Sep 19 22:57:14 pelorus dspam[33675]: Delivery agent returned exit code 
67: /usr/local/libexec/dovecot/deliver -d [EMAIL PROTECTED]



67 means unknown user. I think this is different from the previous
error. You could set auth_verbose=yes to make Dovecot log the user.
  

ok, should it be [EMAIL PROTECTED] or just user? I will turn verbose on.


Thanks for your reply, I'm very eager to get this working!


Re: [Dovecot] Running a dovecot IMAPS server

2007-09-20 Thread Timothy Murphy
On Thu 20 Sep 2007, Charles Marcus wrote:

  Incidentally, as far as I can see one has to keep a Local account
  on kmail, as well as an IMAP account,

 Dunno why it would be necessary. TBird doesn't have an easy way to lose
 the 'Local Folders' - maybe kmail has something similar that you are
 referring to? I just keep those collapsed and ignore them.

There appear to be several default folders with kmail,
namely inbox, outbox, sent-mail, wastebin, draughts, templates .

  since eg sent mail goes to ~/Maildir/sent-mail/cur/ .
  I didn't find any kmail setting to change this.

 ???
 'Special' folders are definable by the client - in TBird, I always use
 'Sent', 'Drafts', 'Templates' and 'Trash' (these are the defaults too).

Maybe kmail is different ...

 I still think you are missing something about how IMAP works...

What exactly?





[Dovecot] Broken header

2007-09-20 Thread Jon
Hi, I just upgraded to version 1.0.5 hoping to get rid of a problem that 
made Thunderbird download all mails from time to time. I now see this 
error (below). Does anyone know what it means?


Error: IMAP(user): 
/mail2/home/user/.Maildir/.Folders.Persons.Foldername/dovecot-uidlist: 
Broken header (uidvalidity = 0, next_uid=10)


Error: IMAP(user): 
/mail2/home/user/.Maildir/.Folders.2005/dovecot-uidlist: Broken header 
(uidvalidity = 0, next_uid=1186)


Mails are stored in userhomedirs that are located on a NFS export.

See below output from dovecote -n

[EMAIL PROTECTED] dovecot-1.0.5]# /usr/local/sbin/dovecot -n
# 1.0.5: /usr/local/etc/dovecot.conf
log_path: /var/log/dovecot.log
login_dir: /usr/local/var/run/dovecot/login
login_executable: /usr/local/libexec/dovecot/imap-login
login_processes_count: 2
mail_location: maildir:%h/.Maildir
mmap_disable: yes
auth default:
 passdb:
   driver: pam
 userdb:
   driver: passwd

Best Regards - Jon