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 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:

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!



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

2009-10-06 Thread Alessio Cecchi

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.


Now the SASL query is very simple:

$ cat /etc/postfix/sasl/smtpd.conf
pwcheck_method: auxprop
auxprop_plugin: sql
mech_list: PLAIN LOGIN
#password_format: crypt
sql_engine: mysql
sql_hostnames: 10.0.0.1
sql_user: postfix
sql_passwd: pippo
sql_database: vpopmail
sql_select: SELECT pw_clear_passwd FROM vpopmail WHERE pw_name='%u' and 
pw_domain='%r' and smtppostfix = '1'


the only condition is the column "smtppostfix" that I must set manually.

There is the way to change the SELECT query in order to check the 
original vpopmail flags? So i can manage SMTP users authentication from 
vpopmail command line and reflect this configuration into a postfix 
server :-)


I have read this discussion:

http://www.mail-archive.com/vchkpw@inter7.com/msg17260.html

but I have not found a solution :-(

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

!DSPAM:4acb4e5f32711494420535!



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


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

2004-09-30 Thread Jeremy Kitchen
Howdy folks,

Due to recent displays of interest for vpopmail/postfix integration on this 
and other mailing lists, I have decided to take on the task of figuring out 
exactly how one might do it.  Unfortunately, I am not completely up to par on 
my postfix knowledge (read: noob), so I've decided to set up a mailing list 
for discussion of postfix/vpopmail integration.

The mailing list address is [EMAIL PROTECTED], and you can subscribe by 
sending an email to [EMAIL PROTECTED]

I have a few ideas of how it might be done, however they all seem rather 
'hackish' and I'd like to get input from people who are more knowledgable 
about the subect than I.  If you're interested in helping with the 
development of vpopmail postfix support, please join :)  I will probably wait 
until monday after I have read some more documentation and thrown some 
designs together before I post any of my own ideas  to the list, however, 
feel free to break the ice and start discussing how you think it should be 
done :)

In the end, I'm sure there will be a lot of new code written... certain things 
that will need to change (however, backward compatibility and MTA portability 
are my #1 concern) .. and a lot of time spent, however, I believe this will 
be very positive for the community and help to spread the use of vpopmail 
around the internet community.


Thanks, and I hope to see some people on the list :)

-Jeremy

ps: kmail + xforwarding + cheap linksys router = bad idea for typing email :)

-- 
Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc.
  [EMAIL PROTECTED] ++ www.inter7.com ++ 866.528.3530 ++ 815.776.9465 int'l
kitchen @ #qmail #gentoo on EFnet ++ scriptkitchen.com/qmail
   GnuPG Key ID: 481BF7E2 ++ scriptkitchen.com/kitchen.asc


pgpcBL2wJ5Shq.pgp
Description: PGP signature


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


[vchkpw] vpopmail + postfix

2004-04-23 Thread Paulo Fragoso
Hi,

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

Thanks,
Paulo.


Re: [vchkpw] vpopmail+postfix+freebsd

2003-08-21 Thread Charles Sprickman
On Wed, 20 Aug 2003, eLgino wrote:

> hello, anyone have installed postfix & vpopmail under freebsd?

Probably not.  Or if they have, they're not on this list.  I think Ken
just put that on the inter7 page to taunt people.

> i have no clue howto install it with postfix, but i will use a IMAP/POP
> server named "dovecot" and he can handle with vpopmail.
> have anyone a idea?

Dig in and do it, then send us detailed instructions.  I've started a few
times, then stalled out.  I'm sick of having a piece of perl code invoked
for every incoming mail (qmail-scanner), and postfix has much nicer hooks
for scanning and all manner of goodies.  It does seem possible, but I'd
bet things like smtp-auth could get a little tricky...

Charles

>
>



[vchkpw] vpopmail+postfix+freebsd

2003-08-20 Thread eLgino
hello, anyone have installed postfix & vpopmail under freebsd?
i have no clue howto install it with postfix, but i will use a IMAP/POP
server named "dovecot" and he can handle with vpopmail.
have anyone a idea?




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.






[vchkpw] Vpopmail + postfix

2003-02-18 Thread Luiz Henrique



Hello everybody!
Is possible the vpopmail run with postfix to manage 
virtual domains? If yes, how?
Thanks
[]'s