Re: [vchkpw] vdelivermail stdout to Dovecot deliver
On Mar 30, 2009, at 7:32 PM, Rick Romero wrote: What I'm trying to work around with this method is to handle user-specific .qmail directives. Dovecot doesn't do that, and that is why I can't full out replace vdelivermail with deliver. What if vpopmail was updated to store a user's .qmail file as domain.com/.qmail-user instead of domain.com/user/.qmail? Granted, with a lot of users you end up with a huge number of files in the domain directory, and that will have an impact on performance, but it might be a solution to your problem. We'd have to make other changes to the codebase so the alias/forward routines ignored .qmail- user files that belonged to actual POP/IMAP accounts. -Tom !DSPAM:49d4b73032681666196558!
[vchkpw] Test FHS patch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Okay, here's a patch that does the following: Only chown if root Only mkdir if root or DESTDIR is set I haven't committed it to the repository yet because I'm not sure if it addresses the issues correctly. If you're working on packaging vpopmail, let me know if this does the trick, or what further changes are still needed. Thanks! - -- /* Matt Brookings m...@inter7.com GnuPG Key D9414F70 Software developer Systems technician Inter7 Internet Technologies, Inc. (815)776-9465 */ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAknU+CMACgkQ6QgvSNlBT3CU1ACfdX9NEDBFsL16TS6+WU7X90ii o8EAoJYW3Kw8rBCTPRY65tsX/sGzIGeW =FYc3 -END PGP SIGNATURE- Index: Makefile.in === --- Makefile.in (revision 878) +++ Makefile.in (working copy) @@ -12,6 +12,7 @@ LDFLAGS = @LDFLAGS@ DEPS = Makefile INSTALL = @INSTALL@ +IDCOMMAND = @idcommand@ CCC = $(CC) $(CFLAGS) PICC = $(CC) $(CFLAGS) -fPIC LINK = $(CC) $(LDFLAGS) @@ -235,8 +236,35 @@ install-strip: install -install: $(BUILD_ALL) +pre-install: @echo + @echo Checking installation pre-requisites... + @echo + + @if test -z $(IDCOMMAND); then \ + echo; \ + echo Cannot determine your uid because IDCOMMAND is not set.; \ + echo; \ + fi + + @if test `$(IDCOMMAND)` != 0; then \ + if test -z $${DESTDIR}; then \ + echo; \ + echo You can't install vpopmail because you aren't root; \ + echo and you don't have DESTDIR set.; \ + echo; \ + false; \ + fi; \ + if test $${DESTDIR:0:1} != /; then \ + echo; \ + echo DESTDIR must be an absolute path starting with /; \ + echo; \ + false; \ + fi ;\ + fi + +install: pre-install $(BUILD_ALL) + @echo @echo Installing... @echo @@ -244,15 +272,40 @@ @# Create directories @# - for i in $(INSTALL_DIRS); do if test ! -d $${i}; then mkdir -p $${i}; chown @vpopuser@:@vpopgroup@ $${i}; fi; done - chmod 700 $(VPOPMAIL_DIR_DOMAINS) + for i in $(INSTALL_DIRS); do \ + if test ! -d $${i}; then \ + mkdir -p $${i}; \ + if test `$(IDCOMMAND)` = 0; then \ + chown @vpopuser@:@vpopgroup@ $${i}; \ + fi; \ + fi; \ +done + if test `$(IDCOMMAND)` = 0 || test ! -z $${DESTDIR}; then \ + chmod 700 $(DESTDIR)$(VPOPMAIL_DIR_DOMAINS); \ +fi + @# @# Copy binaries, libraries and headers @# - for i in $(BUILD_BINS); do $(INSTALL) -s -o @vpopuser@ -g @vpopgroup@ $${i} $(DESTDIR)$(VPOPMAIL_DIR_BIN); chmod 711 $(DESTDIR)$(VPOPMAIL_DIR_BIN)/$${i}; done - for i in $(BUILD_LIBS); do $(INSTALL) $${i} $(DESTDIR)$(VPOPMAIL_DIR_LIB); chmod 644 $(DESTDIR)$(VPOPMAIL_DIR_LIB)/$${i}; done + for i in $(BUILD_BINS); do \ + $(INSTALL) -s $${i} $(DESTDIR)$(VPOPMAIL_DIR_BIN); \ + if test `$(IDCOMMAND)` = 0; then \ + chown @vpopuser@:@vpopgroup@ $(DESTDIR)$(VPOPMAIL_DIR_BIN)/$${i}; \ + fi; \ + if test `$(IDCOMMAND)` = 0 || test ! -z $${DESTDIR}; then \ + chmod 711 $(DESTDIR)$(VPOPMAIL_DIR_BIN)/$${i}; \ + fi; \ +done + + for i in $(BUILD_LIBS); do \ + $(INSTALL) $${i} $(DESTDIR)$(VPOPMAIL_DIR_LIB); \ + if test `$(IDCOMMAND)` = 0 || test ! -z $${DESTDIR}; then \ + chmod 644 $(DESTDIR)$(VPOPMAIL_DIR_LIB)/$${i}; \ + fi; \ +done + $(INSTALL) -m 444 config.h $(DESTDIR)$(VPOPMAIL_DIR_INCLUDE)/vpopmail_config.h for i in $(INSTALL_HEADERS); do $(INSTALL) -m 444 $${i} $(DESTDIR)$(VPOPMAIL_DIR_INCLUDE); done @@ -272,7 +325,10 @@ @# if test ! -r $(DESTDIR)$(VPOPMAIL_DIR_ETC)/vusagec.conf; then \ - $(INSTALL) -o @vpopuser@ -g @vpopgroup@ -m 644 vusagec.conf $(DESTDIR)$(VPOPMAIL_DIR_ETC)/vusagec.conf; \ + $(INSTALL) -m 644 vusagec.conf $(DESTDIR)$(VPOPMAIL_DIR_ETC)/vusagec.conf; \ + if test `$(IDCOMMAND)` = 0; then \ + chown @vpopuser@:@vpopgroup@ $(DESTDIR)$(VPOPMAIL_DIR_ETC)/vusagec.conf; \ + fi; \ fi @# Index: configure.ac === --- configure.ac (revision 872) +++ configure.ac (working copy) @@ -114,6 +114,7 @@ esac AC_MSG_RESULT($idcommand) +AC_SUBST(idcommand) # # ps command @@ -252,13 +253,13 @@ #-- -if $idtest test `$idcommand` != 0 -then - AC_MSG_WARN(=== vpopmail must be configured as root. ===) - AC_MSG_WARN(=== please switch to the root user and ===) - AC_MSG_WARN(=== run ./configure. ===) - AC_MSG_ERROR(aborted.) -fi +#if $idtest test `$idcommand` != 0 +#then +# AC_MSG_WARN(=== vpopmail must be configured as root. ===) +# AC_MSG_WARN(=== please switch to the root user and ===) +# AC_MSG_WARN(=== run ./configure. ===) +# AC_MSG_ERROR(aborted.) +#fi # # Locate the qmail directory Index: configure === --- configure
Re: [vchkpw] Test FHS patch
Thanks Matt, I'll test it in minutes... On Thu, Apr 2, 2009 at 2:38 PM, Matt Brookings m...@inter7.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Okay, here's a patch that does the following: Only chown if root Only mkdir if root or DESTDIR is set I haven't committed it to the repository yet because I'm not sure if it addresses the issues correctly. If you're working on packaging vpopmail, let me know if this does the trick, or what further changes are still needed. Thanks! - -- /* Matt Brookings m...@inter7.com GnuPG Key D9414F70 Software developer Systems technician Inter7 Internet Technologies, Inc. (815)776-9465 */ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAknU+CMACgkQ6QgvSNlBT3CU1ACfdX9NEDBFsL16TS6+WU7X90ii o8EAoJYW3Kw8rBCTPRY65tsX/sGzIGeW =FYc3 -END PGP SIGNATURE- -- [ ]'s Aledr - Alexandre OpenSource Solutions for SmallBusiness Problems !DSPAM:49d4faa332682854311138!
Re: [vchkpw] Added FHS compliance to 5.5 branch
On Sun, Mar 29, 2009 at 3:56 PM, Matt Brookings m...@inter7.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 aledr wrote: On Fri, Mar 27, 2009 at 3:32 PM, Matt Brookings m...@inter7.com wrote: aledr wrote: Here is the section for MD5 on a x86_64 system: What OS and flavor btw? I'm installing CentOS on a laptop over here. I've got to resize the partitions first though. Another hour and 45 left on the resize. I don't think this has to do with 64bit systems specifically. Are you familiar with gdb? Can you debug the MD5 test program and see where it's segfaulting? No deal with gdb in this case: Program received signal SIGSEGV, Segmentation fault. 0x0040061a in main () Excerpted this code from configure: - #include stdio.h #include string.h #include unistd.h int main(int argc, char *argv[]) { char *ret = NULL; const char salt[12] = \$1\$ABCDEFG\0, key[5] = test\0; ret = (char *)crypt(key, salt); if (ret == NULL) return 2; if (*(ret + 2) != '$') return 1; return 0; } - But It doesn't have: #include crypt.h ;D - -- /* Matt Brookings m...@inter7.com GnuPG Key D9414F70 Software developer Systems technician Inter7 Internet Technologies, Inc. (815)776-9465 */ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAknPxHAACgkQ6QgvSNlBT3AxcQCeMzw65Ik3E2k5w9TCFJe5P155 2q8AoIaa8kMM/Zp6gPVx6PF+t3xEV2kz =F2nv -END PGP SIGNATURE- -- [ ]'s Aledr - Alexandre OpenSource Solutions for SmallBusiness Problems !DSPAM:49d5083832688236749190!
Re: [vchkpw] Added FHS compliance to 5.5 branch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 aledr wrote: No deal with gdb in this case: Program received signal SIGSEGV, Segmentation fault. 0x0040061a in main () Compile like this: gcc -Wall -g -o testcrypt testcrypt.c -lcrypt Then gdb: gdb ./testcrypt gdb run It should tell you what line it failed at. But It doesn't have: #include crypt.h ;D Woops. Did including crypt.h fix it? - -- /* Matt Brookings m...@inter7.com GnuPG Key D9414F70 Software developer Systems technician Inter7 Internet Technologies, Inc. (815)776-9465 */ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAknVCKgACgkQ6QgvSNlBT3CXSQCeN+CN0GUWDLFwbJ/lPvEM+0b5 pAgAmgJx7qbMestk4dB4g+ooRYzOrP35 =lWYd -END PGP SIGNATURE-
Re: [vchkpw] Test FHS patch
Patch reject on latest on r879: cat Makefile.in.rej *** *** 58,62 rm -rf config.log config.status Makefile autom4te.cache contrib/rc.vusaged install: $(BINS) - $(INSTALL) -s -m 0700 vusaged $(DESTDIR)$(VPOPMAIL_DIR_BIN) if test ! -r $(DESTDIR)$(VPOPMAIL_DIR_ETC)/vusaged.conf; then $(INSTALL) -m 0600 etc/vusaged.conf $(DESTDIR)$(VPOPMAIL_DIR_ETC)/vusaged.conf; fi --- 58,62 rm -rf config.log config.status Makefile autom4te.cache contrib/rc.vusaged install: $(BINS) + $(INSTALL) -s -m 0700 vusaged $(DESTDIR)$(VPOPMAIL_DIR_BIN)/vusaged if test ! -r $(DESTDIR)$(VPOPMAIL_DIR_ETC)/vusaged.conf; then $(INSTALL) -m 0600 etc/vusaged.conf $(DESTDIR)$(VPOPMAIL_DIR_ETC)/vusaged.conf; fi On Thu, Apr 2, 2009 at 2:49 PM, aledr matrixworkstat...@gmail.com wrote: Thanks Matt, I'll test it in minutes... On Thu, Apr 2, 2009 at 2:38 PM, Matt Brookings m...@inter7.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Okay, here's a patch that does the following: Only chown if root Only mkdir if root or DESTDIR is set I haven't committed it to the repository yet because I'm not sure if it addresses the issues correctly. If you're working on packaging vpopmail, let me know if this does the trick, or what further changes are still needed. Thanks! - -- /* Matt Brookings m...@inter7.com GnuPG Key D9414F70 Software developer Systems technician Inter7 Internet Technologies, Inc. (815)776-9465 */ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAknU+CMACgkQ6QgvSNlBT3CU1ACfdX9NEDBFsL16TS6+WU7X90ii o8EAoJYW3Kw8rBCTPRY65tsX/sGzIGeW =FYc3 -END PGP SIGNATURE- -- [ ]'s Aledr - Alexandre OpenSource Solutions for SmallBusiness Problems -- [ ]'s Aledr - Alexandre OpenSource Solutions for SmallBusiness Problems !DSPAM:49d508b332682022263736!
Re: [vchkpw] Added FHS compliance to 5.5 branch
On Thu, Apr 2, 2009 at 3:49 PM, Matt Brookings m...@inter7.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 aledr wrote: No deal with gdb in this case: Program received signal SIGSEGV, Segmentation fault. 0x0040061a in main () Compile like this: gcc -Wall -g -o testcrypt testcrypt.c -lcrypt Then gdb: gdb ./testcrypt gdb run It should tell you what line it failed at. But It doesn't have: #include crypt.h ;D Woops. Did including crypt.h fix it? Yes... =D - -- /* Matt Brookings m...@inter7.com GnuPG Key D9414F70 Software developer Systems technician Inter7 Internet Technologies, Inc. (815)776-9465 */ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAknVCKgACgkQ6QgvSNlBT3CXSQCeN+CN0GUWDLFwbJ/lPvEM+0b5 pAgAmgJx7qbMestk4dB4g+ooRYzOrP35 =lWYd -END PGP SIGNATURE- -- [ ]'s Aledr - Alexandre OpenSource Solutions for SmallBusiness Problems !DSPAM:49d5095132684502187401!
Re: [vchkpw] Test FHS patch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 aledr wrote: Patch reject on latest on r879: cat Makefile.in.rej *** *** 58,62 rm -rf config.log config.status Makefile autom4te.cache contrib/rc.vusaged install: $(BINS) - $(INSTALL) -s -m 0700 vusaged $(DESTDIR)$(VPOPMAIL_DIR_BIN) if test ! -r $(DESTDIR)$(VPOPMAIL_DIR_ETC)/vusaged.conf; then $(INSTALL) -m 0600 etc/vusaged.conf $(DESTDIR)$(VPOPMAIL_DIR_ETC)/vusaged.conf; fi --- 58,62 rm -rf config.log config.status Makefile autom4te.cache contrib/rc.vusaged install: $(BINS) + $(INSTALL) -s -m 0700 vusaged $(DESTDIR)$(VPOPMAIL_DIR_BIN)/vusaged if test ! -r $(DESTDIR)$(VPOPMAIL_DIR_ETC)/vusaged.conf; then $(INSTALL) -m 0600 etc/vusaged.conf $(DESTDIR)$(VPOPMAIL_DIR_ETC)/vusaged.conf; fi Eh, ignore those. They aren't that important. How did the 'make install' go? - -- /* Matt Brookings m...@inter7.com GnuPG Key D9414F70 Software developer Systems technician Inter7 Internet Technologies, Inc. (815)776-9465 */ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAknVCboACgkQ6QgvSNlBT3BKOwCcCflLnBbK6JqfHX0mnLlA2xMY RisAnRwRlSxC4aVsfzCkAg2ESbM4d6J0 =fiT1 -END PGP SIGNATURE-
Re: [vchkpw] Test FHS patch
On Thu, Apr 2, 2009 at 3:53 PM, Matt Brookings m...@inter7.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 aledr wrote: Patch reject on latest on r879: cat Makefile.in.rej *** *** 58,62 rm -rf config.log config.status Makefile autom4te.cache contrib/rc.vusaged install: $(BINS) - $(INSTALL) -s -m 0700 vusaged $(DESTDIR)$(VPOPMAIL_DIR_BIN) if test ! -r $(DESTDIR)$(VPOPMAIL_DIR_ETC)/vusaged.conf; then $(INSTALL) -m 0600 etc/vusaged.conf $(DESTDIR)$(VPOPMAIL_DIR_ETC)/vusaged.conf; fi --- 58,62 rm -rf config.log config.status Makefile autom4te.cache contrib/rc.vusaged install: $(BINS) + $(INSTALL) -s -m 0700 vusaged $(DESTDIR)$(VPOPMAIL_DIR_BIN)/vusaged if test ! -r $(DESTDIR)$(VPOPMAIL_DIR_ETC)/vusaged.conf; then $(INSTALL) -m 0600 etc/vusaged.conf $(DESTDIR)$(VPOPMAIL_DIR_ETC)/vusaged.conf; fi Eh, ignore those. They aren't that important. How did the 'make install' go? - -- /* Matt Brookings m...@inter7.com GnuPG Key D9414F70 Software developer Systems technician Inter7 Internet Technologies, Inc. (815)776-9465 */ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAknVCboACgkQ6QgvSNlBT3BKOwCcCflLnBbK6JqfHX0mnLlA2xMY RisAnRwRlSxC4aVsfzCkAg2ESbM4d6J0 =fiT1 -END PGP SIGNATURE- Stopped on MySQL backend... I'll remove the backends to test. + make DESTDIR=/var/tmp/vpopmail-5.5.0-build install -C backends/mysql make: Entering directory `/usr/src/packages/BUILD/vpopmail-5.5.0/backends/mysql' /usr/bin/install -c vmysql.so /var/tmp/vpopmail-5.5.0-build/usr/lib64/vmysql.so rm -f /var/tmp/vpopmail-5.5.0-build/etc/vpopmail/vpopmail.authmodule ln -s /var/tmp/vpopmail-5.5.0-build/usr/lib64/vmysql.so /var/tmp/vpopmail-5.5.0-build/etc/vpopmail/vpopmail.authmodule if ! test -r /var/tmp/vpopmail-5.5.0-build/etc/vpopmail/vpopmail.mysql; then \ /usr/bin/install -c -o vpopmail -g vchkpw -m 0640 vpopmail.mysql /var/tmp/vpopmail-5.5.0-build/etc/vpopmail/vpopmail.mysql; \ fi /usr/bin/install: cannot change ownership of `/var/tmp/vpopmail-5.5.0-build/etc/vpopmail/vpopmail.mysql': Operation not permitted make: *** [install] Error 1 make: Leaving directory `/usr/src/packages/BUILD/vpopmail-5.5.0/backends/mysql' error: Bad exit status from /var/tmp/rpm-tmp.17942 (%install) -- [ ]'s Aledr - Alexandre OpenSource Solutions for SmallBusiness Problems !DSPAM:49d50e1932685873721188!
Re: [vchkpw] Test FHS patch
On Thu, Apr 2, 2009 at 4:14 PM, Matt Brookings m...@inter7.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 aledr wrote: + make DESTDIR=/var/tmp/vpopmail-5.5.0-build install -C backends/mysql make: Entering directory `/usr/src/packages/BUILD/vpopmail-5.5.0/backends/mysql' /usr/bin/install -c vmysql.so /var/tmp/vpopmail-5.5.0-build/usr/lib64/vmysql.so rm -f /var/tmp/vpopmail-5.5.0-build/etc/vpopmail/vpopmail.authmodule ln -s /var/tmp/vpopmail-5.5.0-build/usr/lib64/vmysql.so /var/tmp/vpopmail-5.5.0-build/etc/vpopmail/vpopmail.authmodule if ! test -r /var/tmp/vpopmail-5.5.0-build/etc/vpopmail/vpopmail.mysql; then \ /usr/bin/install -c -o vpopmail -g vchkpw -m 0640 vpopmail.mysql /var/tmp/vpopmail-5.5.0-build/etc/vpopmail/vpopmail.mysql; \ fi /usr/bin/install: cannot change ownership of `/var/tmp/vpopmail-5.5.0-build/etc/vpopmail/vpopmail.mysql': Operation not permitted Woops. Missed the postgres and MySQL backends. Will fix this. - -- /* Matt Brookings m...@inter7.com GnuPG Key D9414F70 Software developer Systems technician Inter7 Internet Technologies, Inc. (815)776-9465 */ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAknVDpwACgkQ6QgvSNlBT3CLkACfa4jz5XXlanUV1KCKuZyaELhy aXEAoIccdusGXrO7Njzqwn1WOwULleyY =6g/v -END PGP SIGNATURE- Without the backends It compiled and installed successfully. I'll attach my log on a private mail to not mess the list. Thanks! -- [ ]'s Aledr - Alexandre OpenSource Solutions for SmallBusiness Problems !DSPAM:49d511df32681252817659!
Re: [vchkpw] Deleting primary domain; keeping alias domains
Hello, I would like to unsubscribe to this list. Thank you. From: Rick Widmer vch...@developersdesk.com To: vchkpw@inter7.com Sent: Wednesday, April 1, 2009 5:52:17 AM Subject: Re: [vchkpw] Deleting primary domain; keeping alias domains John Simpson wrote: so it looks like the only non-trivial thing which hasn't been covered already is updating the vpasswd file and running vmkpasswd to rebuild the vpasswd.cdb file. As long as you don't have any ezmlm mailing lists... I believe the domain name appears in come of its control files. Rick !DSPAM:49d51c2632682524914421!
Re: [vchkpw] Deleting primary domain; keeping alias domains
Instead of jumping all of these hoops, I find that it's easier to manually remove the real domain from all files in /var/qmail/controls and its entry in users/assign. Then edit the alias entry in users/ assign to have the new real domain in the second column. You'll have to run qmail-newu, qmail-newmrh and -HUP qmail-send. Keep the directory name the same to avoid breaking .qmail files, autoresponders, mailing lists, etc. If you really want to rename the directory, create a symlink with the old name. (You'll still want to grep the config files of each mailing -Tom (Sent from my iPhone) !DSPAM:49d582f732681184643329!