[postfix-es] [Postfix-es] Saludo a la lista y primeras dudas

José Pérez Gómez debianita en matrix.merype.net
Lun Oct 4 19:29:48 CEST 2004


Buenas.
En primer lugar quiero saludar a todos los miembros de la lista, a la
que entro hoy por primera vez.
Dicho esto, empezamos con las dudas:
He intentado configurar postfix siguiendo los artículos de bulma.net
sobre "Cómo configurar un potente servidor de correo I y II."
La cuestión es que creo que me funciona, pero lo que no logro es acceder
a la administración del correo (mailadmin) ni con el primer ni con el 2º
artículo. Llevo más de 2 semanas con el tema y estoy deseperadillo ya.

Os pego un tocho, pero supongo que cuanta más información mejor...

epe en matrix:~$ dpkg -l apache2 postfix sasl2*
Desired=Unknown/Install/Remove/Purge/Hold
| Estado=No/Instalado/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
|mayúsc.=malo)|/ Nombre         Versión        Descripción
+++-==============-==============-=====================================
=======
ii  apache2        2.0.51-2       Next generation, scalable, extendable
web se
ii  postfix        2.1.4-5        A high-performance mail transport
agent
ii  sasl2-bin      2.1.19-1.1     Programs for manipulating the SASL
users dat
pepe en matrix:~$   
Desempaqueté el directorio en /var/www/SSL/Passneeded/mailadmin/, pero
no soy 
capaz de entrar en /var/www/SSL/Pasneeded/mailadmin/mailadmin2/. Cada
vez que 
intento entrar me pide login y pass, le digo que admin y mailadmin, 
respectivamente, y falla la autentificación repetidamente. 
He hecho varias pruebas: crear un fichero .htpasswd en el directorio
adecuado, 
intentar que entre leyendo la base de datos, etc. Pero no doy con el
gazapo. 
Tampoco sé si lo hago bien...:

matrix:/home/pepe# cat /etc/apache2/sites-enabled/matrix-SSL
<IfModule mod_ssl.c>
        <VirtualHost *:444>
            SSLEngine on
            SSLCertificateFile   
/etc/apache2/ssl/ssl.crt/matrix-server.crt
            SSLCertificateKeyFile
/etc/apache2/ssl/ssl.key/matrix-server.key
            SSLCertificateChainFile /etc/apache2/ssl/ssl.crt/my-ca.crt
            SSLCACertificateFile /etc/apache2/ssl/ssl.crt/my-ca.crt
            BrowserMatch "MSIE [1-4]" nokeepalive ssl-unclean-shutdown \
                                      downgrade-1.0 force-response-1.0
            BrowserMatch "MSIE [5-9]" ssl-unclean-shutdown
            SSLCipherSuite
ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:
+SSLv2:+EXP
            SSLProtocol all -SSLv2

            ServerAdmin hostmaster en merype.net
            ServerName matrix.merype.net:444

            DocumentRoot /var/www/SSL
            <Directory />
                Options FollowSymLinks
                AllowOverride None
            </Directory>
            <Directory "/var/www/SSL">
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
            </Directory>

            ScriptAlias /cgi-local/ /var/www/SSL/cgi-bin/
            ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
            <Directory "/var/www/SSL/cgi-bin">
                AllowOverride None
                Options None
                Order allow,deny
                Allow from all
            </Directory>
            <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options None
                Order allow,deny
                Allow from all
            </Directory>

            ErrorLog /var/www/SSL/logs/error.log-444-SSL

            LogLevel warn

            CustomLog /var/www/SSL/logs/access.log-444-SSL combined
            ServerSignature On

            Alias /icons/ "/usr/share/apache2/icons/"
            Alias /manual/ "/usr/share/doc/apache2-doc/manual/"
            <Directory "/usr/share/apache2/icons">
                Options Indexes MultiViews
                AllowOverride None
                Order allow,deny
                Allow from all
            </Directory>

            <Directory "/var/www/SSL/Passneeded">
                AuthType Basic
                AuthName "Username and Password Required"
                AuthUserFile /etc/apache2/.htpasswd
                Require valid-user
            </Directory>

# Prueba con .htpasswd:
#           <Directory "/var/www/SSL/Passneeded/mailadmin/mailadmin2">
#               AuthType Basic
#               AuthName "Mail administration"
#          AuthUserFile
#          /var/www/SSL/Passneeded/mailadmin/mailadmin2/.htpasswd
#               Require valid-user
#           </Directory>

