Re: [vchkpw] Vpopmail Postfix and SQL query for SMTP-Auth

2009-10-07 Thread Christopher Chan

Alessio Cecchi wrote:

Hello,

this is my situation, one qmail+vpopmail(MySQL)+dovecot server that 
works like an MX record and provide access on mailbox via POP3 or IMAP.


Another server with postfix and SASL for SMTP-Auth only, with SASL that 
query the vpopmail DB for user authentication.


My intention is to set a query into SASL for use the same flags for 
SMTP-Auth that read vpopmail and qmail.





Do you run dovecot? If you do, just make use of dovecot's sasl 
provisions. That is supported by postfix.


!DSPAM:4acc5f6032713644250262!



Re: [vchkpw] Vpopmail Postfix and SQL query for SMTP-Auth

2009-10-07 Thread Alessio Cecchi

Christopher Chan ha scritto:

Alessio Cecchi wrote:

Hello,

this is my situation, one qmail+vpopmail(MySQL)+dovecot server that 
works like an MX record and provide access on mailbox via POP3 or IMAP.


Another server with postfix and SASL for SMTP-Auth only, with SASL 
that query the vpopmail DB for user authentication.


My intention is to set a query into SASL for use the same flags for 
SMTP-Auth that read vpopmail and qmail.





Do you run dovecot? If you do, just make use of dovecot's sasl 
provisions. That is supported by postfix.




Thanks,

yes I run dovecot and I know the SASL + Postfix features, but on the 
qmail server, postfix is on another server.


Summary:

server1

qmail + vpopmail with mysql backend + dovecot with vpopmail native 
authentication (passdb checkpassword and args = 
/home/vpopmail/bin/vchkpw)


server2

postfix + SASL that read users from mysql on server1

How can postfix access to dovecot SASL auth mechanis?

I could install dovecot on server2, but dovecot can check vpopmail flags 
on when run with passdb checkpassword and args = 
/home/vpopmail/bin/vchkpw and in the same server with vpopmail binary.


Or not?
--
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
@ LOLUG - Socio http://www.lolug.net

!DSPAM:4acc68ca32712464818583!



Re: [vchkpw] Vpopmail Postfix and SQL query for SMTP-Auth

2009-10-07 Thread Christopher Chan

Alessio Cecchi wrote:

Christopher Chan ha scritto:

Alessio Cecchi wrote:

Hello,

this is my situation, one qmail+vpopmail(MySQL)+dovecot server that 
works like an MX record and provide access on mailbox via POP3 or IMAP.


Another server with postfix and SASL for SMTP-Auth only, with SASL 
that query the vpopmail DB for user authentication.


My intention is to set a query into SASL for use the same flags for 
SMTP-Auth that read vpopmail and qmail.





Do you run dovecot? If you do, just make use of dovecot's sasl 
provisions. That is supported by postfix.




Thanks,

yes I run dovecot and I know the SASL + Postfix features, but on the 
qmail server, postfix is on another server.


Summary:

server1

qmail + vpopmail with mysql backend + dovecot with vpopmail native 
authentication (passdb checkpassword and args = 
/home/vpopmail/bin/vchkpw)


server2

postfix + SASL that read users from mysql on server1

How can postfix access to dovecot SASL auth mechanis?

I could install dovecot on server2, but dovecot can check vpopmail flags 
on when run with passdb checkpassword and args = 
/home/vpopmail/bin/vchkpw and in the same server with vpopmail binary.


Or not?



Eh? What version of dovecot are you running? dovecot can directly link 
into vpopmail. Install vpopmail on server2, point it to the mysql 
server, compile and install a dovecot version above 1.0 (prefereably 
latest) and compile and install a version of postfix that can make use 
of dovecot's sasl provision.


Quite a bit of fiddling I know...


postfix main.cf

smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth (under postfix spool directory - need to 
set this in dovecot.conf in the auth section under client subsection)

smtpd_sasl_auth_enable = yes

Read the SASL_README file for dovecot stuff:

Building Postfix with Dovecot SASL support

These instructions assume that you build Postfix from source code as 
described
in the INSTALL document. Some modification may be required if you build 
Postfix

from a vendor-specific source package.

Support for the Dovecot version 1 SASL protocol is available in Postfix 
2.3 and
later. At the time of writing, only server-side SASL support is 
available, so

you can't use it to authenticate to your network provider's server. Dovecot
uses its own daemon process for authentication. This keeps the Postfix build
process simple, because there is no need to link extra libraries into 
Postfix.


To generate the necessary Makefiles, execute the following in the 
Postfix top-

level directory:

% make makefiles CCARGS='-DUSE_SASL_AUTH -
DDEF_SERVER_SASL_TYPE=\dovecot\'

After this, proceed with make as described in the INSTALL document.

Notes:

  * The -DDEF_SERVER_SASL_TYPE stuff is not necessary; it just makes 
Postfix
configuration a little more convenient because you don't have to 
specify

the SASL plug-in type in the Postfix main.cf file.

  * If you also want support for LDAP or TLS, you will have to merge their
CCARGS and AUXLIBS into the above command line.

!DSPAM:4acd44cd32715512521434!



Re: [vchkpw] vpopmail postfix devel mailing list / calling all experts

2004-10-01 Thread manvendra bhangui
On Fri, 1 Oct 2004 00:11:21 -0500, Jeremy Kitchen [EMAIL PROTECTED] wrote:
 Due to recent displays of interest for vpopmail/postfix integration on this

