Here is a very minor patch to the TMDA contrib/vadduser-tmda script. It does 2 things:
1) Removes the trailing slash on the TMDAROOT and VPOPROOT variables. On my system (Debian woody), until I made this change the .qmail-* files generated would have double slashes when these variables were expanded. While that doesn't technically hurt anything, I thought it might look nicer if it only used one slash.
2) Changes the .qmail-user-default symlink to a relative path. This just makes "ls -al" listings nicer when you go into the domain directory:
Before: ln -s /home/vpopmail/domains/mysite.com/user/.qmail-user /home/vpopmail/domains/mysite.com/user/.qmail-user-default
After: ln -s .qmail-user /home/vpopmail/domains/mysite.com/user/.qmail-user-default
Hopefully I haven't overlooked some issue that has already been solved here. If so, my apologies in advance!
Thanks, -Nathan Rosenquist http://rsnapshot.sourceforge.net/
? tmda.diff
Index: contrib/vadduser-tmda
===================================================================
RCS file: /cvsroot/tmda/tmda/contrib/vadduser-tmda,v
retrieving revision 1.6
diff -u -r1.6 vadduser-tmda
--- contrib/vadduser-tmda 24 Apr 2003 19:31:08 -0000 1.6
+++ contrib/vadduser-tmda 21 Oct 2003 06:26:33 -0000
@@ -62,8 +62,8 @@
##############################################################################
# Configuration Variables #
-TMDAROOT="/usr/local/tmda/"
-VPOPROOT="/var/vpopmail/"
+TMDAROOT="/usr/local/tmda"
+VPOPROOT="/var/vpopmail"
PATH="$VPOPROOT/bin:$TMDAROOT/bin:$PATH"
VTMDARC="$VPOPROOT/etc/vtmdarc"
@@ -155,7 +155,7 @@
|preline -f $TMDAROOT/bin/tmda-filter -c $VUSERDIR/.tmda/config -t
$VUSERDIR/.tmda/templates/
|$VPOPROOT/bin/vdelivermail '' $VUSERDIR
VEOF
-ln -s $VDOMDIR/.qmail-${VUSERNAME} $VDOMDIR/.qmail-${VUSERNAME}-default
+ln -s .qmail-${VUSERNAME} $VDOMDIR/.qmail-${VUSERNAME}-default
# If we have a valid vtmdarc file then use it to create
# the users .tmda/config file.
_________________________________________________ tmda-workers mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-workers
