Mx Yönlendirme - Tek MX İki Alıcı Sunucu
Yazı 21 Aug 2020, 16:42 in linux
http://liste.linux.org.tr/pipermail/linux-sunucu/2018-September/028214.html
epostaların 2 adet eposta sunucusu üzerinden geçmesi isteniyordu. pratik çözüm şöyle olabilir. Denemedim :) örnek olarak. iki adet sunucu ve son olarak mailboxların tutulduğu sunucu /!\ mailbox sunucunun mx kaydı olmayacak. mx1 -> mx2 -> mailboxserver Example: example.com. 43200 IN MX 10 mx1.example.com. example.com. 43200 IN MX 20 mx2.example.com. mx1: /etc/postfix/main.cf /etc/postfix/main.cf myhostname = mx1.example.com smtpd_banner = $myhostname ESMTP mynetworks = 127.0.0.0/24 maximal_queue_lifetime = 30d relay_recipient_maps = relay_domains = hash:/etc/postfix/relaydomains transport_maps = hash:/etc/postfix/transportmaps smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination /etc/postfix/relaydomains example.com OK example1.com OK /etc/postfix/transportmaps example.com smtp:mx2.example.com:25 example1.com smtp:mx2.example1.com:25 postmap /etc/postfix/relaydomains postmap /etc/postfix/transportmaps /etc/init.d/postfix restart MX2: /etc/postfix/main.cf /etc/postfix/main.cf myhostname = mx2.example.com smtpd_banner = $myhostname ESMTP mynetworks = 127.0.0.0/24 maximal_queue_lifetime = 30d relay_recipient_maps = relay_domains = hash:/etc/postfix/relaydomains transport_maps = hash:/etc/postfix/transportmaps smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination /etc/postfix/relaydomains example.com OK example1.com OK /etc/postfix/transportmaps example.com smtp:mailbox.example.com:1025 example1.com smtp:mailbox.example1.com:1025 postmap /etc/postfix/relaydomains postmap /etc/postfix/transportmaps /etc/init.d/postfix restart Test edip banada bilgi verirseniz çok memnun olacağım.