554 5.7.1 mail_addr: Relay de acesso negado centos postfix

5

Eu tenho problema em enviar e-mail do postfix em centos

Eu tenho seguido setup postfix do servidor de e-mail para enviar e-mails, mas estou recebendo um erro.

Como no link tentei seguir os comandos

telnet localhost smtp

Trying ::1...
Connected to localhost.
Escape character is '^]'.
220 mydomain.com ESMTP Postfix
ehlo localhost
250-mydomain.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
mail from:<domain.com>
250 2.1.0 Ok
rcpt to:<[email protected]>
554 5.7.1 <[email protected]>: Relay access denied

Edit-1

No terminal isso funciona

echo TEST | mail -v -s "Test mail" [email protected]

my postconf -n mostra a informação do Belog

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
home_mailbox = Maildir/
html_directory = no
inet_interfaces = localhost
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = dummy.com
myhostname = dummy.com
mynetworks = all
mynetworks_style = host
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
unknown_local_recipient_reject_code = 550

Qual configuração eu tenho que executar para enviar e-mails do meu servidor.

    
por overflow 17.11.2013 / 06:41

2 respostas

2

Com base na documentação do Postfix , a configuração mynetworks = all não parece ser válida e Se você definir especificamente mynetworks para algo, então mynetworks_style será ignorado.

Redefina mynetworks de volta ao seu valor padrão se você quiser usar mynetworks_style = host ou defina explicitamente mynetworks para refletir de onde o email está sendo enviado (geralmente localhost e sua sub-rede local). Por exemplo:

mynetworks = 127.0.0.0/8 192.168.1.0/24
mynetworks_style = subnet
    
por 21.11.2013 / 02:52
0

Você está tentando redirecionar o e-mail para o gmail, mas sua configuração não aceita a retransmissão de e-mails para o gmail para que ele retorne 554 códigos de rejeição.   em postconf

relay_domains_reject_code (default: 554) The numerical Postfix SMTP server response code when a client request is rejected by the reject_unauth_destination recipient restriction.

para corrigir o valor correto do problema de retransmissão do parâmetro mydestination de acordo com postconf

relay_domains (default: $mydestination) What destination domains (and subdomains thereof) this system will relay mail to. For details about how the relay_domains value is used, see the description of the permit_auth_destination and reject_unauth_destination SMTP recipient restrictions.

Domains that match $relay_domains are delivered with the $relay_transport mail delivery transport. The SMTP server validates recipient addresses with $relay_recipient_maps and rejects non-existent recipients. See also the relay domains address class in the ADDRESS_CLASS_README file.

Note: Postfix will not automatically forward mail for domains that list this system as their primary or backup MX host. See the permit_mx_backup restriction in the postconf(5) manual page.

Specify a list of host or domain names, "/file/name" patterns or "type:table" lookup tables, separated by commas and/or whitespace. Continue long lines by starting the next line with whitespace. A "/file/name" pattern is replaced by its contents; a "type:table" lookup table is matched when a (parent) domain appears as lookup key. Specify "!pattern" to exclude a domain from the list. The form "!/file/name" is supported only in Postfix version 2.4 and later.

Pattern matching of domain names is controlled by the presence or absence of "relay_domains" in the parent_domain_matches_subdomains parameter value.

    
por 11.08.2014 / 07:30