Sendmail através de smarthost em porta não padrão

0

Estou tentando fazer com que meu servidor sendmail envie emails pelo GoDaddy como um smarthost. Confirmei que posso fazer o telnet para smtpout.secureserver.net na porta 3535 e seu SMTP responde corretamente. Mas meu serviço de sendmail simplesmente não pode ser enviado - e não consigo entender por quê. Eu configurei a parte do smarthost do sendmail da seguinte forma:

define('SMART_HOST', 'smtpout.secureserver.net')dnl
define('RELAY_MAILER','esmtp')dnl
define('RELAY_MAILER_ARGS', 'TCP $h 3535')dnl
define('confAUTH_MECHANISMS', 'EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
FEATURE('authinfo','hash /data/smtp/client-info')dnl

O maillog mostra (no nível de log 99):

Feb 26 12:03:56 myhost sendmail[4694]: v1QH3uXi004692: SMTP outgoing connect on [172.31.234.15]
Feb 26 12:03:57 myhost sendmail[4694]: AUTH=client, relay=smtpout.secureserver.net., mech=LOGIN, bits=0
Feb 26 12:03:57 myhost sendmail[4694]: v1QH3uXi004692: to=<[email protected]>, ctladdr=<[email protected]> (0/0), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=120448, relay=smtpout.secureserver.net. [173.201.192.229], dsn=5.0.0, stat=Service unavailable
Feb 26 12:03:57 myhost sendmail[4694]: v1QH3uXi004692: dropenvelope, e_flags=0x4605862, OpMode=q, pid=4694
Feb 26 12:03:57 myhost sendmail[4694]: v1QH3uXi004692: alias <[email protected]> => [email protected]
Feb 26 12:03:57 myhost sendmail[4694]: v1QH3vXi004694: assigned id
Feb 26 12:03:57 myhost sendmail[4694]: v1QH3uXi004692: v1QH3vXi004694: DSN: Service unavailable
Feb 26 12:03:57 myhost sendmail[4694]: v1QH3vXi004694: queueup ./qfv1QH3vXi004694
Feb 26 12:03:57 myhost sendmail[4694]: v1QH3vXi004694: sendenvelope, flags=0x604082
Feb 26 12:03:57 myhost sendmail[4694]: v1QH3vXi004694: SMTP outgoing connect on [172.31.234.15]
Feb 26 12:03:58 myhost sendmail[4694]: AUTH=client, relay=smtpout.secureserver.net., mech=LOGIN, bits=0
Feb 26 12:03:59 myhost sendmail[4694]: v1QH3vXi004694: [email protected], delay=00:00:02, xdelay=00:00:02, mailer=relay, pri=31662, relay=smtpout.secureserver.net. [173.201.193.101], dsn=5.0.0, stat=Service unavailable
Feb 26 12:03:59 myhost sendmail[4694]: v1QH3vXi004694: dropenvelope, e_flags=0x46050a2, OpMode=q, pid=4694
Feb 26 12:03:59 myhost sendmail[4694]: v1QH3vXi004694: alias MAILER-DAEMON => postmaster
Feb 26 12:03:59 myhost sendmail[4694]: v1QH3vXi004694: alias postmaster => root
Feb 26 12:03:59 myhost sendmail[4694]: v1QH3vXi004694: alias root => [email protected]
Feb 26 12:03:59 myhost sendmail[4694]: v1QH3vXi004694: alias postmaster => root
Feb 26 12:03:59 myhost sendmail[4694]: v1QH3vXi004694: alias root => [email protected]
Feb 26 12:03:59 myhost sendmail[4694]: v1QH3vXj004694: assigned id
Feb 26 12:03:59 myhost sendmail[4694]: v1QH3vXi004694: v1QH3vXj004694: return to sender: Service unavailable
Feb 26 12:03:59 myhost sendmail[4694]: v1QH3vXj004694: queueup ./qfv1QH3vXj004694
Feb 26 12:03:59 myhost sendmail[4694]: v1QH3vXj004694: sendenvelope, flags=0x604082
Feb 26 12:03:59 myhost sendmail[4694]: v1QH3vXj004694: SMTP outgoing connect on [172.31.234.15]
Feb 26 12:03:59 myhost sendmail[4694]: AUTH=client, relay=smtpout.secureserver.net., mech=LOGIN, bits=0
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXj004694: [email protected], delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=32686, relay=smtpout.secureserver.net. [173.201.193.101], dsn=5.0.0, stat=Service unavailable
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXj004694: dropenvelope, e_flags=0x46050a2, OpMode=q, pid=4694
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXj004694: alias MAILER-DAEMON => postmaster
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXj004694: alias postmaster => root
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXj004694: alias root => [email protected]
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXj004694: unlink ./dfv1QH3vXj004694
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXj004694: unlink ./qfv1QH3vXj004694
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXj004694: done; delay=00:00:01, ntries=1
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXj004694: unlock
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXj004694: unlink ./xfv1QH3vXj004694
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXj004694: ./xfv1QH3vXj004694: unlink-fail 2
Feb 26 12:04:00 myhost sendmail[4694]: NOQUEUE: dropenvelope, e_flags=0x4050a2, OpMode=q, pid=4694
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXi004694: Losing ./qfv1QH3vXi004694: savemail panic
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXi004694: SYSERR(root): savemail: cannot save rejected email anywhere
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXi004694: unlink ./qfv1QH3vXi004694
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXi004694: ./qfv1QH3vXi004694: unlink-fail 2
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXi004694: done; delay=00:00:03, ntries=1
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXi004694: unlock
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXi004694: unlink ./xfv1QH3vXi004694
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3vXi004694: ./xfv1QH3vXi004694: unlink-fail 2
Feb 26 12:04:00 myhost sendmail[4694]: NOQUEUE: dropenvelope, e_flags=0x4050a2, OpMode=q, pid=4694
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3uXi004692: unlink ./dfv1QH3uXi004692
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3uXi004692: unlink ./qfv1QH3uXi004692
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3uXi004692: done; delay=00:00:04, ntries=1
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3uXi004692: unlock
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3uXi004692: unlink ./xfv1QH3uXi004692
Feb 26 12:04:00 myhost sendmail[4694]: v1QH3uXi004692: ./xfv1QH3uXi004692: unlink-fail 2
Feb 26 12:04:00 myhost sendmail[4694]: NOQUEUE: dropenvelope, e_flags=0x407062, OpMode=q, pid=4694

Eu assumo que isso está relacionado à conexão, já que não vejo outros erros no log. Se isso for relacionado à credencial, posso postar mais informações.

Alguém pode explicar por que isso está falhando?

    
por TSG 26.02.2017 / 18:11

1 resposta

0

Parece que o sendmail não deixa pistas quando o problema está no lado de recebimento. Anteriormente, eu testei a conexão SMTP usando o telnet, mas não achei que poderia enviar um email completo (via telnet) porque a autenticação era necessária. Eu encontrei este link que mostra como construir o auth comando e teste o email.

Acontece que o servidor SMTP de recebimento estava rejeitando o email porque o nome de domínio na linha FROM não tinha uma entrada DNS. Depois de consertar isso, o e-mail passou pelo telnet e, posteriormente, passou pelo sendmail.

    
por 26.02.2017 / 19:39

Tags