Re: [vchkpw] Dovecot-lda for vpopmail

2012-09-24 Thread Alessio Cecchi

Il 24/09/2012 18:53, Rick Romero ha scritto:


Quoting Alessio Cecchi :


Il 24/09/2012 17:45, Rick Romero ha scritto:


Quoting Alessio Cecchi :


Il 24/09/2012 16:57, Rick Romero ha scritto:


Quoting Alessio Cecchi :


Il 24/09/2012 15:34, Rick Romero ha scritto:

Heres a patch for 5.4.17 - I've been running this for a while now.

Basically, run the deliver command after the tempfile is created 
(to verify delivery and quota) then unlink the tempfile and 
return.  I tried to make it all fancy with build options, then 
figured I was the only one who would do it this wacky way.  :)


This version passes the home directory to deliver, so you don't 
need to run the dovecot lookup service.
I also had to specify the timezone to get the correct timestamp 
for some reason.


Rick



Thanks Rick!

your patch is very helpful for me, also passes the HOME to 
deliver is a good idea.


Another useful options, for delivery, will be to add the 
"extension" via "-m mailbox" so dovecot will deliver the email 
directly in this folder (if vpopmail is build with 
enable-qmail-ext).


An email to alessio-vpopml@ will be delivery to the "vpopml" folder.

In the enviroment, what is the variable for the "extension" 
(vpopml)?


There is none at the point deliver is called - by the time it gets 
called, all the qmail-ext work has been done so the HOME directory 
is the correct user's Maildir directory.  'deliver' just needs to 
drop the email into that location and update the indexes.  That's 
what I was shooting for.  Besides using qmail-ext, I still have 
old vacation and forwards that I didn't want to worry about. 
vdelivermail still handles all of that.  I just wanted deliver to 
update indexes on delivery.


I hadn't thought about it - but the version of Dovecot on my 
front-end servers that do delivery is still in the 1.2 series.  So 
there may be some slight differences if you're running 2.0 deliver.


Rick


I'm using dovecot 2.1 with native auth-vpopmail. With 1.2 native 
auth-vpopmail have some limits.


My idea is to run dovecot-lda like:

/usr/lib/dovecot/deliver -d $EXT@$HOST -m $Extension

where if original recipient is alessio-li...@cecchi.it Extension is 
"lists", but in vpopmail environment how is called "Extension" (if 
is present)?


I don't think that's right - according to the Dovecot Wiki -m is 
Mailbox.  Like INBOX or Trash, etc..

http://wiki2.dovecot.org/LDA


Yes but, with Postfix for example, you can set:

/usr/lib/dovecot/deliver -d ${user}@${domain} -m ${extension}

so if you receive an email to rick-vch...@domain.com (or 
rick+vch...@domain.com according to your recipient_delimiter) dovecot 
will delivery the email in the Mailbox "vchkpw" and this is very useful.


I would like to reproduce this behavior with qmail.


Ahh I see what you mean.  In qmail the "-ext" doesn't have a specific 
destination, it's just a unique address.  If you are going to assume 
that "-blah" will be a specific mailbox, you could use the EXT2 variable.
Here's a list of variables: 
http://ipucu.enderunix.org/view.php?id=1929&lang=en


Rick


:-)

Thank you!

--
Alessio Cecchi is:
@ ILS -> http://www.linux.it/~alessice/
on LinkedIn -> http://www.linkedin.com/in/alessice
Assistenza Sistemi GNU/Linux -> http://www.cecchi.biz/
@ PLUG -> ex-Presidente, adesso senatore a vita, http://www.prato.linux.it


!DSPAM:5060914834211168415842!



Re: [vchkpw] Dovecot-lda for vpopmail

2012-09-24 Thread Rick Romero


Quoting Alessio Cecchi :


Il 24/09/2012 17:45, Rick Romero ha scritto:


Quoting Alessio Cecchi :


Il 24/09/2012 16:57, Rick Romero ha scritto:


Quoting Alessio Cecchi :


Il 24/09/2012 15:34, Rick Romero ha scritto:

Heres a patch for 5.4.17 - I've been running this for a while now.

Basically, run the deliver command after the tempfile is  
created (to verify delivery and quota) then unlink the tempfile  
and return.  I tried to make it all fancy with build options,  
then figured I was the only one who would do it this wacky way.  
 :)


This version passes the home directory to deliver, so you don't  
need to run the dovecot lookup service.
I also had to specify the timezone to get the correct timestamp  
for some reason.


Rick



Thanks Rick!

your patch is very helpful for me, also passes the HOME to  
deliver is a good idea.


Another useful options, for delivery, will be to add the  
"extension" via "-m mailbox" so dovecot will deliver the email  
directly in this folder (if vpopmail is build with  
enable-qmail-ext).


An email to alessio-vpopml@ will be delivery to the "vpopml" folder.

In the enviroment, what is the variable for the "extension" (vpopml)?


There is none at the point deliver is called - by the time it  
gets called, all the qmail-ext work has been done so the HOME  
directory is the correct user's Maildir directory.  'deliver'  
just needs to drop the email into that location and update the  
indexes.  That's what I was shooting for.  Besides using  
qmail-ext, I still have old vacation and forwards that I didn't  
want to worry about. vdelivermail still handles all of that.  I  
just wanted deliver to update indexes on delivery.


I hadn't thought about it - but the version of Dovecot on my  
front-end servers that do delivery is still in the 1.2 series.   
So there may be some slight differences if you're running 2.0  
deliver.


Rick


I'm using dovecot 2.1 with native auth-vpopmail. With 1.2 native  
auth-vpopmail have some limits.


My idea is to run dovecot-lda like:

/usr/lib/dovecot/deliver -d $EXT@$HOST -m $Extension

where if original recipient is alessio-li...@cecchi.it Extension  
is "lists", but in vpopmail environment how is called "Extension"  
(if is present)?


I don't think that's right - according to the Dovecot Wiki -m is  
Mailbox.  Like INBOX or Trash, etc..

