Re: [vchkpw] users/assign and virtualdomains files

2005-12-09 Thread Jeremy Kitchen
On Thursday 08 December 2005 17:26, Nicklas Bondesson wrote:
> > Is there a clean way of overriding vpopmail's default
> > behavior of using the users/assign and virtualdomains files
> > when using the mysql backend to lookup user and domain data?
> >
> > I would like to add/remove users and domains "on-the-fly"
> > without the hassle of manipulating and distributing those
> > files among our mailservers.
>
users/assign and virtualdomains are only modified when you add or remove 
domains.

adding / removing users simply updates your database backend (be it mysql, 
cdb, etc).

> > Do i have to wait for vpopmaild? I guess it will handle this as well.

vpopmaild just uses library calls, addodmain in vpopmaild does the exact same 
thing as bin/vadddomain :)

-Jeremy


pgp56tiXL0mpp.pgp
Description: PGP signature


RE: [vchkpw] users/assign and virtualdomains files

2005-12-09 Thread Nicklas Bondesson
> On Thursday 08 December 2005 17:26, Nicklas Bondesson wrote:
> > > Is there a clean way of overriding vpopmail's default behavior of 
> > > using the users/assign and virtualdomains files when 
> using the mysql 
> > > backend to lookup user and domain data?
> > >
> > > I would like to add/remove users and domains "on-the-fly"
> > > without the hassle of manipulating and distributing those files 
> > > among our mailservers.
> >
> users/assign and virtualdomains are only modified when you 
> add or remove domains.
> 
> adding / removing users simply updates your database backend 
> (be it mysql, cdb, etc).
> 
> > > Do i have to wait for vpopmaild? I guess it will handle 
> this as well.
> 
> vpopmaild just uses library calls, addodmain in vpopmaild 
> does the exact same thing as bin/vadddomain :)
> 
> -Jeremy
> 

Could someone get me in the right direction on adding domains "on-the-fly".
There has to be people on this list with a similar need. To add domains
directly in the mysql tables?

Thanks,
Nicklas B




Re: [vchkpw] users/assign and virtualdomains files

2005-12-09 Thread Jeremy Kitchen
On Friday 09 December 2005 01:27, Nicklas Bondesson wrote:
> Could someone get me in the right direction on adding domains "on-the-fly".
> There has to be people on this list with a similar need. To add domains
> directly in the mysql tables?

you can.  but in order for qmail to deliver mail to the domains, it has to be 
told where to look.

vpopmail handles this by adding the domain to virtualdomains and creating a 
'user' for the domain via the qmail-users mechanism.

-Jeremy


pgpXrCC6ka5as.pgp
Description: PGP signature


Re: [vchkpw] command line tool to set catch-all

2005-12-09 Thread GoodnGo.de \(R\) Zentrale
Hello hbeaumont,

can you write bash-shell scripts then use this:
1) make an alias of every new "virtual" mailaccount by this:
Under   /home/vpopmail/domains/.0../the_regarding_domainname.de:
2) #> echo
"/home/vpopmail/domains/.0../the_regarding_domainname.de/postmaster/Maildir/
" > .qmail-the_name_of_the_account_you_want_to_alias
and the postmaster account you make him catchall,
like this -has to be done only once:
3) # >echo "| /home/vpopmail/bin/vdelivermail ''
/home/vpopmail/domains/0/the_regarding_domainname.de/postmaster" >
.qmail-default

If you want to script it, do this:
3 a b)
for a in `ls /home/vpopmail/domains/` ; do if [ -d
/home/vpopmail/domains/$a ]; then echo
"/home/vpopmail/domains/.0../$a/postmaster/Maildir/" >
.qmail-the_name_of_the_account_you_want_to_alias;
echo "| /home/vpopmail/bin/vdelivermail ''
/home/vpopmail/domains/0/$a/postmaster" > .qmail-default; fi
 done;
 end of for  do done

