Alguém capaz de explicar esse problema? Eu posso fazer um dig ou nslookup em um host e obter os servidores MX, mas quando eu verificar através do sendmail ele falha?
RHEL 5.6
Sendmail:
(root)> sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> /mx google.com
getmxrr(google.com) returns 0 value(s):
Saída de depuração do Sendmail
(root)> echo '/mx google.com' | sendmail -bt -d8.20
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> getmxrr(google.com, droplocalhost=0)
getmxrr(google.com) returns 0 value(s):
Dig:
(root)> dig mx google.com
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-14.P1.el5 <<>> mx google.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2247
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 4, ADDITIONAL: 9
;; QUESTION SECTION:
;google.com. IN MX
;; ANSWER SECTION:
google.com. 600 IN MX 10 aspmx.l.google.com.
google.com. 600 IN MX 20 alt1.aspmx.l.google.com.
google.com. 600 IN MX 30 alt2.aspmx.l.google.com.
google.com. 600 IN MX 40 alt3.aspmx.l.google.com.
google.com. 600 IN MX 50 alt4.aspmx.l.google.com.
;; AUTHORITY SECTION:
google.com. 33524 IN NS ns3.google.com.
google.com. 33524 IN NS ns4.google.com.
...
Entrada de log do Sendmail
Sep 20 00:42:26 myhost sendmail[26714]: r8K0gLUS026712: [email protected], [email protected] (500/500), delay=00:00:05, xdelay=00:00:05, mailer=example, pri=152798, relay=example.org, dsn=5.1.2, stat=Host unknown (Name server: example.org: host not found)
Sendmail com -d17 (expira)
sendmail -v -d17.20 [email protected]
Running /var/spool/mqueue/r8KFB1VF002503 (sequence 1 of 1)
hostsignature(gmail.com)
hostsignature(): getmxrr() returned 1, mxhosts[0]=gmail.com
hostsignature(gmail.com) = gmail.com
hostsignature(gmail.com)
hostsignature(): stab(gmail.com) found gmail.com
<[email protected]>... Connecting to gmail.com via esmtp...