I wrote a postfix wrapper for vdelivermail 1.5 years ago. With the
wrapper you can use either qmail or postfix with vpopmail. Also the
wrapper does not require qmail to be installed.

Some postfix error code from sys_exits.h could have changed. If any
one wants to hack the code below, they are free do do. Also like any
other free software, my code comes
without warranty or obligations. I also claim no copyrights, etc. You
are free to do anything with the code (except to involve me). If you
do something useful with the code, let me know :)

1. Edit main.cf and master.cf (assuming you have installed and
configured postfix)

Have the following in main.cf

local_transport = vdel
vdel_destination_recipient_limit = 1

Have the following line in master.cf (mind the line wrap)
vdel unix  -   n   n   -   100   pipe 
 flags=Fq. user=vpopmail argv=/var/vpopmail/bin/postdel -u $user -d
$recipient -r $sender

2. Compile postdel.c
   gcc postdel.c -s -O -o postdel
   cp postdel /var/vpopmail/bin

I used to use it on production before I switched back to qmail.


postdel.c.gz
Description: GNU Zip compressed data


Re: [vchkpw] vpopmail + postfix

2004-04-27 Thread Jeremy Kitchen
On Monday 26 April 2004 10:18 am, Chris Ess wrote:
   How can we setup vpopmail to work with Postfix? Is necessary have qmail
   installed too?

  vpopmail was created for qmail only, postfix and qmail are two different
  MTA's so this is not a solution you can use with postfix.

 See this sentence from http://www.inter7.com/vpopmail.html :

 Inter7 has developed vpopmail (vchkpw), a free GPL software package, to
 provide an easy way to manage virtual email domains and non /etc/passwd
 email accounts on your qmail or Postfix mail servers.

yup.

 So it looks like there should be a way to get it to work with Postfix.
 (Or someone needs to fix the page.)

 There's even a link for a short howto on the Inter7 page:
 http://www.inter7.com/vpopmail/postfix.txt

 I think that's old, and it might not even be applicable to newer versions of 
vpopmail or postfix.

 That said, I have never used vpopmail with Postfix, nor do I ever plan to,
 so I can't vouch whether or not any of the above is accurate beyond face
 value.

I neither use vpopmail with postfix, nor do I ever plan to.  I'm sure there 
are those out there who do though (or have at least tried, successful or 
not), does anyone want to come forward and say yay or nay if it still works, 
or have a howto for it or something?

If it no longer works with postfix I'll update the page and put the 'last 
known operable version' or something on there.

-Jeremy

-- 
Jeremy Kitchen
Systems Administrator
[EMAIL PROTECTED]
Kitchen @ #qmail on EFNet - Join the party!
.
Inter7 Internet Technologies, Inc.
www.inter7.com
866.528.3530 toll free
847.492.0470 int'l
847.492.0632 fax
GNUPG key ID: 93BDD6CE


Re: [vchkpw] vpopmail + postfix

2004-04-26 Thread Chris Ess
On Fri, 23 Apr 2004, X-Istence wrote:

 Paulo Fragoso wrote:
  Hi,
 
  How can we setup vpopmail to work with Postfix? Is necessary have qmail
  installed too?
 
  Thanks,
  Paulo.

 vpopmail was created for qmail only, postfix and qmail are two different
 MTA's so this is not a solution you can use with postfix.

See this sentence from http://www.inter7.com/vpopmail.html :

Inter7 has developed vpopmail (vchkpw), a free GPL software package, to
provide an easy way to manage virtual email domains and non /etc/passwd
email accounts on your qmail or Postfix mail servers.

So it looks like there should be a way to get it to work with Postfix.
(Or someone needs to fix the page.)

There's even a link for a short howto on the Inter7 page:
http://www.inter7.com/vpopmail/postfix.txt

That said, I have never used vpopmail with Postfix, nor do I ever plan to,
so I can't vouch whether or not any of the above is accurate beyond face
value.

Sincerely,


Chris Ess
System Administrator / CDTT (Certified Duct Tape Technician)


Re: [vchkpw] vpopmail + postfix

2004-04-23 Thread X-Istence
Paulo Fragoso wrote:
Hi,

How can we setup vpopmail to work with Postfix? Is necessary have qmail 
installed too?

Thanks,
Paulo.

vpopmail was created for qmail only, postfix and qmail are two different 
MTA's so this is not a solution you can use with postfix.

X-IStence


Re: [vchkpw] Vpopmail + postfix

2003-02-18 Thread Jesse Guardiani
On Tuesday 18 February 2003 05:58, Luiz Henrique wrote:
 Hello everybody!
 Is possible the vpopmail run with postfix to manage virtual domains? If
 yes, how? Thanks
 []'s

Yes, but I believe you need to have Qmail installed as your incoming SMTP
MTA, and Postfix simply performs as your outgoing MTA. There's a section
about this on the inter7 website here:

http://www.inter7.com/vpopmail/postfix.txt

-- 
Jesse Guardiani, Systems Administrator
WingNET Internet Services,
P.O. Box 2605 // Cleveland, TN 37320-2605
423-559-LINK (v)  423-559-5145 (f)
http://www.wingnet.net

We are actively looking for companies that do a lot of long
distance faxing and want to cut their long distance bill by
up to 50%.  Contact [EMAIL PROTECTED] for more info.