# Prueba con el módulo libapache2-mod-authmysql -o algo así-:

            <Directory "/var/www/SSL/Passneeded/mailadmin/mailadmin2">
                AuthName "Mail administration"
                AuthMySQL_Host localhost
                AuthMySQL_DB mail
                AuthMySQL_User mail
                AuthMySQL_Password XXXXXXXX (oculto la clave, a posta)
                AuthMySQL_Password_Table admins
                AuthMySQL_Username_Field name
                AuthMySQL_Password_Field pass
            </Directory>

# Falta algo?

            <Directory "/var/www/SSL/Certneeded">
                SSLVerifyClient require
                SSLVerifyDepth 1
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
            </Directory>

            <Directory "/var/www/SSL/PassAndCert">
                SSLVerifyClient require
                SSLVerifyDepth 1
                AuthType Basic
                AuthName "Restricted Area"
                AuthUserFile /etc/apache2/.htpasswd
                Require valid-user
            </Directory>

        </VirtualHost>
</IfModule>
matrix:/home/pepe#    

Verifico que el módulo está cargado:
cat: /etc/apache2/mods-enabled: Es un directorio
matrix:/home/pepe# ls -l /etc/apache2/mods-enabled |grep auth*
lrwxrwxrwx  1 root root 41 2004-09-22 18:19 auth_dbm.load 
-> /etc/apache2/mods-available/auth_dbm.load
lrwxrwxrwx  1 root root 44 2004-09-22 18:19 auth_digest.load 
-> /etc/apache2/mods-available/auth_digest.load
lrwxrwxrwx  1 root root 43 2004-09-22 18:16 auth_mysql.load 
-> /etc/apache2/mods-available/auth_mysql.load
lrwxrwxrwx  1 root root 41 2004-09-22 18:16 auth_pam.load 
-> /etc/apache2/mods-available/auth_pam.load
matrix:/home/pepe# 
matrix:/home/pepe# a2enmod auth_pam
This module is already enabled!
matrix:/home/pepe# a2enmod auth_mysql
This module is already enabled!
matrix:/home/pepe#   

A ver si van a ser los permisos:

matrix:/home/pepe# ls -l /var/www/SSL/Passneeded/mailadmin/mailadmin2
total 108
-rw-r--r--  1 www-data root  1895 2003-12-03 18:23 auth.php
-rw-r--r--  1 www-data root  1721 2003-12-03 18:49 chpass.php
-rw-r--r--  1 www-data root  1414 2004-09-14 16:31 config.php
-rw-r--r--  1 www-data root 10625 2003-12-09 17:09 edit.php
-rw-r--r--  1 www-data root 19956 2004-09-14 16:42 functions.php
-rw-r--r--  1 www-data root 18009 2003-12-12 16:04 gpl.txt
drwxr-xr-x  2 www-data root  4096 2003-11-26 16:25 icons
-rw-r--r--  1 www-data root   906 2003-12-09 11:29 inc.php
-rw-r--r--  1 www-data root 11054 2004-09-26 21:43 index.php
-rw-r--r--  1 www-data root  6120 2003-12-09 12:41 modify.php
-rw-r--r--  1 www-data root  5473 2003-12-09 12:52 search.php
drwx------  2 www-data root  4096 2004-08-25 17:16 sql
-rw-r--r--  1 www-data root    63 2003-12-09 13:12 TODO
matrix:/home/pepe#       

Los logs:
matrix:/home/pepe# cat /var/www/SSL/logs/error.log-444-SSL |grep Sep
|grep 28
[Tue Sep 28 06:51:33 2004] [error] [client 172.26.0.3] File does not 
exist: /var/www/SSL/favicon.ico
[Tue Sep 28 19:01:53 2004] [error] [client 172.26.0.3] user mail not 
found: /Passneeded/mailadmin/mailadmin2/, referer: 
https://matrix.merype.net:444/Passneeded/mailadmin/
[Tue Sep 28 19:02:00 2004] [error] [client 172.26.0.3] user mail not 
found: /Passneeded/mailadmin/mailadmin2/, referer: 
https://matrix.merype.net:444/Passneeded/mailadmin/
[Tue Sep 28 19:02:09 2004] [error] [client 172.26.0.3] user mail not 
found: /Passneeded/mailadmin/mailadmin2/, referer: 
https://matrix.merype.net:444/Passneeded/mailadmin/
[Tue Sep 28 19:02:18 2004] [error] [client 172.26.0.3] user admin: 
authentication failure for "/Passneeded/mailadmin/mailadmin2/": Password

