SendMail 503 error Ubuntu [“Nome do host não reconhecido gmail.com.”]

0
Unrecognized host name gmail.com.
503 5.0.0 Need RCPT (recipient)

Este erro se eu enviar e-mail em qualquer e-mail *@gmail.com

Como faço para ativar o envio de mensagens para todos os endereços?

news@ovz1:~$ nslookup gmail.com
Server:         10.100.10.2
Address:        10.100.10.2#53

Non-authoritative answer:
Name:   gmail.com
Address: 173.194.32.182
Name:   gmail.com
Address: 173.194.32.181

root@ovz1:~# echo 3,0 [email protected] | sendmail -d8.20 -bt
_res.options = 812c3, HasWildcardMX = 0
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> canonify           input: x @ gmail . com
Canonify2          input: x < @ gmail . com >
dns_getcanonname(gmail.com, trymx=1)
dns_getcanonname: trying gmail.com. (AAAA)
        YES
dns_getcanonname: gmail.com
Canonify2        returns: x < @ gmail . com . >
canonify         returns: x < @ gmail . com . >
parse              input: x < @ gmail . com . >
Parse0             input: x < @ gmail . com . >
Parse0           returns: x < @ gmail . com . >
Parse1             input: x < @ gmail . com . >
MailerToTriple     input: < > x < @ gmail . com . >
MailerToTriple   returns: x < @ gmail . com . >
Parse1           returns: $# error $@ 5 . 1 . 2 $: "553 Unrecognized host name " gmail . com .
parse            returns: $# error $@ 5 . 1 . 2 $: "553 Unrecognized host name " gmail . com .
    
por Молюска Моллюсков 31.08.2017 / 09:54

1 resposta

1

sendmail: falta de mailer smtp em sendmail.mc

Parece que MAILER(smtp) está faltando no arquivo sendmail.mc .
Sendmail gostaria de usar smtp para enviar para gmail.com, mas o mailer está faltando.
[ sendmail.mc é usado para gerar /etc/mail/sendmail.cf ]

A linha perdida em sendmail.mc :

MAILER('smtp')

Overkill de detalhes técnicos

proto.m4 file:

# deal with other remote names
ifdef('_MAILER_smtp_',
'R$* < @$* > $*         $#_SMTP_ $@ $2 $: $1 < @ $2 > $3        [email protected]',
'R$* < @$* > $*         $#error $@ 5.1.2 $: "_CODE553 Unrecognized host name " $2')
    
por AnFi 31.08.2017 / 10:23