That´s all, Hope to help from merry old germany ...
-
Oliver Etzel
Hostmaster www.domainfex.de
now Tomcat - Serving

>>
> Hi,

> Does anyone know of a command line tool to set a user's catch-all (to
> postmaster)

> I realize I can just cat a file to the .qmail-default file but I need to
set
> it for every user
> on the server. The postmaster redirect needs to he users domain/path in it
> so I can't just
> cat a template file to each user.

> Idealy I want something to fit with:

> find /home/vpopmail/domains -name ".qmail-default" -exec magic_script_here
> {} \'

> where magic_script_here can replace the current .qmail-default with one
that
> sets the catchall to postmaster.




Re: [vchkpw] users/assign and virtualdomains files

2005-12-09 Thread DAve

Nicklas Bondesson wrote:

On Thursday 08 December 2005 17:26, Nicklas Bondesson wrote:

Is there a clean way of overriding vpopmail's default behavior of 
using the users/assign and virtualdomains files when 


using the mysql 


backend to lookup user and domain data?

I would like to add/remove users and domains "on-the-fly"
without the hassle of manipulating and distributing those files 
among our mailservers.


users/assign and virtualdomains are only modified when you 
add or remove domains.


adding / removing users simply updates your database backend 
(be it mysql, cdb, etc).



Do i have to wait for vpopmaild? I guess it will handle 


this as well.

vpopmaild just uses library calls, addodmain in vpopmaild 
does the exact same thing as bin/vadddomain :)


-Jeremy




Could someone get me in the right direction on adding domains "on-the-fly".
There has to be people on this list with a similar need. To add domains
directly in the mysql tables?



There are others, I would like it as well. I've looked at 
http://iain.cx/qmail/mysql/ and considered trying to merge it with 
vpopmail. Unfortunately the resulting mail server would be such a 
red-headed stepchild I don't think I would be able to get help anywhere 
if it had problems. So pending my learning C, no further Sober 
outbreaks, no further network upgrades, NOC moves, etc, etc. I may get a 
chance to play with that on a test box, someday.


I actually think a merging of netqmail+qmail-mysql+vpopmail-mysql into 
one server would be a good thing. With a complete mysql backend, 
smtp-auth, Bill Shupp's maildrop/spamc patch, and qmail-tap, I would be 
a happy camper.


DAve


DAve



[vchkpw] vpopmail stopped hashing directories

2005-12-09 Thread Clayton Weise
I converted from cdb to mysql a while back and I just now noticed an
oddity.  My understanding of vpopmail before was that it would
automatically do directory hashing based on the number of domains and/or
accounts.  When we switched over from cdb to mysql authentication about
2 years ago it seems to have stopped doing it at a domain level.  I
didn't really notice until now because I just haven't paid close enough
attention to the number of domains we have added during that time.  I
seem to remember something about the directory hashing breaking during
the conversion from a post a long time ago but I don't recal.  I've used
the 'vcdir' program from the contrib directory but that only seems to
convert specific domains.
 
We were using vpopmail 5.3.x (don't remember the specific version) at
the time we converted and are currently running 5.4.10.  Can anybody
help shed some light on the issue?

Thanks,
Clayton


-- 
BEGIN-ANTISPAM-VOTING-LINKS
--

Teach CanIt if this mail (ID 2686866) is spam:
Spam:http://canit.iswest.net/b.php?c=s&i=2686866&m=f40c0f4c7fda
Not spam:http://canit.iswest.net/b.php?c=n&i=2686866&m=f40c0f4c7fda
Forget vote: http://canit.iswest.net/b.php?c=f&i=2686866&m=f40c0f4c7fda
--
END-ANTISPAM-VOTING-LINKS



[vchkpw] vpopmaild

2005-12-09 Thread Nicklas Bondesson
A few questions:

Where can i find more information on vpopmaild, and who is currently pulling
the strings here?

Nicklas B