Mismatch, referer: https://matrix.merype.net:444/Passneeded/mailadmin/
[Tue Sep 28 20:03:41 2004] [error] [client 172.26.0.3] user pepe: 
authentication failure for "/Passneeded/mailadmin/mailadmin2/": Password

Mismatch, referer: https://matrix.merype.net:444/Passneeded/mailadmin/
[Tue Sep 28 20:03:42 2004] [error] [client 172.26.0.3] user pepe: 
authentication failure for "/Passneeded/mailadmin/mailadmin2/": Password

Mismatch, referer: https://matrix.merype.net:444/Passneeded/mailadmin/
[Tue Sep 28 20:03:48 2004] [error] [client 172.26.0.3] user  not 
found: /Passneeded/mailadmin/mailadmin2/, referer: 
https://matrix.merype.net:444/Passneeded/mailadmin/
matrix:/home/pepe#    

Parte del /var/mysql/mysql.log:

040928 20:14:15      47 Connect     mail en localhost on
                     47 Init DB     mail
                     47 Quit
                     48 Connect     mail en localhost on
                     48 Init DB     mail
                     48 Quit
040928 20:14:20      49 Connect     mail en localhost on
                     49 Init DB     mail
                     49 Quit
                     50 Connect     mail en localhost on
                     50 Init DB     mail
                     50 Quit
040928 20:14:28      51 Connect     mail en localhost on
                     51 Init DB     mail
                     51 Quit
                     52 Connect     mail en localhost on
                     52 Init DB     mail
040928 20:14:29      52 Quit
040928 20:14:35      53 Connect     mail en localhost on
                     53 Init DB     mail
                     53 Quit
matrix:/home/pepe# 
Parece que intente conectar con la base mail, pero no selecciona nada.

Creé una tabla admins dentro de la base mail -con phpmyadmin- con los
campos 
name, pass y dominio. En esa tabla cree una fila con admin, mailadmin y
todos 
-name, pass y dominio, respectivamente-, pero no consigo entrar. Tampoco

entraba si lo ponía en un lugar que no fuese seguro, vamos no he
conseguido 
entrar nunca en la administración del correo, ni usando mailadmin2 ni 
mailadmin de Javi Polo. Seguro que es una tontería, pero no hay forma.

Más datos:

pepe en matrix:~$ dpkg -l libapache2*
Desired=Unknown/Install/Remove/Purge/Hold
| Estado=No/Instalado/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
|mayúsc.=malo)|/ Nombre         Versión        Descripción
+++-==============-==============-=====================================
=======
ii  libapache2-mod 4.3.6          Apache 2 module for MySQL
authentication
ii  libapache2-mod 1.1.1-4.1      Module for Apache2 which authenticate
using
ii  libapache2-mod 4.3.8-12       server-side, HTML-embedded scripting
languag
pepe en matrix:~$     
matrix:/home/pepe# apache2 -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80                   matrix.merype.net
(/etc/apache2/sites-enabled/matrix:2)
*:444                  matrix.merype.net 
(/etc/apache2/sites-enabled/matrix-SSL:2)
Syntax OK
matrix:/home/pepe#     

El tema del correo en sí va, con el SquirrelMail y todo, creando cuentas

manualmente, por eso. Pero la administración es un calvario. Llevo 2
semanas 
dedicándole todo mi tiempo libre a ver si lo echo a andar, pero ya no
llego a 
más. Por lo que he visto en los artículos, la cosa parecía trivial: 
descomprimir en un sitio visible por web y a funcionar, pero no lo
consigo. 
Estoy frustradísimo.



Gracias anticipadas por vuestra paciencia.
Un saludo.

Pepe
-
Para ENVIAR mensajes a esta lista tienes que estar SUSCRITO a ella.
.
Envía la linea "unsubscribe postfix-es" en el cuerpo de un mensaje
a majordomo en WL0.org para quitarte de la lista.



Más información sobre la lista de distribución Postfix-es