Re: [Dovecot] Internal login failure

2008-04-21 Thread David Andel
Answer to self:

I did not set first_valid_uid explicitely. However:
"Valid UID range for users, defaults to 500 and above."

And mine is below that. Now everything works fine.

David


[Dovecot] Compiling with SSL

2008-04-21 Thread Tom Ray [Lists]
I have Dovecot 1.0.9 running right now and I'm looking to upgrade but at 
the same time re-compile with SSL support. Dovecot's been working great 
for me so far. When I try to compile I keep getting this at the end:


Building with SSL support ... : no
Building with IPv6 support .. : yes
Building with pop3 server ... : yes

This is what my configure line looks like:

./configure --prefix=/usr/local/dovecot --with-pop3d --with-ssl=openssl 
--with-ssldir=/usr/local/vps/sharedssl/openssl --with-passwd-file


Am I not doing something right? Am I reading the configuration setup 
wrong? Any help would be great!


Thanks.


[Dovecot] Problems with Public Folders

2008-04-21 Thread Matt Rude
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I am trying to implement public folders on my Fedora 8 + Postfix 2.5.1 +
 MySQL + Dovecot 1.0.13.  I have Public folder shown in for my users but
when they choose the folder "Public" they receive the error "The mail
server responded: Mailbox doesn't exist: Public" (in Thunderbird) or
just simply "Mailbox doesn't exist: Public" (In SquirrelMail). They are
also reciveing the same errors when they try to subscribe to the Public
Folder.

Thanks
- -Matt

- ---
# /usr/local/sbin/dovecot --version
1.0.13

- ---
# /usr/local/sbin/dovecot -n
# 1.0.13: /usr/local/etc/dovecot.conf
listen:
ssl_cert_file: /etc/pki/dovecot/certs/dovecot.pem
ssl_key_file: /etc/pki/dovecot/private/dovecot.pem
login_dir: /usr/local/var/run/dovecot/login
login_executable: /usr/local/libexec/dovecot/imap-login
login_user: postfix
mail_location:
maildir:/var/spool/virtualmailboxes/%d/%u/imap/:INBOX=/var/spool/virtualmailboxes/%d/%u/:INDEX=/var/spool/virtualmailboxes/%d/%u/imap/index/
mail_plugins: quota imap_quota
namespace:
  type: public
  separator: /
  prefix: Public/
  location: maildir:/var/spool/virtualmailboxes/%d/Public/
namespace:
  type: private
  separator: /
  inbox: yes
auth default:
  mechanisms: plain digest-md5 cram-md5
  cache_size: 128
  cache_ttl: 600
  passdb:
driver: sql
args: /etc/dovecot-mysql.conf
  userdb:
driver: sql
args: /etc/dovecot-mysql.conf
  socket:
type: listen
master:
  path: /var/run/dovecot/auth-master
  mode: 384
  user: virtualmail
  group: virtualmail
plugin:
  quota: maildir:storage=10240

- ---
# grep -v '^ *\(#.*\)\?$' /etc/dovecot-mysql.conf
driver = mysql
connect = dbname=postfix user=postfix host=localhost password=postfix
default_pass_scheme = md5sum
password_query = SELECT password FROM mailbox WHERE username = '%u'
user_query = SELECT maildir, 1000 AS uid, 1000 AS gid,
CONCAT('maildir:storage=', ROUND( mailbox.quota / 1024 ) ) AS quota FROM
mailbox WHERE username = '%u' AND active = '1'

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIDW+KyxB1nuZfLEYRAmigAJ44kfgX2Nh6Mi6PAukq4pxMBL3SpgCZASJG
qmmZr0N1HJPeWsKnQN+qcSs=
=xNyb
-END PGP SIGNATURE-


[Dovecot] Internal login failure

2008-04-21 Thread David Andel
Hi all

My postfix/dovecot installation seems to be working fine - on the
machine. But I cannot connect from the outside by IMAP.

I am desperately searching for the reason of the following error:

bit:/var/log# telnet localhost imap
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK Dovecot ready.
1 LOGIN test test1
* BYE Internal login failure. Refer to server log for more information.
Connection closed by foreign host.

The PW sould be correct:

bit:/etc/dovecot# grep ^test passwd
test:{PLAIN}test1

/var/log/dovecot-info.log sais (I have removed the last block in the IP):

