I am interested in the integration of Exim4U with pure-ftpd, but I am not a php programmer. There have been some offers by some programmers on this forum and I wonder if anyone is willing to take the gauntlet:-)
So I start the debate.
The details of the bits required to be used are already there. What needs to be done is just to incorporate the logic into the relevant php scripts for managing the domains and users.
What I have used before (actually from web sources - <a href="http://osdir.com/ml/mail.exim.vexim.devel/2003-11/msg00056.html\">http://osdir.com/ml/mail.exim.vexim.devel/2003-11/msg00056.html\
ALTER TABLE `users` ADD `ftp_dir` VARCHAR(255);
ALTER TABLE `users` ADD `ftp_enable` TINYINT(1) DEFAULT '0' NOT NULL; ALTER TABLE `users` ADD `ftp_quota` INT DEFAULT '100'; ALTER TABLE `users` ADD `ULBandwidth` SMALLINT(5) DEFAULT '0' NOT NULL;
ALTER TABLE `users` ADD `DLBandwidth` SMALLINT(5) DEFAULT '0' NOT NULL; ALTER TABLE `users` ADD `ipaccess` varchar(15) DEFAULT '*' NOT NULL; ALTER TABLE `users` ADD `QuotaFiles` int(11) DEFAULT '0' NOT NULL;
update users set ftp_enable ='1';
update users set ftp_dir = '/var/spool/virtual/DOMAIN/ftpdata/USER1' where username = 'USER1@DOMAIN'; update users set ftp_quota ='100';
/var/spool/virtual = $mailroot
When a user is added
1 we need to decide whether or not ftp_enable = 0 or 1. Default should be inherited from domain settings, whether it is
enabled for domain or not.
2. decide on what is the ftp_quota for the user. Default should not exceed domain ftp_quota, just like mail_quota. So maybe we need:
ALTER TABLE `domains` ADD `ftp_quota` INT DEFAULT '100';
3. Assign the user ftp_dir relative to domain's $mailroot .
ftp quota should not interfere with mail quota if both are implemented.