릴레이 호스트 변경

릴레이 호스트 변경

나는 릴레이 mailjet.com을 사용하도록 example.com을 구성했으며 이와 관련된 이메일도 다음과 같이 구성했습니다.[이메일 보호됨]이것을 원한다[이메일 보호됨]기본적으로 회사 내부에서 라우팅되는 smtp-int.xyz.com이라는 다른 릴레이를 사용합니다. @xyz.com으로 전송된 모든 항목은 smtp-int.xyz.com을 통해 라우팅됩니다. 가능합니까? 항목을 추가하려고했습니다.[이메일 보호됨]/etc/postfix/senders_relay에서 postfix를 다시 로드했지만 도움이 되지 않았습니다....나도 이것을 /etc/postfix/transport에 추가하려고 했지만 이것도 도움이 되지 않았습니다....내가 뭔가를 하고 있는 것일 수도 있습니다. 잘못된....

/etc/postfix/sender_relay
@example.com    in-v3.mailjet.com

/etc/postfix/transport
xyz.com           smtp:smtp-int.xyz.com
example.com    smtp:in-v3.mailjet.com

/etc/postfix/main.cf
sender_dependent_relayhost_maps = hash:/etc/postfix/sender_relay
smtp_sender_dependent_authentication = yes
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl_password

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
compatibility_level = 2
header_checks = regexp:/etc/postfix/header_checks
inet_interfaces = all
inet_protocols = all
mailbox_size_limit = 0
mydestination = $myhostname, mca-xyz.com, localhost
myhostname = mca-xyz.com
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
sender_dependent_relayhost_maps = hash:/etc/postfix/sender_relay
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_password
smtp_sasl_security_options = noanonymous
smtp_sender_dependent_authentication = yes
smtp_tls_CApath = /etc/ssl/certs
smtp_tls_security_level = may
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
smtpd_sender_restrictions = check_sender_access regexp:/etc/postfix/allowed_senders
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_security_level = may
transport_maps = regexp:/etc/postfix/discard

일부 로그: 11월 16일 05:06:27 mca-xyz.com postfix/cleanup[557307]: 7FB925F925: 경고: 헤더 제목: Wildfly AS DOPS(mca04.xyz.com) mca04.xyz.com에서 다시 시작 확인[xxx. xx.xx.xxx];[이메일 보호됨] [이메일 보호됨]proto=SMTP helo=<mca04.xyz.com> 11월 16일 05:06:27 mca-xyz.com postfix/smtp[557560]: 7FB925F925:[이메일 보호됨],릴레이=in.mailjet.com[xxx.xxx.xx.xx]:25, 지연=0.26, 지연=0.01/0/0.17/0.08, dsn=2.0.0, 상태=전송(5bd486ec-8825-4d16-ad5f-71f18603b431로 대기 중인 250 OK)

관련 정보