http://wiki2.dovecot.org/LDA


Yes but, with Postfix for example, you can set:

/usr/lib/dovecot/deliver -d ${user}@${domain} -m ${extension}

so if you receive an email to rick-vch...@domain.com (or  
rick+vch...@domain.com according to your recipient_delimiter)  
dovecot will delivery the email in the Mailbox "vchkpw" and this is  
very useful.


I would like to reproduce this behavior with qmail.


Ahh I see what you mean.  In qmail the "-ext" doesn't have a specific  
destination, it's just a unique address.  If you are going to assume  
that "-blah" will be a specific mailbox, you could use the EXT2  
variable.
Here's a list of variables:   
http://ipucu.enderunix.org/view.php?id=1929&lang=en


Rick



!DSPAM:50608ffa34219032040418!



Re: [vchkpw] Dovecot-lda for vpopmail

2012-09-24 Thread Alessio Cecchi

Il 24/09/2012 17:45, Rick Romero ha scritto:


Quoting Alessio Cecchi :


Il 24/09/2012 16:57, Rick Romero ha scritto:


Quoting Alessio Cecchi :


Il 24/09/2012 15:34, Rick Romero ha scritto:

Heres a patch for 5.4.17 - I've been running this for a while now.

Basically, run the deliver command after the tempfile is created 
(to verify delivery and quota) then unlink the tempfile and 
return.  I tried to make it all fancy with build options, then 
figured I was the only one who would do it this wacky way.  :)


This version passes the home directory to deliver, so you don't 
need to run the dovecot lookup service.
I also had to specify the timezone to get the correct timestamp 
for some reason.


Rick



Thanks Rick!

your patch is very helpful for me, also passes the HOME to deliver 
is a good idea.


Another useful options, for delivery, will be to add the 
"extension" via "-m mailbox" so dovecot will deliver the email 
directly in this folder (if vpopmail is build with enable-qmail-ext).


An email to alessio-vpopml@ will be delivery to the "vpopml" folder.

In the enviroment, what is the variable for the "extension" (vpopml)?


There is none at the point deliver is called - by the time it gets 
called, all the qmail-ext work has been done so the HOME directory 
is the correct user's Maildir directory.  'deliver' just needs to 
drop the email into that location and update the indexes.  That's 
what I was shooting for.  Besides using qmail-ext, I still have old 
vacation and forwards that I didn't want to worry about. 
vdelivermail still handles all of that.  I just wanted deliver to 
update indexes on delivery.


I hadn't thought about it - but the version of Dovecot on my 
front-end servers that do delivery is still in the 1.2 series.  So 
there may be some slight differences if you're running 2.0 deliver.


Rick


I'm using dovecot 2.1 with native auth-vpopmail. With 1.2 native 
auth-vpopmail have some limits.


My idea is to run dovecot-lda like:

/usr/lib/dovecot/deliver -d $EXT@$HOST -m $Extension

where if original recipient is alessio-li...@cecchi.it Extension is 
"lists", but in vpopmail environment how is called "Extension" (if is 
present)?


I don't think that's right - according to the Dovecot Wiki -m is 
Mailbox.  Like INBOX or Trash, etc..

http://wiki2.dovecot.org/LDA


Yes but, with Postfix for example, you can set:

/usr/lib/dovecot/deliver -d ${user}@${domain} -m ${extension}

so if you receive an email to rick-vch...@domain.com (or 
rick+vch...@domain.com according to your recipient_delimiter) dovecot 
will delivery the email in the Mailbox "vchkpw" and this is very useful.


I would like to reproduce this behavior with qmail.

--
Alessio Cecchi is:
@ ILS -> http://www.linux.it/~alessice/
on LinkedIn -> http://www.linkedin.com/in/alessice
Assistenza Sistemi GNU/Linux -> http://www.cecchi.biz/
@ PLUG -> ex-Presidente, adesso senatore a vita, http://www.prato.linux.it


!DSPAM:50608ed634211858513917!



Re: [vchkpw] Dovecot-lda for vpopmail

2012-09-24 Thread Rick Romero


Quoting Alessio Cecchi :


Il 24/09/2012 16:57, Rick Romero ha scritto:


Quoting Alessio Cecchi :


Il 24/09/2012 15:34, Rick Romero ha scritto:

Heres a patch for 5.4.17 - I've been running this for a while now.

Basically, run the deliver command after the tempfile is created  
(to verify delivery and quota) then unlink the tempfile and  
return.  I tried to make it all fancy with build options, then  
figured I was the only one who would do it this wacky way.  :)


This version passes the home directory to deliver, so you don't  
need to run the dovecot lookup service.
I also had to specify the timezone to get the correct timestamp  
for some reason.


Rick



Thanks Rick!

your patch is very helpful for me, also passes the HOME to deliver  
is a good idea.


Another useful options, for delivery, will be to add the  
"extension" via "-m mailbox" so dovecot will deliver the email  
directly in this folder (if vpopmail is build with  
enable-qmail-ext).


An email to alessio-vpopml@ will be delivery to the "vpopml" folder.

In the enviroment, what is the variable for the "extension" (vpopml)?


There is none at the point deliver is called - by the time it gets  
called, all the qmail-ext work has been done so the HOME directory  
is the correct user's Maildir directory.  'deliver' just needs to  
drop the email into that location and update the indexes.  That's  
what I was shooting for.  Besides using qmail-ext, I still have old  
vacation and forwards that I didn't want to worry about.  
vdelivermail still handles all of that.  I just wanted deliver to  
update indexes on delivery.


I hadn't thought about it - but the version of Dovecot on my  
front-end servers that do delivery is still in the 1.2 series.  So  
there may be some slight differences if you're running 2.0 deliver.


Rick


I'm using dovecot 2.1 with native auth-vpopmail. With 1.2 native  
auth-vpopmail have some limits.


My idea is to run dovecot-lda like:

/usr/lib/dovecot/deliver -d $EXT@$HOST -m $Extension

