[postfix-es] problema con virtual domains

Amir Prync amirprync en gmail.com
Mar Jun 15 18:28:37 CEST 2004


Tengo un gentoo y hace una semana termine de instalar postfix (v.
2.0.19)+mysql+courier-imap+sasl
Y el problema que tengo es el siguiente :
Tengo un 2 usuarios configurados en la tabla user del mysql :
5 prueba en elgrupodelosn.com.ar 1234567 tester 1103 1103 /home/vmail
/home/vmail/elgrupodelosn.com.ar/prueba/.maildir/ y
6 tester en elgrupodelosn.com.ar 1234567 tester 1103 1103 /home/vmail
/home/vmail/elgrupodelosn.com.ar/tester/.maildir/ y
En la tabla Transport :
3 elgrupodelosn.com.ar virtual:

paso a enviar el email por un telnet: 
220 mail.elgrupodelosn.com.ar ESMTP Postfix 
ehlo mail.elgrupodelosn.com.ar 
250-mail.elgrupodelosn.com.ar 
250-PIPELINING 
250-SIZE 10240000 
250-VRFY 
250-ETRN 
250-STARTTLS 
250-AUTH CRAM-MD5 DIGEST-MD5 LOGIN PLAIN NTLM 
250-AUTH=CRAM-MD5 DIGEST-MD5 LOGIN PLAIN NTLM 
250 8BITMIME 
mail from: prueba en elgrupodelosn.com.ar 
250 Ok 
rcpt to: tester en elgrupodelosn.com.ar 
250 Ok 
data 
354 End data with <CR><LF>.<CR><LF> 
test 
. 
250 Ok: queued as A7E446E45F 

