1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168
|
<?xml version="1.0" encoding="iso-8859-1"?>
<reference id="ref.vmailmgr">
<title>Vmailmgr functions</title>
<titleabbrev>Vmailmgr</titleabbrev>
<partintro>
<simpara>
Estas funciones requieren<ulink url="&url.qmail;">qmail</ulink> y el
<ulink url="&url.vmailmgr;">paquete vmailmgr</ulink> de Bruce Guenter.</simpara>
<simpara>
Para todas las funciones, se definen las dos variables como :
cadena vdomain el nombre de su dominio virtual
(vdomain.com) cadena basepwd la contraseña del usuario 'real' del que
dependen los usuarios virtuales</simpara>
<simpara>
Only up to 8 characters are recognized in passwords for virtual
users</simpara>
<simpara>
Compare el estado que devuelve en response.h</simpara>
<para>
<simplelist>
<member>O ok</member>
<member>1 malo</member>
<member>2 error</member>
<member>3 error de conexión</member>
</simplelist></para>
<para>
Problemas conocidos: <function>vm_deluser</function> no borra
El directorio del usuario como es debido. <function>vm_addalias</function>
Actualmente no funciona correctamente.</para>
<para>
<informalexample>
<programlisting>
<?php
dl("php3_vmailmgr.so"); //carga la librería.
$vdomain="vdomain.com";
$basepwd="password";
?>
</programlisting>
</informalexample></para>
</partintro>
<refentry id="function.vm-adduser">
<refnamediv>
<refname>vm_adduser</refname>
<refpurpose>Añade un nuevo usuario virtual con contraseña</refpurpose>
</refnamediv>
<refsect1>
<title>Descripción</title>
<methodsynopsis>
<type>int</type><methodname>vm_adduser</methodname>
<methodparam><type>string</type><parameter>vdomain</parameter></methodparam>
<methodparam><type>string</type><parameter>basepwd</parameter></methodparam>
<methodparam><type>string</type><parameter>newusername</parameter></methodparam>
<methodparam><type>string</type><parameter>newuserpassword</parameter></methodparam>
</methodsynopsis>
<simpara>
Añade un nuevo usuario virtual con
contraseña. <parameter>newusername</parameter> es el nombre de usuario de correo electrónico
name and <parameter>newuserpassword</parameter> La contraseña para
este usuario.</simpara>
</refsect1>
</refentry>
<refentry id="function.vm-addalias">
<refnamediv>
<refname>vm_addalias</refname>
<refpurpose>Añade un alias a un usuario virtual</refpurpose>
</refnamediv>
<refsect1>
<title>Descripción</title>
<methodsynopsis>
<type>int</type><methodname>vm_addalias</methodname>
<methodparam><type>string</type><parameter>vdomain</parameter></methodparam>
<methodparam><type>string</type><parameter>basepwd</parameter></methodparam>
<methodparam><type>string</type><parameter>username</parameter></methodparam>
<methodparam><type>string</type><parameter>alias</parameter></methodparam>
</methodsynopsis>
<simpara>
Añade un alias a un usuario virtual. <parameter>username</parameter>
Es el nombre de usuario de correo electrónico y <parameter>alias</parameter>
Es un alias para este usuario.</simpara>
</refsect1>
</refentry>
<refentry id="function.vm-passwd">
<refnamediv>
<refname>vm_passwd</refname>
<refpurpose>Cambia la contraseña de un usuario virtual</refpurpose>
</refnamediv>
<refsect1>
<title>Descripción</title>
<methodsynopsis>
<type>int</type><methodname>vm_passwd</methodname>
<methodparam><type>string</type><parameter>vdomain</parameter></methodparam>
<methodparam><type>string</type><parameter>username</parameter></methodparam>
<methodparam><type>string</type><parameter>password</parameter></methodparam>
<methodparam><type>string</type><parameter>newpassword</parameter></methodparam>
</methodsynopsis>
<simpara>
Cambia la contraseña de un usuario virtual. <parameter>username</parameter>
Es el nombre de usuario de correo electrónico, <parameter>password</parameter> la
Contraseña actual del usuario, y <parameter>newpassword</parameter>
La nueva contraseña.</simpara>
</refsect1>
</refentry>
<refentry id="function.vm-delalias">
<refnamediv>
<refname>vm_delalias</refname>
<refpurpose>Borra un alias</refpurpose>
</refnamediv>
<refsect1>
<title>Descripción</title>
<methodsynopsis>
<type>int</type><methodname>vm_delalias</methodname>
<methodparam><type>string</type><parameter>vdomain</parameter></methodparam>
<methodparam><type>string</type><parameter>basepwd</parameter></methodparam>
<methodparam><type>string</type><parameter>alias</parameter></methodparam>
</methodsynopsis>
<simpara>
Borra un alias.</simpara>
</refsect1>
</refentry>
<refentry id="function.vm-deluser">
<refnamediv>
<refname>vm_deluser</refname>
<refpurpose>Borra un usuario virtual</refpurpose>
</refnamediv>
<refsect1>
<title>Descripción</title>
<methodsynopsis>
<type>int</type><methodname>vm_deluser</methodname>
<methodparam><type>string</type><parameter>vdomain</parameter></methodparam>
<methodparam><type>string</type><parameter>username</parameter></methodparam>
</methodsynopsis>
<simpara>
Borra un usuario virtual..</simpara>
</refsect1>
</refentry>
</reference>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
Traducido por Salvador López Barceló salvapc@accesosis.es
-->
|