where if original recipient is alessio-li...@cecchi.it Extension is  
"lists", but in vpopmail environment how is called "Extension" (if  
is present)?


I don't think that's right - according to the Dovecot Wiki -m is  
Mailbox.  Like INBOX or Trash, etc..

http://wiki2.dovecot.org/LDA

If you wish to use Dovecot's mailbox lookup, you can just use:
/usr/lib/dovecot/deliver -d $EXT@$HOST

I don't use thatt, what's why I pass the HOME variable.

Rick



!DSPAM:5060803034217488412077!



Re: [vchkpw] Dovecot-lda for vpopmail

2012-09-24 Thread Alessio Cecchi

Il 24/09/2012 16:57, Rick Romero ha scritto:


Quoting Alessio Cecchi :


Il 24/09/2012 15:34, Rick Romero ha scritto:

Heres a patch for 5.4.17 - I've been running this for a while now.

Basically, run the deliver command after the tempfile is created (to 
verify delivery and quota) then unlink the tempfile and return.  I 
tried to make it all fancy with build options, then figured I was 
the only one who would do it this wacky way.  :)


This version passes the home directory to deliver, so you don't need 
to run the dovecot lookup service.
I also had to specify the timezone to get the correct timestamp for 
some reason.


Rick



Thanks Rick!

your patch is very helpful for me, also passes the HOME to deliver is 
a good idea.


Another useful options, for delivery, will be to add the "extension" 
via "-m mailbox" so dovecot will deliver the email directly in this 
folder (if vpopmail is build with enable-qmail-ext).


An email to alessio-vpopml@ will be delivery to the "vpopml" folder.

In the enviroment, what is the variable for the "extension" (vpopml)?


There is none at the point deliver is called - by the time it gets 
called, all the qmail-ext work has been done so the HOME directory is 
the correct user's Maildir directory.  'deliver' just needs to drop 
the email into that location and update the indexes.  That's what I 
was shooting for.  Besides using qmail-ext, I still have old vacation 
and forwards that I didn't want to worry about. vdelivermail still 
handles all of that.  I just wanted deliver to update indexes on 
delivery.


I hadn't thought about it - but the version of Dovecot on my front-end 
servers that do delivery is still in the 1.2 series.  So there may be 
some slight differences if you're running 2.0 deliver.


Rick


I'm using dovecot 2.1 with native auth-vpopmail. With 1.2 native 
auth-vpopmail have some limits.


My idea is to run dovecot-lda like:

/usr/lib/dovecot/deliver -d $EXT@$HOST -m $Extension

where if original recipient is alessio-li...@cecchi.it Extension is 
"lists", but in vpopmail environment how is called "Extension" (if is 
present)?


Thanks

--
Alessio Cecchi is:
@ ILS -> http://www.linux.it/~alessice/
on LinkedIn -> http://www.linkedin.com/in/alessice
Assistenza Sistemi GNU/Linux -> http://www.cecchi.biz/
@ PLUG -> ex-Presidente, adesso senatore a vita, http://www.prato.linux.it


!DSPAM:50607a9b34217963441700!



Re: [vchkpw] dovecot and vpopmail

2009-11-21 Thread Christian Lerrahn
Hi Pavel,
> Friday, November 20, 2009, 11:40:28 AM, you wrote:
> 
> CL> Hi,
> CL> I'm trying to set up dovecot with vpopmail on a Debian Lenny
> CL> system. I have modified the package from dotdeb.org to use MySQL.
> CL> Now, that gives me binaries that work fine (i.e. vchkpw, vadd...,
> CL> etc. work fine) but dovecot just doesn't want to do the
> CL> authentication right.
> 
> CL> I tried a web search but I only found posts describing the same
> CL> problem never a solution.
> 
> CL> Cheers,
> CL> Christian
> 
> Sorry if this solution is unacceptable, but why bother with packages?
> Both vpopmail and dovecot compile nicely from sources and you can tune
> them to your liking.

Yeah, I've thought about that. However, I like keeping the development
packages off my production machines and for that packages are usually
the most convenient. Funny enough, I've tried my packages on another
Debian machine now which had the dev packages installed and everything
seems to work there. So, I suppose it's some kind of weird dependency
problem.

Cheers,
Christian

!DSPAM:4b08ebec32711000553508!



Re: [vchkpw] dovecot and vpopmail

2009-11-20 Thread Pavel V. Yanchenko
Hello Christian,

Friday, November 20, 2009, 11:40:28 AM, you wrote:

CL> Hi,
CL> I'm trying to set up dovecot with vpopmail on a Debian Lenny system. I
CL> have modified the package from dotdeb.org to use MySQL. Now, that gives
CL> me binaries that work fine (i.e. vchkpw, vadd..., etc. work fine) but
CL> dovecot just doesn't want to do the authentication right.

CL> I tried a web search but I only found posts describing the same problem
CL> never a solution.

CL> Cheers,
CL> Christian

Sorry if this solution is unacceptable, but why bother with packages?
Both vpopmail and dovecot compile nicely from sources and you can tune
them to your liking.


-- 
Best regards,
 Pavelmailto:bal...@msmu.ru


!DSPAM:4b06608832717179362923!



Re: [vchkpw] dovecot LDA with vpopmail

2009-07-18 Thread Tren Blackburn
I know one this has been something that's been batted around a few times now. 
Last I recall the developer (and I'm sorry, I can't remember his name off of 
the top of my head) was working on some custom modifications to vdelivermail. 
Unfortunately what is required is fairly complex. The pipe method while 
functional is potentially dangerous. Especially when you start considering 
nesting them. If something breaks in the middle, your mail is lost due to how 
error codes are handled between pipes. I think he was working with the actual 
file descriptors being passedbut I'll admit my memory is fuzzy, and it got 
beyond my understanding near the end.

Just search the archives. The full thread should be there. 

HTH,

Tren

- Original Message -
From: news 
To: vchkpw@inter7.com 
Sent: Sat Jul 18 04:13:56 2009
Subject: [vchkpw] dovecot LDA with vpopmail

hi