ovecot: Apr 22 04:27:05 Info: auth(default): client in: AUTH1   PLAIN
service=IMAPlip=217.150.250.xxx rip=127.0.0.1   resp=AHRlc3QAdGVzdDE=
dovecot: Apr 22 04:27:05 Info: auth(default): client out: OK1   
user=test
dovecot: Apr 22 04:27:05 Info: auth(default): master in: REQUEST4   
47391
dovecot: Apr 22 04:27:05 Info: auth(default): master out: USER  4   test
uid=111 gid=8   home=/srv/vmail//test
dovecot: Apr 22 04:27:05 Info: imap-login: Internal login failure:
user=, method=PLAIN, rip=127.0.0.1, lip=217.150.250.xxx


Any ideas what this could be caused by?

Thank you in advance and best regards,
David


Re: [Dovecot] odd behaviour with antispam plugin

2008-04-21 Thread Hugo Monteiro

ZyanKLee wrote:

hey,

in my dspam database there has been some odd behaviour:

during training dspam had created an uid entry named by the local part 
of the email. i.e.:


user1

I use a virtual setup using dovecot, postfix and postfixadmin. On my 
first try I set up a database for dspam itself and there this happened.
After I couldn't figure out how to solve this, I merged the database 
into the postfixadmin database.


But using just the username for identifying email adresses is a bit 
critical within a virtual environment with multiple domains, isn't it?


if one would not merge the databases - how could he solve this problem?


Greetz, Zyan K Lee



You need to install DSPAM with --enable-domain-scale and start using 
"[EMAIL PROTECTED]" with your DSPAM operations.


Regards,

Hugo Monteiro.

--
ci.fct.unl.pt:~# cat .signature

Hugo Monteiro
Email: [EMAIL PROTECTED]
Telefone : +351 212948300 Ext.15307

Centro de Informática
Faculdade de Ciências e Tecnologia da
   Universidade Nova de Lisboa
Quinta da Torre   2829-516 Caparica   Portugal
Telefone: +351 212948596   Fax: +351 212948548
www.ci.fct.unl.pt [EMAIL PROTECTED]

ci.fct.unl.pt:~# _




signature.asc
Description: OpenPGP digital signature


[Dovecot] Mutually exclusive Exim setup instructions

2008-04-21 Thread Karl Schmidt

The correct way has to be one or the other:


http://wiki.dovecot.org/LDA/Exim

are mutually exclusive with

http://wiki.dovecot.org/HowTo/DebianStable

It appears that exim can either call dovecot's LDA or make the delivery itself.  There may 
be good reasons to do it one way or the other.







Karl Schmidt EMail [EMAIL PROTECTED]
Transtronics, Inc. WEB http://xtronics.com
3209 West 9th StreetPh (785) 841-3089
Lawrence, KS 66049 FAX (785) 841-0434

If you are not part of the solution, you are part of the precipitate.




Re: [Dovecot] Moving Maildir email messages and backing things up.

2008-04-21 Thread Karl Schmidt

mouss wrote:

Karl Schmidt wrote:

mouss wrote:

karl wrote:
What would happen if I ran a script that did this:

