접미사 오류 - 릴레이 액세스가 거부되었습니다.

접미사 오류 - 릴레이 액세스가 거부되었습니다.

내 메일 서버 구성이 상당히 새롭습니다. 다른 도메인에 있는 클라이언트(JIRA)에서 테스트 이메일을 보내려고 하는데, 메인 서버도 다른 도메인에 있고, 내가 보내는 이메일도 다른 도메인에 있습니다. 메일 서버가 구성된 도메인으로 테스트 메일을 보낼 때는 문제가 없는데, 외부 도메인으로 보낼 때 다음과 같은 오류가 발생합니다.

RELAY ACCESS DENIED

다른 포럼에 설명된 대로 다른 매개변수 변경을 시도했지만 실패했습니다. 누구든지 나를 도와줄 수 있나요?

main.cf구성 파일을 찾으십시오 .

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
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5
disable_dns_lookups = yes
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname,<hostname>,<hostname.domainname>,localhost,<domain name where i want to send the email>
mydomain = <domainname>
myhostname = <hostname>
mynetworks = 127.0.0.0/8,99.999.99.999/25
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
relay_domains = $mydestination
sample_directory = /usr/share/doc/postfix-2.10.1/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks reject_unauth_destination
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
unknown_local_recipient_reject_code = 550

답변1

다음과 같이 보내는 서버를 추가해야 합니다 relayhost.

relayhost = 1.2.3.4

1.2.3.4보내는 서버의 IP로 바꾸세요 .

그런 다음 구성을 확인하고 다시 로드합니다.

postconf check
postconf reload

그런 다음 다시 시도해 보세요.

관련 정보