[Dovecot] "pop before smtp" dovecot.conf
Bonjour a Tous,
I would like to generate (on the fly) a list "popbeforesmtp"
when dovecot POP/IMAP authentication succeed.
Intended Format will/should be such as:
'timestamp_in_second' user_id remote_ip
one user per line.
My guess we have all the needed information within dovecot
to make such list.
But I have seen no way to 'trick' dovecot (dovecot-1.0.alpha3)
to do it...
Could someone on the list able to give me some advices?
I know there is Perl script to scan maillog file and
extract information from collected data, but this
seem to me 'a kind of the very last option'....
May be the trick can be achieved using 'executable' function?
Ideally I'll like to have an entry in dovecot.conf, like...
popbeforesmtp=/somewhere/in/the/tree
A bientot
========================================================================== Jean-Marc Pigeon Internet: Jean-Marc.Pigeon@safe.ca SAFE Inc. Phone: (514) 493-4280 Fax: (514) 493-1946 REGULUS, a real time accounting/billing package for ISP REGULUS' Home base <"http://www.regulus.safe.ca">
Jean-Marc Pigeon wrote:
I would like to generate (on the fly) a list "popbeforesmtp" when dovecot POP/IMAP authentication succeed.
You should really be using AUTH SMTP, which all modern mail clients and SMTP servers support and which obviates the need for such hackery...
John
-- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5748
Bonjour John Peacock,
Jean-Marc Pigeon wrote:
I would like to generate (on the fly) a list "popbeforesmtp" when dovecot POP/IMAP authentication succeed.
You should really be using AUTH SMTP, which all modern mail clients and SMTP servers support and which obviates the need for such hackery... I Fully Agree with you and it was my first reaction, but... Experience show 'simple' user are somewhat lost with "yet another authentication configuration needed when you are sending E-mail from outside the relayed network"... popbeforesmtp give us some flexibility...
A bientot
========================================================================== Jean-Marc Pigeon Internet: Jean-Marc.Pigeon@safe.ca SAFE Inc. Phone: (514) 493-4280 Fax: (514) 493-1946 REGULUS, a real time accounting/billing package for ISP REGULUS' Home base <"http://www.regulus.safe.ca">
On Wed, Dec 07, 2005 at 11:57:06AM -0500, Jean-Marc Pigeon wrote:
Bonjour a Tous,
I know there is Perl script to scan maillog file and extract information from collected data, but this seem to me 'a kind of the very last option'....
May be the trick can be achieved using 'executable' function?
Have you checked the Wiki?
http://wiki.dovecot.org/moin.cgi/PopBSMTPAndDovecot
There's a script that's used for SQL that whould be trivial to do whatever you like with.
HTH
Bonjour Lorens,
On Wed, Dec 07, 2005 at 11:57:06AM -0500, Jean-Marc Pigeon wrote:
Bonjour a Tous,
I know there is Perl script to scan maillog file and extract information from collected data, but this seem to me 'a kind of the very last option'....
May be the trick can be achieved using 'executable' function?
Have you checked the Wiki?
Yes, seen it (it was the "last option"), I
am a little bit reluctant to have a daemon using its
time to scan maillog file and extract information which
are otherwise already available within dovecot.
Thanks for your help.
There's a script that's used for SQL that whould be trivial to do whatever you like with.
HTH
A bientot
========================================================================== Jean-Marc Pigeon Internet: Jean-Marc.Pigeon@safe.ca SAFE Inc. Phone: (514) 493-4280 Fax: (514) 493-1946 REGULUS, a real time accounting/billing package for ISP REGULUS' Home base <"http://www.regulus.safe.ca">
On Wed, Dec 07, 2005 at 01:32:21PM -0500, Jean-Marc Pigeon wrote:
Bonjour Lorens,
On Wed, Dec 07, 2005 at 11:57:06AM -0500, Jean-Marc Pigeon wrote:
Bonjour a Tous,
I know there is Perl script to scan maillog file and extract information from collected data, but this seem to me 'a kind of the very last option'....
May be the trick can be achieved using 'executable' function?
Have you checked the Wiki?
Yes, seen it (it was the "last option"), I am a little bit reluctant to have a daemon using its time to scan maillog file and extract information which are otherwise already available within dovecot.
Yes. I dislike the multimegabyte perl daemon doing a tail on log files too. That is why I indicated that
There's a script that's used for SQL that whould be trivial to do whatever you like with.
That script could be just
#!/bin/sh
echo $IP `date` >> /var/log/dovecot
Bonjour Lorens,
Yes, seen it (it was the "last option"), I am a little bit reluctant to have a daemon using its time to scan maillog file and extract information which are otherwise already available within dovecot.
Yes. I dislike the multimegabyte perl daemon doing a tail on log files too. That is why I indicated that
There's a script that's used for SQL that whould be trivial to do whatever you like with.
That script could be just
#!/bin/sh echo $IP
date
>> /var/log/dovecot
Many thanks, Seen PopBSMTPAndDovecot this morning but
mixed it up with PopRelay and lack to see how it
was different!
A bientot
========================================================================== Jean-Marc Pigeon Internet: Jean-Marc.Pigeon@safe.ca SAFE Inc. Phone: (514) 493-4280 Fax: (514) 493-1946 REGULUS, a real time accounting/billing package for ISP REGULUS' Home base <"http://www.regulus.safe.ca">
participants (3)
-
Jean-Marc Pigeon
-
John Peacock
-
Lorens