mv ~/Maildir/.folder_one/cur/* ~/Maildir/.folder_two/cur/

My hunch is it might break things.


shouldn't break anything. if the MUA is caching "actions" (happens 
with thunderbird at least), then the view in the client will be 
different but this is not a big problem (at least for me).


So on the server I could run something simple like:

#!/bin/bash
bogofilter  -Ns  -B /home/karl/Maildir/.s-2B-scaned_spam
mv ~/Maildir/.s-2B-scaned_spam/cur/* ~/Maildir/.archived_spam/cur/


you'd better use an "axuiliary" directory:


mv $dir/.Junk.Trash/cur/* $dir/.Junk.Trash/todo/
$learn_spam $dir/.Junk.Trash/todo/  && mv $dir/.Junk.Trash/todo/* 
$dir/.Corpus.junk/cur/


?? not sure I understand your point?? I'm not changing any message - just scanning 
(bogofilter  -Ns  -B ~/Maildir/.s-2B-scaned_spam just reads the files in 
~/Maildir/.s-2B-scaned_spam/cur.  I (and many others) have this part tested and working. ( 
bogofilter adds the header as part of the MTA work before local delivery in my setup).


But, it would be nice if I could move the messages with the same script.

I ran a test - with thunderbird set to an open follder  - I did a move - Thunderbird 
instantly saw the move and everything just worked. BUT!--I'm not comfortable putting this in 
production until I know what is going on inside dovecot during this operation. It would be 
really helpful to know what all the index files were about etc..






Karl Schmidt EMail [EMAIL PROTECTED]
Transtronics, Inc. WEB http://xtronics.com
3209 West 9th StreetPh (785) 841-3089
Lawrence, KS 66049 FAX (785) 841-0434

Subtle recursive jokes in signatures are funny.




[Dovecot] odd behaviour with antispam plugin

2008-04-21 Thread ZyanKLee

hey,

in my dspam database there has been some odd behaviour:

during training dspam had created an uid entry named by the local part 
of the email. i.e.:


user1

I use a virtual setup using dovecot, postfix and postfixadmin. On my 
first try I set up a database for dspam itself and there this happened.
After I couldn't figure out how to solve this, I merged the database 
into the postfixadmin database.


But using just the username for identifying email adresses is a bit 
critical within a virtual environment with multiple domains, isn't it?


if one would not merge the databases - how could he solve this problem?


Greetz, Zyan K Lee



signature.asc
Description: OpenPGP digital signature


Re: [Dovecot] antispam plugin ehancement

2008-04-21 Thread mouss

ML wrote:


Le 21 avr. 08 à 13:58, Johannes Berg a écrit :


On Mon, 2008-04-21 at 12:18 +0200, ML wrote:

I'm not a developper so I can't do it by myself,
# msgtag.spam
If this message was classified SPAM by mistake, please click here : 
http://example.com/dspam-retrain.cgi?sig=

{DSPAM_SIG}

# msgtag.nonspam
If this message should have been classified SPAM, please click here 
: http://example.com/dspam-retrain.cgi?sig=

{DSPAM_SIG}

I think a click is easier and faster than a forward, what do you think
of such an implementation ?


This has nothing at all to do with dovecot or the antispam plugin for
dovecot.



Ok, I've also read several articles since my post and it seem this is 
a DSPAM-only issue... sorry for the noise





and altering mail is generally a bad idea. it's also less simple than it 
sounds.


Re: [Dovecot] Moving Maildir email messages and backing things up.

2008-04-21 Thread mouss

Asheesh Laroia wrote:

On Mon, 21 Apr 2008, mouss wrote:


Karl Schmidt wrote:

mouss wrote:

karl wrote:
What would happen if I ran a script that did this:

mv ~/Maildir/.folder_one/cur/* ~/Maildir/.folder_two/cur/

My hunch is it might break things.


shouldn't break anything. if the MUA is caching "actions" (happens 
with thunderbird at least), then the view in the client will be 
different but this is not a big problem (at least for me).


So on the server I could run something simple like:

#!/bin/bash
bogofilter  -Ns  -B /home/karl/Maildir/.s-2B-scaned_spam
mv ~/Maildir/.s-2B-scaned_spam/cur/* ~/Maildir/.archived_spam/cur/


you'd better use an "axuiliary" directory:


mv $dir/.Junk.Trash/cur/* $dir/.Junk.Trash/todo/
$learn_spam $dir/.Junk.Trash/todo/  && mv $dir/.Junk.Trash/todo/* 
$dir/.Corpus.junk/cur/


I think you could get away with using the Maildir built-in "tmp" 
directory if you wanted for this.



no, because you don't want the mv .../tmp/* while mail is being delivered.

better use your own dir. it costs nothing.


Re: [Dovecot] Moving Maildir email messages and backing things up.

2008-04-21 Thread Asheesh Laroia

On Mon, 21 Apr 2008, mouss wrote:


Karl Schmidt wrote:

mouss wrote:

karl wrote:
What would happen if I ran a script that did this:

mv ~/Maildir/.folder_one/cur/* ~/Maildir/.folder_two/cur/

My hunch is it might break things.


shouldn't break anything. if the MUA is caching "actions" (happens with 
thunderbird at least), then the view in the client will be different but 
this is not a big problem (at least for me).


So on the server I could run something simple like:

#!/bin/bash
bogofilter  -Ns  -B /home/karl/Maildir/.s-2B-scaned_spam
mv ~/Maildir/.s-2B-scaned_spam/cur/* ~/Maildir/.archived_spam/cur/


you'd better use an "axuiliary" directory:


mv $dir/.Junk.Trash/cur/* $dir/.Junk.Trash/todo/
$learn_spam $dir/.Junk.Trash/todo/  && mv $dir/.Junk.Trash/todo/* 
$dir/.Corpus.junk/cur/


I think you could get away with using the Maildir built-in "tmp" directory 
if you wanted for this.


-- Asheesh.

--
Invest in physics -- own a piece of Dirac!


Re: [Dovecot] Moving Maildir email messages and backing things up.

2008-04-21 Thread mouss

Karl Schmidt wrote:

mouss wrote:

karl wrote:
What would happen if I ran a script that did this:

mv ~/Maildir/.folder_one/cur/* ~/Maildir/.folder_two/cur/

My hunch is it might break things.


shouldn't break anything. if the MUA is caching "actions" (happens 
with thunderbird at least), then the view in the client will be 
different but this is not a big problem (at least for me).


So on the server I could run something simple like:

#!/bin/bash
bogofilter  -Ns  -B /home/karl/Maildir/.s-2B-scaned_spam
mv ~/Maildir/.s-2B-scaned_spam/cur/* ~/Maildir/.archived_spam/cur/


you'd better use an "axuiliary" directory:


mv $dir/.Junk.Trash/cur/* $dir/.Junk.Trash/todo/
$learn_spam $dir/.Junk.Trash/todo/  && mv $dir/.Junk.Trash/todo/* 
$dir/.Corpus.junk/cur/


in short, first move the messages out of "imap" and then learn them.

check the right option for bogofilter so that it doesn't want the 
learned messages to stay in the same place.




Afterwards the MUA 'view' of the folder might not be correct until 
thunderbird re-caches the folder?


I just don't care since this is nothing more than a Junk folder!


Is there a command line tool that would allow for moving emails that 
would do it in a way that dovecot and the MUA would know to update 
caches? 


the MUA will eventually "update" its view. so this is not really a problem.


.,.,

If I have two users share a mail folder, I would think the MUA 'view' 
would also get behind. Is there a way to get thunderbird to re-cache a 
folder?


> but if it's for backup, why are you moving files?

I'm looking into three separate issues: automating spam training, 
backup issues, and sharing folders.


you'd better divide and conquer. you can find good solutions for each 
problem. if you try to find a single solution for all the problems, 
you'll have less choices and you run the risk to get it wrong.


I really wish I could see a list of the ~/Maildir indexing files and 
what they do - probably I don't need to know, but it might help me 
understand what problems I might run into restoring a backup.


metoo:) but given that I could copy mail from courier to dovecot, I took 
it that I don't care much about the "administrative" files.


Re: [Dovecot] Feature Request - starting dovecot, config file behavior

2008-04-21 Thread Charles Marcus

On 4/21/2008 1:15 PM, Scott Silva wrote:
So - how hard would it be to make dovecot simply accept the last 
defined setting read, instead of refusing to start?


That seems like a major change in function. To some admins it would be 
like suddenly having to drive your car from the other side. Maybe Timo 
will see it your way, but maybe not. And anything else that is parsing 
the config file might also get confused, like someones custom web 
frontend to config files.


If this major a change was added, it might be better to add it to the 
2.0 tree.


According to Timo - and I confirmed... this is the way it works NOW...

--

Best regards,

Charles


Re: [Dovecot] Feature Request - starting dovecot, config file behavior

2008-04-21 Thread Scott Silva

on 4-18-2008 3:43 AM Charles Marcus spake the following:

Hey Timo,

I was wondering how much trouble it would be to again emulate the way 
postfix does something - in this case, the way it reads its config file 
when starting up.


Current behavior:

Postfix:
If postfix encounters the same setting defined more than once, the last 
one wins.


Dovecot:
If dovecot encounters the same setting defined more than once it gives 
an error (also when using the 'dovecot -n' command).


I like to add all of my changes to the very bottom of the config file, 
but otherwise leave the config file as is... this makes it very easy 
when updating - I can easily keep all of the new default config file, 
and simply merge my customizations at the end.


So - how hard would it be to make dovecot simply accept the last defined 
setting read, instead of refusing to start?


Thanks much, and glad to have you back in action!

That seems like a major change in function. To some admins it would be like 
suddenly having to drive your car from the other side. Maybe Timo will see it 
your way, but maybe not. And anything else that is parsing the config file 
might also get confused, like someones custom web frontend to config files.


If this major a change was added, it might be better to add it to the 2.0 tree.



--
MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't



signature.asc
Description: OpenPGP digital signature


Re: [Dovecot] Moving Maildir email messages and backing things up.

2008-04-21 Thread Karl Schmidt

mouss wrote:

karl wrote:
What would happen if I ran a script that did this:

mv ~/Maildir/.folder_one/cur/* ~/Maildir/.folder_two/cur/

My hunch is it might break things.


shouldn't break anything. if the MUA is caching "actions" (happens with 
thunderbird at least), then the view in the client will be different but 
this is not a big problem (at least for me).


So on the server I could run something simple like:

#!/bin/bash
bogofilter  -Ns  -B /home/karl/Maildir/.s-2B-scaned_spam
mv ~/Maildir/.s-2B-scaned_spam/cur/* ~/Maildir/.archived_spam/cur/

Afterwards the MUA 'view' of the folder might not be correct until thunderbird re-caches the 
folder?


Is there a command line tool that would allow for moving emails that would do it in a way 
that dovecot and the MUA would know to update caches?


.,.,

If I have two users share a mail folder, I would think the MUA 'view' would also get behind. 
Is there a way to get thunderbird to re-cache a folder?


> but if it's for backup, why are you moving files?

I'm looking into three separate issues: automating spam training, backup issues, and sharing 
folders.


I really wish I could see a list of the ~/Maildir indexing files and what they do - probably 
I don't need to know, but it might help me understand what problems I might run into 
restoring a backup.



Where can I find a list of files in ~/Maildir/ and a note on what they 
are? (And similarly for a ~/Maildir/.folder)


I'm wondering if everything needs to be backed up, or if I can/should 
skip the indexes. What happens if any of these files changes during 
the backup? (I'm thinking I shouldn't have to stop dovecot for a backup).



Karl Schmidt EMail [EMAIL PROTECTED]
Transtronics, Inc. WEB http://xtronics.com
3209 West 9th StreetPh (785) 841-3089
Lawrence, KS 66049 FAX (785) 841-0434

Misdirection is the key to being a good magician. Magicians tell
you they are doing something while they do something quite
different; much like politicians -- except we can afford magicians.
-KPS




Re: [Dovecot] antispam plugin ehancement

2008-04-21 Thread Hugo Monteiro

ML wrote:


Le 21 avr. 08 à 12:49, Hugo Monteiro a écrit :



Never the less, it would be a nice idea, but i think you're 
forgetting the technicalities.  I assume that such http submission 
would be authenticated. Do you want to nag your users constantly with 
authentication popups, and windows opening, so they can retrain?





Why auth ? there's no auth when forwarding, mail with a known sig is 
retrain, mail with unknown sig is ignored, so I imagined that a click 
with valid sig is retrain and a click with unvalid sig is not. Any 
drawback to this ?





Actually that will depend on the way you have the forward retraining 
set. In my case, using qmail and simscan, i only allow retraining from 
authenticated smtp sessions. I'm guessing it's something that can be 
done with other MTAs too.



Cheers,

Hugo Monteiro.

--
ci.fct.unl.pt:~# cat .signature

Hugo Monteiro
Email: [EMAIL PROTECTED]
Telefone : +351 212948300 Ext.15307

Centro de Informática
Faculdade de Ciências e Tecnologia da
   Universidade Nova de Lisboa
Quinta da Torre   2829-516 Caparica   Portugal
Telefone: +351 212948596   Fax: +351 212948548
www.ci.fct.unl.pt [EMAIL PROTECTED]

ci.fct.unl.pt:~# _




signature.asc
Description: OpenPGP digital signature


[Dovecot] Dovecot timeout over NFS

2008-04-21 Thread Guy
Hi,

I'm using postfix with Dovecot 1.0.5 and getting the following errors
when a user moves a massive folders contents to trash (65000 or so
messages):
Apr 21 15:31:01 mink dovecot: IMAP([EMAIL PROTECTED]): Timeout while
waiting for lock for transaction log file
/virtual/store1/mail/d/dev2_aluminati.net/Maildir/.Deleted
Items/dovecot.index.log

Is there anything I can do to compensate for situations like this?

Thanks
Guy

-- 
Don't just do something...sit there!


Re: [Dovecot] antispam plugin ehancement

2008-04-21 Thread ML


Le 21 avr. 08 à 13:58, Johannes Berg a écrit :


On Mon, 2008-04-21 at 12:18 +0200, ML wrote:

I'm not a developper so I can't do it by myself,
# msgtag.spam
If this message was classified SPAM by mistake, please click here : 
http://example.com/dspam-retrain.cgi?sig=
{DSPAM_SIG}

# msgtag.nonspam
If this message should have been classified SPAM, please click  
here : http://example.com/dspam-retrain.cgi?sig=

{DSPAM_SIG}

I think a click is easier and faster than a forward, what do you  
think

of such an implementation ?


This has nothing at all to do with dovecot or the antispam plugin for
dovecot.



Ok, I've also read several articles since my post and it seem this is  
a DSPAM-only issue... sorry for the noise





Re: [Dovecot] antispam plugin ehancement

2008-04-21 Thread ML


Le 21 avr. 08 à 12:49, Hugo Monteiro a écrit :



Never the less, it would be a nice idea, but i think you're  
forgetting the technicalities.  I assume that such http submission  
would be authenticated. Do you want to nag your users constantly  
with authentication popups, and windows opening, so they can retrain?





Why auth ? there's no auth when forwarding, mail with a known sig is  
retrain, mail with unknown sig is ignored, so I imagined that a click  
with valid sig is retrain and a click with unvalid sig is not. Any  
drawback to this ?





Two possibilities for Outlook & Thunderbird are discussed here, on  
the last paragraph.

http://hmonteiro.net/howtos:qmail:qmail_plus_dspam#retraining_with_email_forwarding




Thank, I'll have a look.







Re: [Dovecot] antispam plugin ehancement

2008-04-21 Thread Johannes Berg
On Mon, 2008-04-21 at 12:18 +0200, ML wrote:
> I'm not a developper so I can't do it by myself, 
> # msgtag.spam
> If this message was classified SPAM by mistake, please click here : 
> http://example.com/dspam-retrain.cgi?sig= 
> {DSPAM_SIG}
> 
> # msgtag.nonspam
> If this message should have been classified SPAM, please click here : 
> http://example.com/dspam-retrain.cgi?sig= 
> {DSPAM_SIG}
> 
> I think a click is easier and faster than a forward, what do you think  
> of such an implementation ?

This has nothing at all to do with dovecot or the antispam plugin for
dovecot.

johannes


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


Re: [Dovecot] antispam plugin ehancement

2008-04-21 Thread Hugo Monteiro

ML wrote:
I'm not a developper so I can't do it by myself, but I wonder if it 
could be possible to use tagSpam and tagNospam DSPAM feature to ehance 
user's dspam lerning experience. I even don't know if this must be 
done by DSPAM itself or by dovecot, but let me explain :


The feature would be done by a signature replacement into tagSpam and 
tagNospam text, so the user would simply have to click on the link at 
end of the mail to learn DSPAM :


# dspam.conf
tagSpam on
tagNonspam on

# msgtag.spam
If this message was classified SPAM by mistake, please click here : 
http://example.com/dspam-retrain.cgi?sig={DSPAM_SIG}


# msgtag.nonspam
If this message should have been classified SPAM, please click here : 
http://example.com/dspam-retrain.cgi?sig={DSPAM_SIG}


I think a click is easier and faster than a forward, what do you think 
of such an implementation ?


Regards,
David.



If you're using IMAP, you don't need to forward. With the right setup 
you only have to move messages around from/to the IMAP server Spam folder.


If you're using POP, then usually that means forwarding messages. But 
there are already some plugins/extensions that provide simple Spam/Not 
Spam buttons, both for M$ Outlook and Thunderbird.


Never the less, it would be a nice idea, but i think you're forgetting 
the technicalities.  I assume that such http submission would be 
authenticated. Do you want to nag your users constantly with 
authentication popups, and windows opening, so they can retrain?



Two possibilities for Outlook & Thunderbird are discussed here, on the 
last paragraph.

http://hmonteiro.net/howtos:qmail:qmail_plus_dspam#retraining_with_email_forwarding



Cheers,

Hugo Monteiro.

--
ci.fct.unl.pt:~# cat .signature

Hugo Monteiro
Email: [EMAIL PROTECTED]
Telefone : +351 212948300 Ext.15307

Centro de Informática
Faculdade de Ciências e Tecnologia da
   Universidade Nova de Lisboa
Quinta da Torre   2829-516 Caparica   Portugal
Telefone: +351 212948596   Fax: +351 212948548
www.ci.fct.unl.pt [EMAIL PROTECTED]

ci.fct.unl.pt:~# _




signature.asc
Description: OpenPGP digital signature


[Dovecot] antispam plugin ehancement

2008-04-21 Thread ML
I'm not a developper so I can't do it by myself, but I wonder if it  
could be possible to use tagSpam and tagNospam DSPAM feature to ehance  
user's dspam lerning experience. I even don't know if this must be  
done by DSPAM itself or by dovecot, but let me explain :


The feature would be done by a signature replacement into tagSpam and  
tagNospam text, so the user would simply have to click on the link at  
end of the mail to learn DSPAM :


# dspam.conf
tagSpam on
tagNonspam on

# msgtag.spam
If this message was classified SPAM by mistake, please click here : http://example.com/dspam-retrain.cgi?sig= 
{DSPAM_SIG}


# msgtag.nonspam
If this message should have been classified SPAM, please click here : http://example.com/dspam-retrain.cgi?sig= 
{DSPAM_SIG}


I think a click is easier and faster than a forward, what do you think  
of such an implementation ?


Regards,
David.


Re: [Dovecot] mailtrain with dovecot antispam plugin

2008-04-21 Thread Johannes Berg

> I've managed to get it working with the following patch.
> There may be a better way, deeper in the code, to do it. Timo or 
> Johannes ... any sugestions?
> 
> --- dovecot-antispam/mailtrain.c2008-04-19 22:20:32.0 +0100
> +++ dovecot-antispam-qmail/mailtrain.c  2008-04-19 22:25:45.0 +0100
> @@ -274,7 +274,8 @@
> mail_storage_set_error(t->box->storage,
>"Failed to write line to 
> temp");
> goto failed_to_copy;
> -   }
> +   } else
> +   o_stream_send_str(outstream, "\n");

Interesting. I assume that i_stream_read_next_line() will strip out the
trailing [\r]\n and o_stream_send_str() doesn't add one. I would prefer
a patch using o_stream_sendv(), but I'm not sure whether to send \r\n
or \n.

johannes


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


Re: [Dovecot] Run command when moving messages

2008-04-21 Thread Johannes Berg
On Tue, 2008-04-22 at 23:05 +0200, Alexander Prinsier wrote:
> Hi,
> 
> The easiest way to do this seems to me is adapting the dspam backend of
> the antispam plugin to a generic "exec" backend, that calls some program.

In fact, there is such a backend, it's just called 'mailtrain'.

johannes


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


Re: [Dovecot] dovecot 1.1.rc4 -> 1.0.10 : Recent counter wrong

2008-04-21 Thread Laurent Papier
Le Fri, 18 Apr 2008 18:10:29 +0300
Timo Sirainen <[EMAIL PROTECTED]> écrit:

> On Apr 18, 2008, at 5:46 PM, Laurent Papier wrote:
> > Hi,
> > I have tested dovecot 1.1.rc4. I seems to works fine with my  
> > configuration.
> >
> > I have also tested the downgrade from 1.1rc4 to 1.0.10. It seems to  
> > work fine
> > too expect the following messages.
> >
> > Apr 15 14:46:44 dev dovecot: IMAP([EMAIL PROTECTED]): Fixing header  
> > counts in index /data/mail/gretel.com/l/o/lolo//dovecot.index:  
> > Recent counter wrong
> 
> This is expected. The recent handling is implemented differently in  
> v1.1.

This is a good news.
What is the I/O impact of this operation ? Does it mean a full rescan of the
mailbox (I use maildir format) ?

Thanks
-- 
Laurent Papier - 03 88 75 80 50
Admin. système - SdV Plurimedia - 


Re: [Dovecot] building a simple antispam plugin

2008-04-21 Thread Stephen Usher

Surely spam filtering/rejection should be done by the MTA, preferably during the
SMTP protocol conversation so as to prevent the black-holing of legitimate 
e-mails (i.e. the sender doesn't know it's not been delivered) and the 
prevention of joe-job collateral spamming?


It should also be noted that, at least in the UK, the act of an MTA at the final 
delivery mail server accepting an e-mail means that it's legally been received. 
Hence, any legal document which the MTA accepts has been deemed to have been 
legally served even if no human ever reads it.


Please be careful, e-mail administration can be a legal minefield!

Steve
--
---
Computer Systems Administrator,E-Mail:[EMAIL PROTECTED]
Department of Earth Sciences, Tel:-  +44 (0)1865 282110
University of Oxford, Parks Road, Oxford, UK. Fax:-  +44 (0)1865 272072