i am using on my qmail/vpopmail installation dovecot as IMAP/POP3
server. at the moment i have only some of the users having their mail
filtered through sieve/delivered to the mailbox by dovecot LDA. for this
users i have added a line to their .qmail-default file file as written
on http://wiki.dovecot.org/LDA/Qmail
-->   |/var/qmail/bin/preline -f /usr/lib/dovecot/deliver -d $...@$user

this works like a charm. but i would like to have dovecots LDA used for
ALL my users and i haven't found a way to activate it for EACH user
without changing/creating every users .qmail-default file.

as i understand, vdelivermail is delivering the mails to the users
mailboxes? so i would have to "say" to vdelivermail that it should use
dovecots deliver, or what is the right way to do that? or is it just not
possible?

greets & thanks for help
   KoS





!DSPAM:4a61c60432712200319617!


Re: [vchkpw] Dovecot config

2008-12-23 Thread Camille Ollié

Rick Widmer a écrit :



Camille Ollié wrote:

Hello,

i have installed dovecot with apt-get install dovecot (and all 
dependicies). I want to use dovecot with vpopmail authentification, 
but all i have found with google doesn't help me.
Someone can help me with the dovecot configuration ? I think i have 
forget something, but i don't find what.


I bet you end up having to compile it because they don't compile in 
vpopmail authentication...  :(




This is a snippet from a future version of Bill Shupp's toaster for 
installing Dovecot.  It is only tested on OpenSuSE 11.0, but should be 
close for others.  You may have to do things a little differently 
installing the run file and the links in the rc*.d directories.  The 
configuration file patch and runfile for SuSE Linux are attached.



Rick



Hi rick,

thanks for your help, i will try it after chrismas.

--
Camille Ollié
www.forum-pc.net / www.scoot-boost.com
Elfrier  @ EU-Kirin Tor

!DSPAM:495113ed32311027919742!



Re: [vchkpw] Dovecot config

2008-12-22 Thread LUIZ CARLOS GOMES AMERICO
2008/12/22 Rick Widmer :
>
>
> Camille Ollié wrote:
>>
>> Hello,
>>
>> i have installed dovecot with apt-get install dovecot (and all
>> dependicies). I want to use dovecot with vpopmail authentification, but all
>> i have found with google doesn't help me.
>> Someone can help me with the dovecot configuration ? I think i have forget
>> something, but i don't find what.
>
> I bet you end up having to compile it because they don't compile in vpopmail
> authentication...  :(
>
>
>
> This is a snippet from a future version of Bill Shupp's toaster for
> installing Dovecot.  It is only tested on OpenSuSE 11.0, but should be close
> for others.  You may have to do things a little differently installing the
> run file and the links in the rc*.d directories.  The configuration file
> patch and runfile for SuSE Linux are attached.
>
>
> Rick
>
> ===
>
>
> Dovecot IMAP
>
> Dovecot will supply IMAP/SIMAP access.
>
> Info: http://www.dovecot.org/
>
> Install:
>
>cd /var/src
>tar -xzf tar/dovecot-1.1.4.tar.gz
>cd dovecot-1.1.4
>
>./configure --with-vpopmail --without-pop3d \
>--without-passwd --without-pam \
>--without-passwd-file --without-shadow \
>--without-checkpassword --without-deliver
>
>make
>make install
>
>
> Setup SSL certificate:
>
>cd doc
>
>Edit the file dovecot-openssl.conf and customize it for your site. Your
> answers here should be nearly the same as the ones for the qmail certificate
> except for the fact that this is used by the imap server and the previous
> certificate is used by the mail server.
>
>
> Create SSL certificate:
>
>mkdir -p /etc/ssl/cert
>chmod 755 /etc/ssl/cert
>mkdir -p /etc/ssl/private
>chmod 700 /etc/ssl/private
>chmod 700 mkcert.sh
>./mkcert.sh
>
>
> Configure:
>
>cd /usr/local/etc
>cp dovecot-example.conf dovecot.conf
>patch -p0 < /var/src/tar/dovecot-1.1.4-conf.patch
>
>
> Setup run files for SuSE systems
>
>cp /var/src/tar/dovecot-1.1.4.run /etc/rc.d/dovecot
>chmod 755 /etc/rc.d/dovecot
>ln -s /etc/rc.d/dovecot /usr/sbin/rcdovecot
>ln -s /etc/rc.d/dovecot /usr/bin/dovecotctl
>cd /etc/rc.d
>insserv dovecot
>
># Start Dovecot IMAP server
>rcdovecot start
>
>
> 
>
> --- dovecot-example.conf2008-10-27 13:57:52.0 -0600
> +++ dovecot.conf2008-10-27 14:19:09.0 -0600
> @@ -344,8 +344,8 @@
>  # to make sure that users can't log in as daemons or other system users.
>  # Note that denying root logins is hardcoded to dovecot binary and can't
>  # be done even if first_valid_uid is set to 0.
> -#first_valid_uid = 500
> -#last_valid_uid = 0
> +first_valid_uid = 89
> +last_valid_uid  = 89
>
>  # Valid GID range for users, defaults to non-root/wheel. Users having
>  # non-valid GID as primary group ID aren't allowed to log in. If user
> @@ -700,7 +700,7 @@
>  # Authentication cache size in kilobytes. 0 means it's disabled.
>  # Note that bsdauth, PAM and vpopmail require cache_key to be set for
> caching
>  # to be used.
> -#auth_cache_size = 0
> +auth_cache_size = 1024
>  # Time to live in seconds for cached data. After this many seconds the
> cached
>  # record is no longer used, *except* if the main database lookup returns
>  # internal failure. We also try to handle password changes automatically:
> If
> @@ -825,7 +825,7 @@
>   # database (passwd usually), you can use static userdb.
>   # REMEMBER: You'll need /etc/pam.d/dovecot file created for PAM
>   # authentication to actually work. 
> -  passdb pam {
> +#  passdb pam {
> # [session=yes] [setcred=yes] [failure_show_msg=yes]
> # [cache_key=] []
> #
> @@ -854,7 +854,7 @@
> #   args = session=yes %Ls
> #   args = cache_key=%u dovecot
> #args = dovecot
> -  }
> +#  }
>
>   # System users (NSS, /etc/passwd, or similiar)
>   # In many systems nowadays this uses Name Service Switch, which is
> @@ -908,12 +908,12 @@
>   #}
>
>   # vpopmail authentication 
> -  #passdb vpopmail {
> +  passdb vpopmail {
> # [cache_key=] - See cache_key in PAM for explanation.
> # [quota_template=] - %q expands to Maildir++ quota
> #   (eg. quota_template=quota_rule=*:backend=%q)
> #args =
> -  #}
> +  }
>
>   #
>   # User database specifies where mails are located and what user/group IDs
> @@ -925,14 +925,14 @@
>   # System users (NSS, /etc/passwd, or similiar). In many systems nowadays
> this
>   # uses Name Service Switch, which is configured in /etc/nsswitch.conf.
>   # 
> -  userdb passwd {
> +#  userdb passwd {
> # [blocking=yes] - By default the lookups are done in the main
> dovecot-auth
> # process. This setting causes the lookups to be done in auth worker
> # proceses. Useful with remote NSS lookups that may block.
> # NOTE: Be sure to use this setting with nss_ldap or users might get
> # logged in as each others!
> #args =
> -  }
> +#  }
>
>   # passwd-like file with specifi

Re: [vchkpw] Dovecot config

2008-12-22 Thread Rick Widmer



Camille Ollié wrote:

Hello,

i have installed dovecot with apt-get install dovecot (and all 
dependicies). I want to use dovecot with vpopmail authentification, but 
all i have found with google doesn't help me.
Someone can help me with the dovecot configuration ? I think i have 
forget something, but i don't find what.


I bet you end up having to compile it because they don't compile in 
vpopmail authentication...  :(




This is a snippet from a future version of Bill Shupp's toaster for 
installing Dovecot.  It is only tested on OpenSuSE 11.0, but should be 
close for others.  You may have to do things a little differently 
installing the run file and the links in the rc*.d directories.  The 
configuration file patch and runfile for SuSE Linux are attached.



Rick

===


Dovecot IMAP

Dovecot will supply IMAP/SIMAP access.

Info: http://www.dovecot.org/

Install:

cd /var/src
tar -xzf tar/dovecot-1.1.4.tar.gz
cd dovecot-1.1.4

./configure --with-vpopmail --without-pop3d \
--without-passwd --without-pam \
--without-passwd-file --without-shadow \
--without-checkpassword --without-deliver

make
make install


Setup SSL certificate:

cd doc

Edit the file dovecot-openssl.conf and customize it for your site. 
Your answers here should be nearly the same as the ones for the qmail 
certificate except for the fact that this is used by the imap server and 
the previous certificate is used by the mail server.



Create SSL certificate:

mkdir -p /etc/ssl/cert
chmod 755 /etc/ssl/cert
mkdir -p /etc/ssl/private
chmod 700 /etc/ssl/private
chmod 700 mkcert.sh
./mkcert.sh


Configure:

cd /usr/local/etc
cp dovecot-example.conf dovecot.conf
patch -p0 < /var/src/tar/dovecot-1.1.4-conf.patch


Setup run files for SuSE systems

cp /var/src/tar/dovecot-1.1.4.run /etc/rc.d/dovecot
chmod 755 /etc/rc.d/dovecot
ln -s /etc/rc.d/dovecot /usr/sbin/rcdovecot
ln -s /etc/rc.d/dovecot /usr/bin/dovecotctl
cd /etc/rc.d
insserv dovecot

# Start Dovecot IMAP server
rcdovecot start


!DSPAM:494fe9a83231112544!
--- dovecot-example.conf2008-10-27 13:57:52.0 -0600
+++ dovecot.conf2008-10-27 14:19:09.0 -0600
@@ -344,8 +344,8 @@
 # to make sure that users can't log in as daemons or other system users.
 # Note that denying root logins is hardcoded to dovecot binary and can't
 # be done even if first_valid_uid is set to 0.
-#first_valid_uid = 500
-#last_valid_uid = 0
+first_valid_uid = 89 
+last_valid_uid  = 89
 
 # Valid GID range for users, defaults to non-root/wheel. Users having
 # non-valid GID as primary group ID aren't allowed to log in. If user
@@ -700,7 +700,7 @@
 # Authentication cache size in kilobytes. 0 means it's disabled.
 # Note that bsdauth, PAM and vpopmail require cache_key to be set for caching
 # to be used.
-#auth_cache_size = 0
+auth_cache_size = 1024 
 # Time to live in seconds for cached data. After this many seconds the cached
 # record is no longer used, *except* if the main database lookup returns
 # internal failure. We also try to handle password changes automatically: If
@@ -825,7 +825,7 @@
   # database (passwd usually), you can use static userdb.
   # REMEMBER: You'll need /etc/pam.d/dovecot file created for PAM
   # authentication to actually work. 
-  passdb pam {
+#  passdb pam {
 # [session=yes] [setcred=yes] [failure_show_msg=yes]
 # [cache_key=] []
 #
@@ -854,7 +854,7 @@
 #   args = session=yes %Ls
 #   args = cache_key=%u dovecot
 #args = dovecot
-  }
+#  }
 
   # System users (NSS, /etc/passwd, or similiar)
   # In many systems nowadays this uses Name Service Switch, which is
@@ -908,12 +908,12 @@
   #}
 
   # vpopmail authentication 
-  #passdb vpopmail {
+  passdb vpopmail {
 # [cache_key=] - See cache_key in PAM for explanation.
 # [quota_template=] - %q expands to Maildir++ quota
 #   (eg. quota_template=quota_rule=*:backend=%q)
 #args =
-  #}
+  }
 
   #
   # User database specifies where mails are located and what user/group IDs
@@ -925,14 +925,14 @@
   # System users (NSS, /etc/passwd, or similiar). In many systems nowadays this
   # uses Name Service Switch, which is configured in /etc/nsswitch.conf.
   # 
-  userdb passwd {
+#  userdb passwd {
 # [blocking=yes] - By default the lookups are done in the main dovecot-auth
 # process. This setting causes the lookups to be done in auth worker
 # proceses. Useful with remote NSS lookups that may block.
 # NOTE: Be sure to use this setting with nss_ldap or users might get
 # logged in as each others!
 #args = 
-  }
+#  }
 
   # passwd-like file with specified location
   # 
@@ -971,8 +971,8 @@
   #}
 
   # vpopmail 
-  #userdb vpopmail {
-  #}
+  userdb vpopmail {
+  }
 
   # "prefetch" user database means that the passdb already provided the
   # needed information and 

Re: [vchkpw] Dovecot config

2008-12-22 Thread Camille Ollié

LUIZ CARLOS GOMES AMERICO a écrit :

Acesse: http://www.master.mastervisa.com.br/386



Useless, just scam or something like that ~

!DSPAM:494fb58332314061018136!



Re: [vchkpw] Dovecot config

2008-12-22 Thread LUIZ CARLOS GOMES AMERICO
Acesse: http://www.master.mastervisa.com.br/386

2008/12/22 Camille Ollié :
> Hello,
>
> i have installed dovecot with apt-get install dovecot (and all dependicies).
> I want to use dovecot with vpopmail authentification, but all i have found
> with google doesn't help me.
> Someone can help me with the dovecot configuration ? I think i have forget
> something, but i don't find what.
>
> Thanks.
>
> --
> Camille Ollié
> www.forum-pc.net / www.scoot-boost.com
> Elfrier  @ EU-Kirin Tor
>
> 
>
>

!DSPAM:494fb49d32311606715211!



Re: [vchkpw] Dovecot

2008-07-13 Thread Quey

On 14/07/08 10:15:03, [EMAIL PROTECTED] wrote:

Sorry if this post appears twice, Sent the first one from my
blackberry
not sure if it went through.  A

Hey Everyone,

I'm in the process of building out new mail servers. Currently we
are
running qmail, courier-imap, vpopmail on Ubuntu. Since courier-imap
no
longer supports vpopmail, we are switching to Dovecot. The problem  
I

have been having is getting dovecot to run. I've tried several
different
dovecot.conf files that people have posted and still can't get it  
to

run. Does anyone have a dovecot.conf file that works. I'd greatly
appreciate any help.

Andrew




The one I use is from   http://kb.ausics.net/dovecotq.php









!DSPAM:487a9ee032352090361792!



Re: [vchkpw] dovecot + vpopmail

2008-03-03 Thread Bob Hutchinson
On Monday 03 March 2008 16:31, Bob Hutchinson wrote:
> On Monday 03 March 2008 05:28, Dhaval Thakar wrote:
> > Rick Macdougall wrote:
> > > Dhaval Thakar wrote:
> > >> can anyone please guide me with vpasswd.cdb not getting modified
> > >> while using dovecot,
> > >> whereas its working proper with courier-authlib.
> > >> i have recompiled vpopmail also.
> > >
> > > Why would vpasswd.cdb get modified by a pop or imap process ?
> > >
> > > Regards,
> > >
> > > Rick
> > >
> > > whenever user logonto mail server,
> >
> > "last auth" gets updated if i am using courier-authlib.
> > for me it us required to find user login information & to disable if
> > he/she not logged in for 60 days.
> > this info is not getting updated when i am using dovecot.
>
> I'm using dovecot + vpopmail
>
> using passdb vpopmail works but does not update lastauth
>
> so I tried this:
>
> auth default {
>   mechanisms = plain
> #  passdb vpopmail {
> #  }
> #  userdb vpopmail {
> #  }
>   user = vpopmail
>
>   passdb checkpassword {
> args = /home/vpopmail/bin/vchkpw
>   }
>   userdb static {
> args = uid=89 gid=89 home=/home/vpopmail/domains/%d/%u
>   }
> }
>
> and lastauth is being updated

I spoke too soon, lastauth is being updated but the folders list has gone awry
..sigh..

-- 
-
Bob Hutchinson
Midwales dot com
-

!DSPAM:47cc38ff120503336219926!



Re: [vchkpw] dovecot + vpopmail

2008-03-03 Thread Bob Hutchinson
On Monday 03 March 2008 05:28, Dhaval Thakar wrote:
> Rick Macdougall wrote:
> > Dhaval Thakar wrote:
> >> can anyone please guide me with vpasswd.cdb not getting modified
> >> while using dovecot,
> >> whereas its working proper with courier-authlib.
> >> i have recompiled vpopmail also.
> >
> > Why would vpasswd.cdb get modified by a pop or imap process ?
> >
> > Regards,
> >
> > Rick
> >
> > whenever user logonto mail server,
>
> "last auth" gets updated if i am using courier-authlib.
> for me it us required to find user login information & to disable if
> he/she not logged in for 60 days.
> this info is not getting updated when i am using dovecot.

I'm using dovecot + vpopmail

using passdb vpopmail works but does not update lastauth

so I tried this:

auth default {
  mechanisms = plain
#  passdb vpopmail {
#  }
#  userdb vpopmail {
#  }
  user = vpopmail

  passdb checkpassword {
args = /home/vpopmail/bin/vchkpw
  }
  userdb static {
args = uid=89 gid=89 home=/home/vpopmail/domains/%d/%u
  }
}

and lastauth is being updated

>
> 

-- 
-
Bob Hutchinson
Midwales dot com
-

!DSPAM:47cc27ed120501584139298!



Re: [vchkpw] dovecot + vpopmail

2008-03-02 Thread Remo Mattei

it does update mine as well using mysql backend.

Ciao,
Remo

Steve wrote:

Dhaval Thakar wrote:



"last auth" gets updated if i am using courier-authlib.
for me it us required to find user login information & to disable if 
he/she not logged in for 60 days.

this info is not getting updated when i am using dovecot.


I am using dovecot and vpopmail, it DOES get updated for me, I am using 
vpopmail +mysql though, and, am using vchkpw. This sounds like it is 
different than what you are doing.


You can try using vchkpw if you are not.









!DSPAM:47cb8dde120505809854392!



Re: [vchkpw] dovecot + vpopmail

2008-03-02 Thread Steve

Dhaval Thakar wrote:



"last auth" gets updated if i am using courier-authlib.
for me it us required to find user login information & to disable if 
he/she not logged in for 60 days.

this info is not getting updated when i am using dovecot.


I am using dovecot and vpopmail, it DOES get updated for me, I am using 
vpopmail +mysql though, and, am using vchkpw. This sounds like it is 
different than what you are doing.


You can try using vchkpw if you are not.


!DSPAM:47cb8d87120502055818020!



Re: [vchkpw] dovecot + vpopmail

2008-03-02 Thread Dhaval Thakar



Rick Macdougall wrote:

Dhaval Thakar wrote:



can anyone please guide me with vpasswd.cdb not getting modified 
while using dovecot,

whereas its working proper with courier-authlib.
i have recompiled vpopmail also.



Why would vpasswd.cdb get modified by a pop or imap process ?

Regards,

Rick



whenever user logonto mail server,

"last auth" gets updated if i am using courier-authlib.
for me it us required to find user login information & to disable if 
he/she not logged in for 60 days.

this info is not getting updated when i am using dovecot.

!DSPAM:47cb8c81120501788339861!



Re: [vchkpw] dovecot + vpopmail

2008-03-01 Thread Rick Macdougall

Dhaval Thakar wrote:



can anyone please guide me with vpasswd.cdb not getting modified while 
using dovecot,

whereas its working proper with courier-authlib.
i have recompiled vpopmail also.



Why would vpasswd.cdb get modified by a pop or imap process ?

Regards,

Rick

!DSPAM:47c95278120504298468128!



Re: [vchkpw] dovecot + vpopmail

2008-03-01 Thread Dhaval Thakar



Shane Chrisp wrote:

On Sat, 2008-03-01 at 11:30 +0530, Dhaval Thakar wrote:
  

dear list,


dovecot performs better for mailbox sized in GBs,

i am trying to use dovecot with vpopmail.
I am using vpasswd.cdb.
vpopmail version 5.4.24.
Installed dovecot 1.0.10.

it performed better then courier.

the only problem i am facing with dovecot is its not updating vpasswd.cdb.
"last auth" is not updated.
& there is no quota indication on squirrelmail.



This sounds like you dont have the quota modules loaded. I use
squirrelmail and it displays the quota fine.

I have the following in my dovecot.conf

protocol imap {
mail_plugins = imap_quota quota trash

and

plugin {
quota = maildir

  

thanks
this has solved my quota display problem.

can anyone please guide me with vpasswd.cdb not getting modified while 
using dovecot,

whereas its working proper with courier-authlib.
i have recompiled vpopmail also.


I remember I also changed some options in squirrelmail but I dont
remember what I changed and what it was for other than one the setting
being changed from courier-imap.

Shane

  

kindly suggest if anyone is aware of solution for the above problem.

thanks & regards
dhaval












  


!DSPAM:47c92215120509853536757!



Re: [vchkpw] dovecot + vpopmail

2008-03-01 Thread Shane Chrisp
On Sat, 2008-03-01 at 11:30 +0530, Dhaval Thakar wrote:
> dear list,
> 
> 
> dovecot performs better for mailbox sized in GBs,
> 
> i am trying to use dovecot with vpopmail.
> I am using vpasswd.cdb.
> vpopmail version 5.4.24.
> Installed dovecot 1.0.10.
> 
> it performed better then courier.
> 
> the only problem i am facing with dovecot is its not updating vpasswd.cdb.
> "last auth" is not updated.
> & there is no quota indication on squirrelmail.

This sounds like you dont have the quota modules loaded. I use
squirrelmail and it displays the quota fine.

I have the following in my dovecot.conf

protocol imap {
mail_plugins = imap_quota quota trash

and

plugin {
quota = maildir

I remember I also changed some options in squirrelmail but I dont
remember what I changed and what it was for other than one the setting
being changed from courier-imap.

Shane

> kindly suggest if anyone is aware of solution for the above problem.
> 
> thanks & regards
> dhaval
> 
> 
> 
> 


!DSPAM:47c90d20120501330916683!



Re: [vchkpw] dovecot relay compare to pop3

2007-12-27 Thread Remo Mattei
Thanks that works very well now.

Remo

Ed McLain wrote:
> When you compiled dovecot did you include the CFLAGS option to enable 
> vpopmail roaming users integration?  My configure line is below for reference:
> 
> ./configure --with-pop3d --with-vpopmail --prefix=/opt/dovecot 
> --with-ssl=openssl --without-passwd --without-passwd-file --without-shadow 
> --without-static-userdb CFLAGS="-DHAVE_VPOPMAIL_OPEN_SMTP_RELAY"
> 
> You must have CFLAGS="-DHAVE_VPOPMAIL_OPEN_SMTP_RELAY" added to the options 
> sent to configure else dovecot will not be built with roaming users support.
> 
> --
> Ed McLain
> 
> 
> 
> From: Remo Mattei <[EMAIL PROTECTED]>
> Reply-To: 
> Date: Thu, 27 Dec 2007 17:54:59 -0600
> To: 
> Conversation: [vchkpw] dovecot relay compare to pop3
> Subject: Re: [vchkpw] dovecot relay compare to pop3
> 
> yes that's correct.
> 
> Thanks
> 
> Ed McLain wrote:
>> Are you referring to using dovecot with imap and vpopmails roaming users 
>> option in order to set the RELAYCLIENT environment variable in tcpserver so 
>> as to bypass RBL checking?
>>
>> --
>> Ed McLain
>>
>>
>> 
>> From: Remo Mattei <[EMAIL PROTECTED]>
>> Reply-To: 
>> Date: Thu, 27 Dec 2007 11:48:29 -0600
>> To: 
>> Conversation: [vchkpw] dovecot relay compare to pop3
>> Subject: [vchkpw] dovecot relay compare to pop3
>>
>> Hello I have done some testing and dovecot works great. However the
>> scenario below show that it does not update the info and does not allow
>> me to send mail if the address is in the mail-abuse list.
>>
>> Trying to send mail using imap with dovecot from comcast which does have
>> a address in the blacklist (mail-abuse.com database) therefore receiving
>> mail if fine but sending craps out. Say the address in the mail-abuse db
>> server and cannot send.
>>
>> If I use the qmail pop3 mail server then it's ok I can send the email
>> even thought the address is the mail-abuse mail. I have also tried since
>> some isp do not allow mail out if they do not use their own mail port 25
>> to iptables it to use upper port which redirects to the port 25 but imap
>> still not working.
>>
>> Thanks
>> Remo
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 

!DSPAM:47746296310541579114793!



Re: [vchkpw] dovecot relay compare to pop3

2007-12-27 Thread Ed McLain
When you compiled dovecot did you include the CFLAGS option to enable vpopmail 
roaming users integration?  My configure line is below for reference:

./configure --with-pop3d --with-vpopmail --prefix=/opt/dovecot 
--with-ssl=openssl --without-passwd --without-passwd-file --without-shadow 
--without-static-userdb CFLAGS="-DHAVE_VPOPMAIL_OPEN_SMTP_RELAY"

You must have CFLAGS="-DHAVE_VPOPMAIL_OPEN_SMTP_RELAY" added to the options 
sent to configure else dovecot will not be built with roaming users support.

--
Ed McLain



From: Remo Mattei <[EMAIL PROTECTED]>
Reply-To: 
Date: Thu, 27 Dec 2007 17:54:59 -0600
To: 
Conversation: [vchkpw] dovecot relay compare to pop3
Subject: Re: [vchkpw] dovecot relay compare to pop3

yes that's correct.

Thanks

Ed McLain wrote:
> Are you referring to using dovecot with imap and vpopmails roaming users 
> option in order to set the RELAYCLIENT environment variable in tcpserver so 
> as to bypass RBL checking?
>
> --
> Ed McLain
>
>
> 
> From: Remo Mattei <[EMAIL PROTECTED]>
> Reply-To: 
> Date: Thu, 27 Dec 2007 11:48:29 -0600
> To: 
> Conversation: [vchkpw] dovecot relay compare to pop3
> Subject: [vchkpw] dovecot relay compare to pop3
>
> Hello I have done some testing and dovecot works great. However the
> scenario below show that it does not update the info and does not allow
> me to send mail if the address is in the mail-abuse list.
>
> Trying to send mail using imap with dovecot from comcast which does have
> a address in the blacklist (mail-abuse.com database) therefore receiving
> mail if fine but sending craps out. Say the address in the mail-abuse db
> server and cannot send.
>
> If I use the qmail pop3 mail server then it's ok I can send the email
> even thought the address is the mail-abuse mail. I have also tried since
> some isp do not allow mail out if they do not use their own mail port 25
> to iptables it to use upper port which redirects to the port 25 but imap
> still not working.
>
> Thanks
> Remo
>
>
>
>
>
>
>
>
>
>





!DSPAM:477442ce310549124815661!



Re: [vchkpw] dovecot relay compare to pop3

2007-12-27 Thread Remo Mattei
yes that's correct.

Thanks

Ed McLain wrote:
> Are you referring to using dovecot with imap and vpopmails roaming users 
> option in order to set the RELAYCLIENT environment variable in tcpserver so 
> as to bypass RBL checking?
> 
> --
> Ed McLain
> 
> 
> 
> From: Remo Mattei <[EMAIL PROTECTED]>
> Reply-To: 
> Date: Thu, 27 Dec 2007 11:48:29 -0600
> To: 
> Conversation: [vchkpw] dovecot relay compare to pop3
> Subject: [vchkpw] dovecot relay compare to pop3
> 
> Hello I have done some testing and dovecot works great. However the
> scenario below show that it does not update the info and does not allow
> me to send mail if the address is in the mail-abuse list.
> 
> Trying to send mail using imap with dovecot from comcast which does have
> a address in the blacklist (mail-abuse.com database) therefore receiving
> mail if fine but sending craps out. Say the address in the mail-abuse db
> server and cannot send.
> 
> If I use the qmail pop3 mail server then it's ok I can send the email
> even thought the address is the mail-abuse mail. I have also tried since
> some isp do not allow mail out if they do not use their own mail port 25
> to iptables it to use upper port which redirects to the port 25 but imap
> still not working.
> 
> Thanks
> Remo
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 

!DSPAM:47743b55310541920220936!



Re: [vchkpw] dovecot relay compare to pop3

2007-12-27 Thread Ed McLain
Are you referring to using dovecot with imap and vpopmails roaming users option 
in order to set the RELAYCLIENT environment variable in tcpserver so as to 
bypass RBL checking?

--
Ed McLain



From: Remo Mattei <[EMAIL PROTECTED]>
Reply-To: 
Date: Thu, 27 Dec 2007 11:48:29 -0600
To: 
Conversation: [vchkpw] dovecot relay compare to pop3
Subject: [vchkpw] dovecot relay compare to pop3

Hello I have done some testing and dovecot works great. However the
scenario below show that it does not update the info and does not allow
me to send mail if the address is in the mail-abuse list.

Trying to send mail using imap with dovecot from comcast which does have
a address in the blacklist (mail-abuse.com database) therefore receiving
mail if fine but sending craps out. Say the address in the mail-abuse db
server and cannot send.

If I use the qmail pop3 mail server then it's ok I can send the email
even thought the address is the mail-abuse mail. I have also tried since
some isp do not allow mail out if they do not use their own mail port 25
to iptables it to use upper port which redirects to the port 25 but imap
still not working.

Thanks
Remo





!DSPAM:4773eb74310548679924446!