[dev] [PATCH] [vacation] Qmail driver
Tom Evans
tevans at tachometry.com
Thu Sep 1 22:01:46 PDT 2005
This patch fixes some I/O problems we encountered with the Qmail driver
and adds some defensive logic to restore an original .qmail
configuration file after the vacation notice is removed. We also added a
few lines of code to select the proper radio button state for the UI if
possible.
We put quite a bit of work into making the vacation notifications work
consistently and securely in a Qmail-based virtual hosting environment.
For those of you who may be using ProFTPD, here's the secret sauce we
came up with (after much experimentation) in /etc/proftpd.include to
make an FTP connection on the internal (localhost) interface for
updating virtual user email accounts with the Horde vacation notice:
<VirtualHost localhost>
ServerName "Horde Vacation FTP Server"
AuthUserFile /var/qmail/users/passwd
DefaultRoot ~/%u
DefaultTransferMode binary
UseFtpUsers on
Umask 022
DirFakeUser on ~
<Directory ~>
GroupOwner popuser
</Directory>
</VirtualHost>
In particular, the "~/%u" setting for DefaultRoot really saved the day
by allowing us to drop into the virtual user's mailbox (although we
should note the additional security risk of this approach). There were
some other less interesting offline tweaks we used to manage the virtual
passwd file, but I'll spare you those details for now. Please let me
know if you have any comments or questions.
Regards,
Tom Evans
--
_______________________________
Open Source that means business.
http://www.tachometry.com/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vacation_patch.txt
Url: http://lists.horde.org/archives/dev/attachments/20050901/da26c732/vacation_patch.txt
More information about the dev
mailing list