y les paso el log :
mx root # tail -fn 20 /var/log/messages |grep postfix
Jun 11 18:18:44 mx postfix/smtpd[10707]: < localhost[127.0.0.1]: rcpt
to: tester en elgrupodelosn.com.ar
Jun 11 18:18:44 mx postfix/smtpd[10707]: extract_addr: input:
tester en elgrupodelosn.com.ar
Jun 11 18:18:44 mx postfix/smtpd[10707]: extract_addr: result:
tester en elgrupodelosn.com.ar
Jun 11 18:18:44 mx postfix/smtpd[10707]: generic_checks: START 
Jun 11 18:18:44 mx postfix/smtpd[10707]: generic_checks:
name=permit_sasl_authenticated
Jun 11 18:18:44 mx postfix/smtpd[10707]: generic_checks:
name=permit_sasl_authenticated status=0
Jun 11 18:18:44 mx postfix/smtpd[10707]: generic_checks: name=permit_mynetworks 
Jun 11 18:18:44 mx postfix/smtpd[10707]: permit_mynetworks: localhost 127.0.0.1 
Jun 11 18:18:44 mx postfix/smtpd[10707]: match_hostname: localhost ~?
200.114.237.0/24
Jun 11 18:18:44 mx postfix/smtpd[10707]: match_hostaddr: 127.0.0.1 ~?
200.114.237.0/24
Jun 11 18:18:44 mx postfix/smtpd[10707]: match_hostname: localhost ~?
127.0.0.0/8
Jun 11 18:18:44 mx postfix/smtpd[10707]: match_hostaddr: 127.0.0.1 ~?
127.0.0.0/8
Jun 11 18:18:44 mx postfix/smtpd[10707]: generic_checks:
name=permit_mynetworks status=1
Jun 11 18:18:44 mx postfix/smtpd[10707]: connect to subsystem private/rewrite 
Jun 11 18:18:44 mx postfix/smtpd[10707]: send attr request = rewrite 
Jun 11 18:18:44 mx postfix/smtpd[10707]: send attr rule = canonicalize 
Jun 11 18:18:44 mx postfix/smtpd[10707]: send attr address =
tester en elgrupodelosn.com.ar
Jun 11 18:18:44 mx postfix/smtpd[10707]: private/rewrite socket:
wanted attribute: address
Jun 11 18:18:44 mx postfix/smtpd[10707]: input attribute name: address 
Jun 11 18:18:44 mx postfix/smtpd[10707]: input attribute value:
tester en elgrupodelosn.com.ar
Jun 11 18:18:44 mx postfix/smtpd[10707]: private/rewrite socket:
wanted attribute: (list terminator)
Jun 11 18:18:44 mx postfix/smtpd[10707]: input attribute name: (end) 
Jun 11 18:18:44 mx postfix/smtpd[10707]: rewrite_clnt: canonicalize:
tester en elgrupodelosn.com.ar -> tester en elgrupodelosn.com.ar
Jun 11 18:18:44 mx postfix/smtpd[10707]: send attr request = resolve 
Jun 11 18:18:44 mx postfix/smtpd[10707]: send attr address =
tester en elgrupodelosn.com.ar
Jun 11 18:18:44 mx postfix/smtpd[10707]: private/rewrite socket:
wanted attribute: transport
Jun 11 18:18:44 mx postfix/smtpd[10707]: input attribute name: transport 
Jun 11 18:18:44 mx postfix/smtpd[10707]: input attribute value: local 
Jun 11 18:18:44 mx postfix/smtpd[10707]: private/rewrite socket:
wanted attribute: nexthop
Jun 11 18:18:44 mx postfix/smtpd[10707]: input attribute value:
elgrupodelosn.com.ar
Jun 11 18:18:44 mx postfix/smtpd[10707]: private/rewrite socket:
wanted attribute: recipient
Jun 11 18:18:44 mx postfix/smtpd[10707]: input attribute name: recipient 
Jun 11 18:18:44 mx postfix/smtpd[10707]: input attribute value:
tester en elgrupodelosn.com.ar
Jun 11 18:18:44 mx postfix/smtpd[10707]: private/rewrite socket:
wanted attribute: flags
Jun 11 18:18:44 mx postfix/smtpd[10707]: input attribute name: flags 
Jun 11 18:18:44 mx postfix/smtpd[10707]: input attribute value: 256 
Jun 11 18:18:44 mx postfix/smtpd[10707]: private/rewrite socket:
wanted attribute: (list terminator)
Jun 11 18:18:44 mx postfix/smtpd[10707]: input attribute name: (end) 
Jun 11 18:18:44 mx postfix/smtpd[10707]: resolve_clnt_query:
`tester en elgrupodelosn.com.ar' -> t=`local' h=`elgrupodelosn.com.ar'
r=`tester en elgrupodelosn.com.ar'
Jun 11 18:18:44 mx postfix/smtpd[10707]: ctable_locate: install entry
key tester en elgrupodelosn.com.ar
Jun 11 18:18:44 mx postfix/smtpd[10707]: maps_find:
recipient_canonical_maps: tester en elgrupodelosn.com.ar: not found
Jun 11 18:18:44 mx postfix/smtpd[10707]: match_string:
elgrupodelosn.com.ar ~? mail.elgrupodelosn.com.ar
Jun 11 18:18:44 mx postfix/smtpd[10707]: match_string:
elgrupodelosn.com.ar ~? localhost.elgrupodelosn.com.ar
Jun 11 18:18:44 mx postfix/smtpd[10707]: match_string:
elgrupodelosn.com.ar ~? elgrupodelosn.com.ar
Jun 11 18:18:44 mx postfix/smtpd[10707]: maps_find:
recipient_canonical_maps: tester: not found
Jun 11 18:18:44 mx postfix/smtpd[10707]: maps_find:
recipient_canonical_maps: @elgrupodelosn.com.ar: not found
Jun 11 18:18:44 mx postfix/smtpd[10707]: mail_addr_find:
tester en elgrupodelosn.com.ar -> (not found)
Jun 11 18:18:44 mx postfix/smtpd[10707]: maps_find: canonical_maps:
tester en elgrupodelosn.com.ar: not found
Jun 11 18:18:44 mx postfix/smtpd[10707]: match_string:
elgrupodelosn.com.ar ~? mail.elgrupodelosn.com.ar
Jun 11 18:18:44 mx postfix/smtpd[10707]: maps_find:
recipient_canonical_maps: tester: not found
Jun 11 18:18:44 mx postfix/smtpd[10707]: maps_find:
recipient_canonical_maps: @elgrupodelosn.com.ar: not found
Jun 11 18:18:44 mx postfix/smtpd[10707]: mail_addr_find:
tester en elgrupodelosn.com.ar -> (not found)
Jun 11 18:18:44 mx postfix/smtpd[10707]: maps_find: canonical_maps:
tester en elgrupodelosn.com.ar: not found
Jun 11 18:18:44 mx postfix/smtpd[10707]: match_string:
elgrupodelosn.com.ar ~? mail.elgrupodelosn.com.ar
Jun 11 18:18:44 mx postfix/smtpd[10707]: match_string:
elgrupodelosn.com.ar ~? localhost.elgrupodelosn.com.ar
Jun 11 18:18:44 mx postfix/smtpd[10707]: match_string:
elgrupodelosn.com.ar ~? elgrupodelosn.com.ar
Jun 11 18:18:44 mx postfix/smtpd[10707]: maps_find: canonical_maps:
tester: not found
Jun 11 18:18:44 mx postfix/smtpd[10707]: maps_find: canonical_maps:
@elgrupodelosn.com.ar: not found
Jun 11 18:18:44 mx postfix/smtpd[10707]: mail_addr_find:
tester en elgrupodelosn.com.ar -> (not found)
Jun 11 18:18:44 mx postfix/smtpd[10707]: dict_mysql_lookup using sql
query: select destination from virtual where email =
'tester en elgrupodelosn.com.ar'
Jun 11 18:18:44 mx postfix/smtpd[10707]: dict_mysql: attempting to
connect to host unix:/var/run/mysqld/mysqld.sock
Jun 11 18:18:44 mx postfix/smtpd[10707]: dict_mysql: successful
connection to host unix:/var/run/mysqld/mysqld.sock
Jun 11 18:18:44 mx postfix/smtpd[10707]: dict_mysql: successful query
from host unix:/var/run/mysqld/mysqld.sock
Jun 11 18:18:44 mx postfix/smtpd[10707]: dict_mysql_lookup: retrieved 0 rows 
Jun 11 18:18:44 mx postfix/smtpd[10707]: maps_find:
virtual_alias_maps: tester en elgrupodelosn.com.ar: not found
Jun 11 18:18:44 mx postfix/smtpd[10707]: match_string:
elgrupodelosn.com.ar ~? mail.elgrupodelosn.com.ar
Jun 11 18:18:44 mx postfix/smtpd[10707]: dict_mysql_lookup using sql
query: select destination from virtual where email = 'tester'
Jun 11 18:18:44 mx postfix/smtpd[10707]: dict_mysql: successful query
from host unix:/var/run/mysqld/mysqld.sock
Jun 11 18:18:44 mx postfix/smtpd[10707]: dict_mysql_lookup: retrieved 0 rows 
Jun 11 18:18:44 mx postfix/smtpd[10707]: maps_find:
virtual_alias_maps: tester: not found
Jun 11 18:18:44 mx postfix/smtpd[10707]: dict_mysql_lookup using sql
query: select destination from virtual where email =
'@elgrupodelosn.com.ar'
Jun 11 18:18:44 mx postfix/smtpd[10707]: dict_mysql: successful query
from host unix:/var/run/mysqld/mysqld.sock
Jun 11 18:18:44 mx postfix/smtpd[10707]: dict_mysql_lookup: retrieved 0 rows 
Jun 11 18:18:44 mx postfix/smtpd[10707]: maps_find:
virtual_alias_maps: @elgrupodelosn.com.ar: not found
Jun 11 18:18:44 mx postfix/smtpd[10707]: mail_addr_find:
tester en elgrupodelosn.com.ar -> (not found)
Jun 11 18:18:44 mx postfix/smtpd[10707]: dict_mysql_lookup using sql
query: select destination from alias where alias =
'tester en elgrupodelosn.com.ar'
Jun 11 18:18:44 mx postfix/smtpd[10707]: dict_mysql: attempting to
connect to host unix:/var/run/mysqld/mysqld.sock
Jun 11 18:18:44 mx postfix/smtpd[10707]: dict_mysql: successful
connection to host unix:/var/run/mysqld/mysqld.sock
Jun 11 18:18:44 mx postfix/smtpd[10707]: dict_mysql: successful query
from host unix:/var/run/mysqld/mysqld.sock
Jun 11 18:18:44 mx postfix/smtpd[10707]: dict_mysql_lookup: retrieved 0 rows 
Jun 11 18:18:44 mx postfix/smtpd[10707]: dict_mysql_lookup using sql
query: select maildir from users where email =
'tester en elgrupodelosn.com.ar' and postfix = 'y'
Jun 11 18:18:44 mx postfix/smtpd[10707]: dict_mysql: attempting to
connect to host unix:/var/run/mysqld/mysqld.sock
Jun 11 18:18:44 mx postfix/smtpd[10707]: dict_mysql: successful
connection to host unix:/var/run/mysqld/mysqld.sock
Jun 11 18:18:44 mx postfix/smtpd[10707]: dict_mysql_lookup: retrieved 0 rows 
Jun 11 18:18:44 mx postfix/smtpd[10707]: dict_mysql_lookup using sql
query: select maildir from users where email =
'tester en elgrupodelosn.com.ar' and postfix = 'y'
Jun 11 18:18:44 mx postfix/smtpd[10707]: dict_mysql: attempting to
connect to host unix:/var/run/mysqld/mysqld.sock
Jun 11 18:18:44 mx postfix/smtpd[10707]: dict_mysql: successful
connection to host unix:/var/run/mysqld/mysqld.sock
Jun 11 18:18:44 mx postfix/smtpd[10707]: dict_mysql: successful query
from host unix:/var/run/mysqld/mysqld.sock
Jun 11 18:18:44 mx postfix/smtpd[10707]: dict_mysql_lookup: retrieved 1 rows 
Jun 11 18:18:44 mx postfix/smtpd[10707]: maps_find:
local_recipient_maps: mysql:/etc/postfix/mysql-virtual-maps.cf:
tester en elgrupodelosn.com.ar =
/home/vmail/elgrupodelosn.com.ar/tester/.maildir/
Jun 11 18:18:44 mx postfix/smtpd[10707]: mail_addr_find:
tester en elgrupodelosn.com.ar ->
/home/vmail/elgrupodelosn.com.ar/tester/.maildir/Jun 11 18:18:44 mx
postfix/smtpd[10707]: > localhost[127.0.0.1]: 250 Ok Jun 11 18:18:44
mx postfix/smtpd[10707]: watchdog_pat: 0x80a2da0
Jun 11 18:18:57 mx postfix/smtpd[10707]: < localhost[127.0.0.1]: data 
Jun 11 18:18:57 mx postfix/smtpd[10707]: > localhost[127.0.0.1]: 354
End data with <CR><LF>.<CR><LF>
Jun 11 18:19:02 mx postfix/cleanup[10708]: 44E8859425:
message-id=<20040611211829.44E8859425 en mail.elgrupodelosn.com.ar>
Jun 11 18:19:02 mx postfix/smtpd[10707]: public/cleanup socket: wanted
attribute: status
Jun 11 18:19:02 mx postfix/smtpd[10707]: input attribute name: status 
Jun 11 18:19:02 mx postfix/smtpd[10707]: input attribute value: 0 
Jun 11 18:19:02 mx postfix/smtpd[10707]: public/cleanup socket: wanted
attribute: reason
Jun 11 18:19:02 mx postfix/smtpd[10707]: input attribute name: reason 
Jun 11 18:19:02 mx postfix/smtpd[10707]: input attribute value: (end) 
Jun 11 18:19:02 mx postfix/smtpd[10707]: public/cleanup socket: wanted
attribute: (list terminator)
Jun 11 18:19:02 mx postfix/smtpd[10707]: input attribute name: (end) 
Jun 11 18:19:02 mx postfix/smtpd[10707]: > localhost[127.0.0.1]: 250
Ok: queued as 44E8859425
Jun 11 18:19:02 mx postfix/smtpd[10707]: watchdog_pat: 0x80a2da0 
Jun 11 18:19:02 mx postfix/qmgr[10370]: 44E8859425:
from=<prueba en elgrupodelosn.com.ar>, size=392, nrcpt=1 (queue active)
Jun 11 18:19:02 mx postfix/local[10713]: 44E8859425:
to=<tester en elgrupodelosn.com.ar>, relay=local, delay=33,
status=bounced (unknown user: "tester")Jun 11 18:19:02 mx
postfix/cleanup[10708]: 7E4966E480:
message-id=<20040611211902.7E4966E480 en mail.elgrupodelosn.com.ar> Jun
11 18:19:02 mx postfix/qmgr[10370]: 7E4966E480: from=<>, size=2058,
nrcpt=1 (queue active)
Jun 11 18:19:02 mx postfix/local[10713]: 7E4966E480:
to=<prueba en elgrupodelosn.com.ar>, relay=local, delay=0, status=sent
(maildir) Jun 11 18:20:00 mx CRON[10717]: (root) CMD (test -x
/usr/sbin/run-crons && /usr/sbin/run-crons )

No se si lo estoy entendiendo bien, pero por lo que se ve el postfix
ve que el user tester en elgrupodelosn.com.ar esta en el mysql, que el
home es /home/vmail/elgrupodelosn.com.ar/tester/.maildir , el tema es
porque despues me lo rebota porque el user tester no existe ??.
Despues de eso lo que hice fue crear el user en el linux (que no es la
idea), pero al enviar el email busco ponerle sobre el
/home/tester/.maildir y no a donde apunta el mysql.
Si me pueden ayudar lo agradeceria
Gracias
-
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