SMTP: mudanças entre as edições
De Wikiunicentro
Sem resumo de edição |
Sem resumo de edição |
||
(Uma revisão intermediária pelo mesmo usuário não está sendo mostrada) | |||
Linha 2: | Linha 2: | ||
Para testar o serviço SMTP, execute as seguintes etapas: | Para testar o serviço SMTP, execute as seguintes etapas: | ||
* No Windows 2000, no prompt de comando, digite Telnet e pressione ENTER. | |||
* No prompt telnet, digite ''set Local_Echo'' e pressione ENTER e, em seguida, digite ''open <machinename>25'' e pressione ENTER. A saída semelhante à seguinte: | |||
<pre>220 computername.microsoft.com ESMTP Server (Microsoft Exchange Internet Mail Service 5.5.2651.58) ready</pre> | |||
250 OK | * Digite ''helo'' me e pressione ENTER. A saída semelhante à seguinte: | ||
</pre> | <pre>250 OK </pre> | ||
* Digite ''mail from:email@domain.com'' e pressione ENTER. A saída semelhante à seguinte: | |||
<pre>250 OK - mail from <email@domain.com></pre> | <pre>250 OK - mail from <email@domain.com></pre> | ||
* Digite ''rcpt to:youremail@yourdomain.com'' e pressione ENTER. A saída semelhante à seguinte: | |||
<pre>250 OK - Recipient <youremail@yourdomain.com></pre> | <pre>250 OK - Recipient <youremail@yourdomain.com></pre> | ||
* Digite os dados e pressione ENTER. A saída semelhante à seguinte: | |||
<pre>354 Send data. End with CRLF.CRLF</pre> | <pre>354 Send data. End with CRLF.CRLF</pre> | ||
* Tipo Assunto: Este é um teste e pressione ENTER duas vezes. | |||
* Digite teste e pressione ENTER. | |||
* Pressione ENTER, digite um ponto (.) e pressione ENTER. A saída semelhante à seguinte: | |||
<pre>250 OK</pre> | <pre>250 OK</pre> | ||
* Digite quit e pressione ENTER. A saída semelhante à seguinte: | |||
<pre>221 Closing Port / Mail queued for delivery</pre> | <pre>221 Closing Port / Mail queued for delivery</pre> | ||
Fonte: [http://support.microsoft.com/kb/286421 http://support.microsoft.com/kb/286421] | Fonte: [http://support.microsoft.com/kb/286421 http://support.microsoft.com/kb/286421] | ||
== SMTP server response: 550 5.7.1 Unable to relay == | |||
Sintoma: | |||
Ao utilizar um componente no código de um sistema Web, cujo servidor é Windows com IIS, acusa a mensagem de erro: | |||
<pre>"SMTP server response: 550 5.7.1 Unable to relay.."</pre> | |||
Para resolver o problema, deve ser permitido que o SMTP efetue retransmissão: | |||
# Go to: start > settings > control panel > Administrative Tools > Internet Information Services | |||
# Expand the " (local computer)" node | |||
# Right click on your SMTP server > go to "Properties" | |||
# Click "Access" tab | |||
# Under Relay Restrictions, click the "Relay" button | |||
# Click "Add" | |||
# Select "Single Computer" and enter IP address 127.0.0.1 | |||
# Hit OK, OK, OK (until the properties dialog is closed) | |||
Baseado em: [http://drupal.org/node/30079 http://drupal.org/node/30079] |
Edição atual tal como às 13h35min de 19 de dezembro de 2012
Testar o serviço SMTP
Para testar o serviço SMTP, execute as seguintes etapas:
- No Windows 2000, no prompt de comando, digite Telnet e pressione ENTER.
- No prompt telnet, digite set Local_Echo e pressione ENTER e, em seguida, digite open <machinename>25 e pressione ENTER. A saída semelhante à seguinte:
220 computername.microsoft.com ESMTP Server (Microsoft Exchange Internet Mail Service 5.5.2651.58) ready
- Digite helo me e pressione ENTER. A saída semelhante à seguinte:
250 OK
- Digite mail from:email@domain.com e pressione ENTER. A saída semelhante à seguinte:
250 OK - mail from <email@domain.com>
- Digite rcpt to:youremail@yourdomain.com e pressione ENTER. A saída semelhante à seguinte:
250 OK - Recipient <youremail@yourdomain.com>
- Digite os dados e pressione ENTER. A saída semelhante à seguinte:
354 Send data. End with CRLF.CRLF
- Tipo Assunto: Este é um teste e pressione ENTER duas vezes.
- Digite teste e pressione ENTER.
- Pressione ENTER, digite um ponto (.) e pressione ENTER. A saída semelhante à seguinte:
250 OK
- Digite quit e pressione ENTER. A saída semelhante à seguinte:
221 Closing Port / Mail queued for delivery
Fonte: http://support.microsoft.com/kb/286421
SMTP server response: 550 5.7.1 Unable to relay
Sintoma:
Ao utilizar um componente no código de um sistema Web, cujo servidor é Windows com IIS, acusa a mensagem de erro:
"SMTP server response: 550 5.7.1 Unable to relay.."
Para resolver o problema, deve ser permitido que o SMTP efetue retransmissão:
- Go to: start > settings > control panel > Administrative Tools > Internet Information Services
- Expand the " (local computer)" node
- Right click on your SMTP server > go to "Properties"
- Click "Access" tab
- Under Relay Restrictions, click the "Relay" button
- Click "Add"
- Select "Single Computer" and enter IP address 127.0.0.1
- Hit OK, OK, OK (until the properties dialog is closed)
Baseado em: http://drupal.org/node/30079