smtpd_recipient_restrictions =  permit_mynetworks,
permit_sasl_authenticated,   reject_unauth_destination,


Nesse caso o seu relay estaria aberto para sua rede e para os usuarios
autenticados, o reject_unauth_destination fecha o relay.

On Tue, Nov 22, 2011 at 3:30 PM, Fellipe Henrique <[email protected]> wrote:
> Amigos, estou terminando de configurar meu servidor postfix (como devem ter
> notado, sou novato nisso).. configurei tudo, postfix, courier.. com
> autenticação sasl e conexao SSL com o POP3... no SMTP autenticacao usando
> STARTTLS.. porém ao enviar um email para o GMail por exemplo, apresenta o
> seguinte erro: Relay access denied;
>
> Como faço pra bloquear isso?
>
> Segue meu main.cf:
>
> smtpd_use_tls=yes
> smtp_tls_note_startls_offer = yes
> smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
> smtpd_tls_loglevel = 1
> smtpd_tls_received_header = yes
> smtpd_tls_session_cache_timeout = 3600s
> smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
> smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
> smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
> smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
> tls_random_source = dev:/dev/random
>
> myhostname = xxxcnn8164
> alias_maps = hash:/etc/aliases
> alias_database = hash:/etc/aliases
> myorigin = /etc/mailname
> mydestination = pota.com.br, xxxcnn8164, localhost.localdomain, localhost
> mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
> relayhost =
> mailbox_size_limit = 0
> recipient_delimiter = +
> inet_interfaces = all
>
>
> smtpd_sasl_local_domain =
> smtpd_sasl_auth_enable = yes
> smtpd_sasl_security_options = noanonymous
> broken_sasl_auth_clients = yes
> smtpd_recipient_restrictions = reject_invalid_hostname,
> reject_non_fqdn_sender,$
> smtpd_tls_auth_only = no
>
>
>
> T.·.F.·.A.·.     S+F
>
> *Fellipe Henrique P. Soares*
>
> *"Life is a game without Tutorial"*
>
> *
> *
>
> Analista e Desenvolvedor de Softwares for Win32
> Linux Administrator
> _______________________________________________
> Postfix-BR mailing list
> [email protected]
> http://listas.softwarelivre.org/mailman/listinfo/postfix-br
>



-- 
Hamilton Vera
int Administrator (char Network[],char ComputationalSystems[])
http://hvera.wordpress.com
_______________________________________________
Postfix-BR mailing list
[email protected]
http://listas.softwarelivre.org/mailman/listinfo/postfix-br

Responder a