Re: [vchkpw] TMDA + vpopmail + qmail + squirrelmail (?)
Hi Marcio, On Wed, 2004-06-02 at 06:43, Márcio Luciano Donada wrote: > This user your web server is 'www' (apache 1.3.31 on FreeBSD 4.10-STABLE) > Permissons is altered in the domains (vpopmail) drwx-- for drwxrwx--- > (770) e group www is on vchkpw, is probleman persist Is it practical for you to run the server as 'vpopmail:vchkpw'? If not, I think you need to make the permissions on /usr/local/vpopmail to drwxrwx--- and also all the way down to and including the user's mail directory as well. HTH. Alan
Re: [vchkpw] TMDA + vpopmail + qmail + squirrelmail (?)
Hi, Alan This user your web server is 'www' (apache 1.3.31 on FreeBSD 4.10-STABLE) Permissons is altered in the domains (vpopmail) drwx-- for drwxrwx--- (770) e group www is on vchkpw, is probleman persist File not found: /usr/local/vpopmail/domains/domain.com/marcio/.tmda/lists/whitelist #cat /etc/group www:*:80:vchkpw vchkpw:*:89:www []'s Márcio > > What user is your web server running as? I think it needs permissions > to read right through from the parent directory. I think Vpopmail uses > the following directory permissions: > > drwx-- > > I get around this by running the web server as vpopmail:vchkpw (since > the webmail is sitting on the mail server, and is only used for webmail, > then this doesn't usually pose a problem) > > Keep in mind as well that any files that are edited are done so as the > user the web server is running as; if that user is unable to write to > that file, then edits will fail. > > HTH. > > Alan > > > >
Re: [vchkpw] TMDA + vpopmail + qmail + squirrelmail (?)
Hi Marcio, On Mon, 2004-05-31 at 05:29, Márcio Luciano Donada wrote: > My webmail (squirrelmail) is in perfect workd, but, probleman in TMDA Tool, > look, > > File not found: > /usr/local/vpopmail/domains/domain.com/marcio/.tmda/lists/whitelist What user is your web server running as? I think it needs permissions to read right through from the parent directory. I think Vpopmail uses the following directory permissions: drwx-- I get around this by running the web server as vpopmail:vchkpw (since the webmail is sitting on the mail server, and is only used for webmail, then this doesn't usually pose a problem) Keep in mind as well that any files that are edited are done so as the user the web server is running as; if that user is unable to write to that file, then edits will fail. HTH. Alan
Re: [vchkpw] TMDA + vpopmail + qmail + squirrelmail (?)
Hi, Alan Murrell My webmail (squirrelmail) is in perfect workd, but, probleman in TMDA Tool, look, File not found: /usr/local/vpopmail/domains/domain.com/marcio/.tmda/lists/whitelist #cd /usr/local/vpopmail/domains/domain.com/marcio/.tmda/lists/ # ls -l total 2 -rw-r--r-- 1 vpopmail vchkpw 0 Apr 30 22:31 blacklist -rw-r--r-- 1 vpopmail vchkpw 1089 May 28 11:59 whitelist ? []'s Márcio > Hi Marcio, > > I recently got this setup with the help of someone on the TMDA list. I > am not sure if he is on this list, but I will post what he posted for me > on the TMDA list, and hope that he does not mind. Full credit for this > setup goes to Carlos Averett (I will withold his email address for > privacy reasons) > > In the 'tmdatools' Squirrelmail plugin: > > = tmdatools_config.php = > Added: > // Cyt0plas - ok, let's do virtualhosting support here > $uinfo = split ('@', $_SESSION['username']); > $user = $uinfo[0]; $domain = $uinfo[1]; > > Changed: > $plugin_tmdatools_homedir = "/home/vpopmail/domains/$domain"; > $plugin_tmdatools_editfiles[0]["title"] = "Whitelist"; > $plugin_tmdatools_editfiles[0]["fname"] = > "$plugin_tmdatools_homedir/$user/.tmda/lists/whitelist"; > > $plugin_tmdatools_editfiles[1]["title"] = "Blacklist"; > $plugin_tmdatools_editfiles[1]["fname"] = > "$plugin_tmdatools_homedir/$user/.tmda/lists/blacklist"; > > $plugin_tmdatools_editfiles[2]["title"] = "Confirmed Senders"; > $plugin_tmdatools_editfiles[2]["fname"] = > "$plugin_tmdatools_homedir/$user/.tmda/lists/confirmed"; > > $plugin_tmdatools_editfiles[3]["title"] = "TMDA User Config File"; > $plugin_tmdatools_editfiles[3]["fname"] = > "$plugin_tmdatools_homedir/$user/.tmda/config"; > > $plugin_tmdatools_editfiles[4]["title"] = "TMDA Incoming Filter"; > $plugin_tmdatools_editfiles[4]["fname"] = > "$plugin_tmdatools_homedir/$user/.tmda/filters/incoming"; > > $plugin_tmdatools_editfiles[5]["title"] = "TMDA Outgoing Filter"; > $plugin_tmdatools_editfiles[5]["fname"] = > "$plugin_tmdatools_homedir/$user/.tmda/filters/outgoing"; > > $plugin_tmdatools_editfiles[6]["title"] = "Request Confirmation > Template"; > $plugin_tmdatools_editfiles[6]["fname"] = > "$plugin_tmdatools_homedir/$user/.tmda/templates/confirm_request.txt"; > > $plugin_tmdatools_editfiles[7]["title"] = "Acceptance Confirmation > Template"; > $plugin_tmdatools_editfiles[7]["fname"] = > "$plugin_tmdatools_homedir/$user/.tmda/templates/confirm_accept.txt"; > > $plugin_tmdatools_editfiles[8]["title"] = "Bounce Template"; > $plugin_tmdatools_editfiles[8]["fname"] = > "$plugin_tmdatools_homedir/$user/.tmda/templates/bounce.txt"; > = End tmdatools_config.php = > > Note: I added [6], [7], and [8] to my own configuration to allow users > to custome those texts. > > = Begin address.php = > Changed: > if ($tmdatools_submit) > { > // Cyt0plas - Get user and domain > $uinfo = split('@', $_SESSION['username']); > $username = $uinfo[0]; $domain = $uinfo[1]; > > $command = $plugin_tmdatools_tmdadir . "bin/tmda-address"; > > if (file_exists($command)) > { > $config = '/home/vpopmail/domains/' . $domain . '/' . $username . > '/.tmda/config'; > $command .= ' -a ' . $username . '@' . $domain . ' -c ' . $config . > ' > --'.$tmdatools_address.' '.$tmdatools_address_text; > > $address = exec($command); > > echo $address; > } > else > { > echo _("File not found").': '.$command.''; > } > } > = End address.php = > > = pending.php = > Added: > // Cyt0plas - Get user and domain > $uinfo = split('@', $_SESSION['username']); > $username = $uinfo[0]; $domain = $uinfo[1]; > $config = '/home/vpopmail/domains/' . $domain . '/' . $username . > '/.tmda/config'; > > Changed: > Basically, I changed all occurences of > $tmdatools_pending = $plugin_tmdatools_tmdadir . "bin/tmda-pending" > to > $tmdatools_pending = $plugin_tmdatools_tmdadir . "bin/tmda-pending -c > $config"; > = End pending.php = > > I hope this helps. > > Sincerely, > > Alan Murrell > > >
Re: [vchkpw] TMDA + vpopmail + qmail + squirrelmail (?)
Hi Marcio, On Sun, 2004-05-30 at 14:45, Márcio Luciano Donada wrote: > Somebody of the group uses TMDA + qmail + vpopmail + squirrelmail? It would > like to use plugin to carry through the possible changes in the TMDA that > the customer comes to want, but I am not obtaining, if somebody uses, can > give one help? I recently got this setup with the help of someone on the TMDA list. I am not sure if he is on this list, but I will post what he posted for me on the TMDA list, and hope that he does not mind. Full credit for this setup goes to Carlos Averett (I will withold his email address for privacy reasons) In the 'tmdatools' Squirrelmail plugin: = tmdatools_config.php = Added: // Cyt0plas - ok, let's do virtualhosting support here $uinfo = split ('@', $_SESSION['username']); $user = $uinfo[0]; $domain = $uinfo[1]; Changed: $plugin_tmdatools_homedir = "/home/vpopmail/domains/$domain"; $plugin_tmdatools_editfiles[0]["title"] = "Whitelist"; $plugin_tmdatools_editfiles[0]["fname"] = "$plugin_tmdatools_homedir/$user/.tmda/lists/whitelist"; $plugin_tmdatools_editfiles[1]["title"] = "Blacklist"; $plugin_tmdatools_editfiles[1]["fname"] = "$plugin_tmdatools_homedir/$user/.tmda/lists/blacklist"; $plugin_tmdatools_editfiles[2]["title"] = "Confirmed Senders"; $plugin_tmdatools_editfiles[2]["fname"] = "$plugin_tmdatools_homedir/$user/.tmda/lists/confirmed"; $plugin_tmdatools_editfiles[3]["title"] = "TMDA User Config File"; $plugin_tmdatools_editfiles[3]["fname"] = "$plugin_tmdatools_homedir/$user/.tmda/config"; $plugin_tmdatools_editfiles[4]["title"] = "TMDA Incoming Filter"; $plugin_tmdatools_editfiles[4]["fname"] = "$plugin_tmdatools_homedir/$user/.tmda/filters/incoming"; $plugin_tmdatools_editfiles[5]["title"] = "TMDA Outgoing Filter"; $plugin_tmdatools_editfiles[5]["fname"] = "$plugin_tmdatools_homedir/$user/.tmda/filters/outgoing"; $plugin_tmdatools_editfiles[6]["title"] = "Request Confirmation Template"; $plugin_tmdatools_editfiles[6]["fname"] = "$plugin_tmdatools_homedir/$user/.tmda/templates/confirm_request.txt"; $plugin_tmdatools_editfiles[7]["title"] = "Acceptance Confirmation Template"; $plugin_tmdatools_editfiles[7]["fname"] = "$plugin_tmdatools_homedir/$user/.tmda/templates/confirm_accept.txt"; $plugin_tmdatools_editfiles[8]["title"] = "Bounce Template"; $plugin_tmdatools_editfiles[8]["fname"] = "$plugin_tmdatools_homedir/$user/.tmda/templates/bounce.txt"; = End tmdatools_config.php = Note: I added [6], [7], and [8] to my own configuration to allow users to custome those texts. = Begin address.php = Changed: if ($tmdatools_submit) { // Cyt0plas - Get user and domain $uinfo = split('@', $_SESSION['username']); $username = $uinfo[0]; $domain = $uinfo[1]; $command = $plugin_tmdatools_tmdadir . "bin/tmda-address"; if (file_exists($command)) { $config = '/home/vpopmail/domains/' . $domain . '/' . $username . '/.tmda/config'; $command .= ' -a ' . $username . '@' . $domain . ' -c ' . $config . ' --'.$tmdatools_address.' '.$tmdatools_address_text; $address = exec($command); echo $address; } else { echo _("File not found").': '.$command.''; } } = End address.php = = pending.php = Added: // Cyt0plas - Get user and domain $uinfo = split('@', $_SESSION['username']); $username = $uinfo[0]; $domain = $uinfo[1]; $config = '/home/vpopmail/domains/' . $domain . '/' . $username . '/.tmda/config'; Changed: Basically, I changed all occurences of $tmdatools_pending = $plugin_tmdatools_tmdadir . "bin/tmda-pending" to $tmdatools_pending = $plugin_tmdatools_tmdadir . "bin/tmda-pending -c $config"; = End pending.php = I hope this helps. Sincerely, Alan Murrell
[vchkpw] TMDA + vpopmail + qmail + squirrelmail (?)
Hello Group, Somebody of the group uses TMDA + qmail + vpopmail + squirrelmail? It would like to use plugin to carry through the possible changes in the TMDA that the customer comes to want, but I am not obtaining, if somebody uses, can give one help? [ ]'s Márcio