No meu servidor Redhat Prod eu instalei o Sendmail que eu usaria para enviar os e-mails de conclusão do Backup de banco de dados para o meu ID de e-mail.
Quando eu envio um email do Meu servidor A 172.16.233.2 para o meu email id [email protected]. usando
sendmail -v [email protected] < /opt/dailydbscriptoutput.txt
[email protected]... Connecting to [127.0.0.1] via relay...
220 db.erp.com ESMTP Sendmail 8.13.8/8.13.8; Thu, 7 Aug 2014 13:37:17 +0300
>>> EHLO pmmcdb.erp.com
250-db.erp.com Hello localhost.localdomain [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
>>> MAIL From:<[email protected]> SIZE=59
250 2.1.0 <[email protected]>... Sender ok
>>> RCPT To:<[email protected]>
>>> DATA
250 2.1.5 <[email protected]>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 s77AbH2H025298 Message accepted for delivery
[email protected]... Sent (s77AbH2H025298 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 db.erp.com closing connection
Eu recebo a mensagem acima. Mas quando eu verificar o log / var / log / maillog. Eu vejo isso
Aug 7 12:18:41db sendmail[11808]: s779If28011808: from=emerg, size=59, class=0, nrcpts=1, msgid=<[email protected]>, relay=emerg@localhost
Aug 7 12:18:41 db sendmail[11809]: s779Ifss011809: from=<[email protected]>, size=342, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Aug 7 12:18:41 db sendmail[11808]: s779If28011808: [email protected], ctladdr=emerg (503/503), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30059, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (s779Ifss011809 Message accepted for delivery)
Aug 7 12:18:42 db sendmail[11811]: s779Ifss011809: to=<[email protected]>, ctladdr=<[email protected]> (503/503), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=120342, relay=mail1 [10.171.1.10], **dsn=5.6.0, stat=Data format error**
Anteriormente eu estava enfrentando problema no servidor relacionado ao DNS.
Tempo limite do servidor de nomes
Então eu segui este Link Configurar o Sendmail sem o DNS para resolver o problema e em outro servidor de teste ele começou a trabalhar e, em seguida, apliquei o mesmo procedimento neste servidor de produção e não consigo enviar mensagens
Após o teste
sendmail -Am -v [email protected] < /tmp/email.txt
[email protected]... Connecting to mail1 via relay...
220 mail1.etradeportal.net ESMTP Sendmail 8.13.1/8.13.1; Thu, 7 Aug 2014 15:18:51 +0300
>>> EHLO db.erp.com
250-mail1.etradeportal.net Hello [172.16.233.2], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH DIGEST-MD5 CRAM-MD5
250-DELIVERBY
250 HELP
>>> MAIL From:<[email protected]> SIZE=108
553 5.1.8 <[email protected]>... Domain of sender address [email protected] does not exist
/root/dead.letter... Saved message in /root/dead.letter
Closing connection to mail1
>>> QUIT
221 2.0.0 mail1.etradeportal.net closing connection