Hola Gente... Tengo postfix instalado y me esta ocurriendo algo extraño... Resulta que cuando mando un mail y no estoy conectado a internet, el mail queda en la cola del postfix esperando para ser enviado, y el mensaje que me sale cuando hago un mailq es este..
CA7B213DC8 612 Tue Feb 18 20:38:30 [EMAIL PROTECTED] (Name service error for 127.0.0.1: Host not found, try again) [EMAIL PROTECTED] Lo interesante del tema, es que hensa.com.ar es mi maquina local y deberia enviarlo localmente hacia la cuenta destino. Esto se soluciona cuando me conecto a internet, ya que cuando me conecto, despues de un instante lo envia localmente sin problemas a la cuenta destino... Alguna idea? Uso postfix, sobre woody... Por las dudas envio aca los archivos de configuracion para ver si alguien pesca el error.. La maquina se llama inet, y tiene la ip 192.168.0.2 ---------------- host --------------- 127.0.0.1 localhost 192.168.0.1 sr1.hensa.com.ar sr1 192.168.0.2 inet.hensa.com.ar inet mail 192.168.0.4 sr4.hensa.com.ar sr4 ### etherconf DEBCONF AREA. DO NOT EDIT THIS AREA OR INSERT TEXT BEFORE IT. ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts ### END OF DEBCONF AREA. PLACE YOUR EDITS BELOW; THEY WILL BE PRESERVED. Mi dns, tengo bind puesto y estas son las configuraciones... Mi named.conf // This is the primary configuration file for the BIND DNS server named. // // Please read /usr/share/doc/bind9/README.Debian for information on the // structure of BIND configuration files in Debian, *BEFORE* you customize // this configuration file. // options { directory "/var/cache/bind"; // If there is a firewall between you and nameservers you want // to talk to, you might need to uncomment the query-source // directive below. Previous versions of BIND always asked // questions using port 53, but BIND 8.1 and later use an unprivileged // port by default. query-source address * port 53; // If your ISP provided one or more IP addresses for stable // nameservers, you probably want to use them as forwarders. // Uncomment the following block, and insert the addresses replacing // the all-0's placeholder. forwarders { 200.45.0.115; 200.45.0.116; }; // auth-nxdomain no; # conform to RFC1035 }; include "/etc/bind/rndc.key"; controls { inet 127.0.0.1 port 953 allow { 127.0.0.1; } keys { "rndc-key"; }; # inet 192.168.0.2 port 953 allow { any; } keys { "rndc-key"; }; }; // prime the server with knowledge of the root servers zone "." { type hint; file "/etc/bind/db.root"; }; // be authoritative for the localhost forward and reverse zones, and for // broadcast zones as per RFC 1912 zone "localhost" { type master; file "/etc/bind/db.local"; }; zone "127.in-addr.arpa" { type master; file "/etc/bind/db.127"; }; zone "0.in-addr.arpa" { type master; file "/etc/bind/db.0"; }; zone "255.in-addr.arpa" { type master; file "/etc/bind/db.255"; }; // add entries for other zones below here zone "hensa.com.ar" { type master; file "/etc/bind/hensa.com.ar"; notify yes; }; zone "0.168.192.in-addr.arpa" { type master; file "/etc/bind/hensa.com.rev"; notify yes; }; Ya que estamos, mando el hensa.com.ar que es para resolver hensa.com.ar $ORIGIN hensa.com.ar. $ttl 1w @ IN SOA inet.hensa.com.ar. ariel.hensa.com.ar. ( 2003012401 ; Serial 1D ; Refresh 6H ; Retry 1W ; Expire 1W ) ; Negative Cache TTL ftp IN A 192.168.0.2 www IN A 192.168.0.4 mail IN A 192.168.0.2 sq IN A 192.168.0.2 jabber IN A 192.168.0.2 sr1 IN A 192.168.0.1 inet IN A 192.168.0.2 sr3 IN A 192.168.0.3 sr4 IN A 192.168.0.4 audios IN A 192.168.0.5 nar IN A 192.168.0.4 menu IN A 192.168.0.4 caja IN A 192.168.0.4 facnar IN A 192.168.0.4 tele IN A 192.168.0.4 presu IN A 192.168.0.4 webmail IN A 192.168.0.2 y su reversa que es... $ttl 1W @ IN SOA 0.168.192.in-addr.arpa. ariel.hensa.com.ar. ( 2003012401 1D 6H 1W 1W ) IN NS ns0.hensa.com.ar. 4 IN PTR ns0.hensa.com.ar. 2 IN PTR ftp.hensa.com.ar. 4 IN PTR www.hensa.com.ar. 2 IN PTR mail.hensa.com.ar. 2 IN PTR sq.hensa.com.ar. 2 IN PTR jabber.hensa.com.ar. Ojo, lo demas es todo igual nada mas que lo corto para no ser tan largo, pero tanto en el normal como en la reversa tengo cada maquina y cada servicio que funciona en la red declarados... Siguendo, el postfix... Este es el main # see /usr/share/postfix/main.cf.dist for a commented, fuller # version of this file. # Do not change these directory settings - they are critical to Postfix # operation. command_directory = /usr/sbin daemon_directory = /usr/lib/postfix program_directory = /usr/lib/postfix smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) setgid_group = postdrop biff = no # appending .domain is the MUA's job. append_dot_mydomain = no myhostname = hensa.com.ar alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = hensa.com.ar mydestination = hensa.com.ar, mail.hensa.com.ar, inet.hensa.com.ar, localhost.panflin.com.ar, loca relayhost = smtp.arnet.com.ar mynetworks = 127.0.0.0/8, 192.168.0.0/16 mailbox_command = procmail -a "$EXTENSION" mailbox_size_limit = 0 recipient_delimiter = + #otras configuraciones delay_warning_time = 15d canonical_maps = hash:/etc/postfix/canonical sender_canonical_maps = hash:/etc/postfix/cansalida relocated_maps = hash:/etc/postfix/relocated # Antivirus content_filter = smtp:127.0.0.1:10024 # Spam y demas boludecees... ## maps_rbl_domains = blackholes.mail-abuse.org dialups.mail-abuse.org relays.mail- ## smtpd_client_restrictions = permit_mynetworks reject_maps_rbl check_relay_domain # Aca se bloquea para que solo yo lo use al postfix. smtpd_sender_restrictions = permit_mynetworks # smtpd_client_restrictions = permit_mynetworks Y el master no lo pongo por que solo esta modificado para que ande el antivirus... Realmente no se que puede ser...., si hago un ping al 127.0.0.1 cuando no estoy conectado me lo hace sin dramas... inet:~# mc inet:~# ping 127.0.0.1 PING 127.0.0.1 (127.0.0.1): 56 data bytes 64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=1.0 ms 64 bytes from 127.0.0.1: icmp_seq=1 ttl=255 time=0.4 ms y si hago un host me sale... inet:~# host localhost localhost has address 127.0.0.1 O sea se "ve" al localhost... Alguien tiene alguna idea por donde puedo buscar el problema para solucionarlo? ya que se manda mucha mensajeria interna y siempre los mails quedan trabados hasta que me conecto a internet y ahi si todos reciben los mails que quedan trabados en el postfix. Ademas mi red interna es hensa.com.ar ya que tengo un dominio externo declarado como hensa.com.ar y uso el mismo nombre para avitar problemas y a veces lo pongo para que desde internet se pueda llegar por que accedemos desde inet a la red nuestra. Bueno, espero que alguien pueda ayudarme a solucionar esto, que me pasa desde el mismisimo momento que tenia instalado sendmail y lo saque para poner el postfix via el apt-get y desde ahi nunca pude hacer que postfix mande los mails locales si no esta conectado a internet... Gracias a quienes puedan ayudarme desde ya. Ariel