ajuda com Relay autenticado

1. ajuda com Relay autenticado

Carlos Adriano de Souza
cadriza

(usa Ubuntu)

Enviado em 15/07/2008 - 16:17h

Boa tarde amigos


preciso de uma ajuda com um postifix que faça relay no meu provedor, que requer autenticação.


o postfix envia se for direto, mas aí mudei a configuração para usar o smtp do provedor.

coloco aqui meus arquivos de configuração:

main.cf

*******************************************************
# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = localhost
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination =
relayhost = smtp.empresa.com.br
mynetworks = 127.0.0.0/8 192.168.40.0/24
mailbox_command =
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all


smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_password_maps = hash:/etc/postfix/sasl_passwd
broken_sasl_auth_clients = yes
*******************************************************


sasl_passwd

smtp.empresa.com.br webmaster@empresa.com.br:Se1n2H3a4


***********************************************

no sasl_passwd um tab separa o smtp do e-mail



o provedor que eu quero autenticar é o locaweb, onde o nome do usuario é o e-mail completo.



fazendo assim, tenho a seguinte resposta no LOG:

******************************************************************************************
Jul 15 15:53:28 localhost postfix/smtpd[8895]: connect from unknown[192.168.40.2]
Jul 15 15:53:28 localhost postfix/smtpd[8895]: B66B1365A7: client=unknown[192.168.40.2]
Jul 15 15:53:28 localhost postfix/cleanup[8898]: B66B1365A7: message-id=<49D97214252141C3A6CAAF7D6C8F45F2@cadrizalaptop>
Jul 15 15:53:28 localhost postfix/qmgr[4723]: B66B1365A7: from=<adriano@calibratec.com.br>, size=1459, nrcpt=1 (queue active)
Jul 15 15:53:28 localhost postfix/smtpd[8895]: disconnect from unknown[192.168.40.2]
Jul 15 15:53:29 localhost postfix/smtp[8899]: B66B1365A7: to=<adriano@libersistemas.com.br>, relay=smtp.calibratec.com.br[200.234.205.148]:25, delay=0.32, delays=0.05/0/0.22/0.05, dsn=5.0.0, status=bounced (host smtp.calibratec.com.br[200.234.205.148] said: 553 UTILIZE A AUTENTICACAO PARA ENVIO DE MENSAGENS/THIS SERVER IS TO BE USED WITH AUTHENTICATION (#5.7.1) (in reply to RCPT TO command))
Jul 15 15:53:29 localhost postfix/cleanup[8898]: 116F7365C4: message-id=<20080715185329.116F7365C4@localhost>
Jul 15 15:53:29 localhost postfix/qmgr[4723]: 116F7365C4: from=<>, size=3467, nrcpt=1 (queue active)
Jul 15 15:53:29 localhost postfix/bounce[8900]: B66B1365A7: sender non-delivery notification: 116F7365C4
Jul 15 15:53:29 localhost postfix/qmgr[4723]: B66B1365A7: removed
Jul 15 15:53:29 localhost postfix/smtp[8899]: 116F7365C4: to=<adriano@calibratec.com.br>, relay=smtp.calibratec.com.br[200.234.205.148]:25, delay=0.28, delays=0.01/0/0.22/0.05, dsn=5.0.0, status=bounced (host smtp.calibratec.com.br[200.234.205.148] said: 553 UTILIZE A AUTENTICACAO PARA ENVIO DE MENSAGENS/THIS SERVER IS TO BE USED WITH AUTHENTICATION (#5.7.1) (in reply to RCPT TO command))
Jul 15 15:53:29 localhost postfix/qmgr[4723]: 116F7365C4: removed

******************************************************************************************


quer dizer, ele chegou no smtp do meu provedor, mas não autenticou


alguem pode me ajudar???


agradeço



________________________________________
Libersistemas - Liberdade para os seus sistemas informatizados
Carlos Adriano de Souza
9387-5252
adriano@libersistemas.com.br


  






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts