From: Alex Savvin <xbow@bryansk.elektra.ru> To: mandrake-russian@altlinux.ru <mandrake-russian@altlinux.ru> Subject: [mdk-re] Знатокам Postfix вопрос Date: Thu Jul 19 18:15:11 2001 Message-ID: <20010719222921.1108aae5.xbow@bryansk.elektra.ru> (raw) Вопрос знатокам Postfix Заблудился в трех соснах: Имеются два домена реальных dom1 и dom2. канал isp.dom1 - медленный, желательно, чтобы почта хотила через канал isp.dom2. Эти домены обслуживают два почтовых сервера mx.dom1 и mx1.dom1 (они же *.dom2). В DNS: для dom1 для dom2 MX 10 mx.dom2 MX 10 mx.dom2 MX 20 mx1.dom2 MX 20 mx1.dom2 Имеются локальные popusers с адресами userN@dom1. Плюс еще поддомены sub1.dom1, sub2.dom1, ... со своими user'ами userN@subN.dom1 (в домене dom2 поддоменов нет), которым нужно релеить почту mx.dom1(2) -> smtp:mx.subN.dom1 Все поддомены - внутренние подсетки: 192.168.x.0. Каналы разные - Ethernet и leased (dialup). Нужно настроить Postfix так, чтобы: from: to: action: -------- --------------- ------------------ user@dom1 user1@dom1 local или точнее userM@domX puN@domY local user@domX user@subY.dom1 smtp: mx.subY.dom1 user@domX any@where direct or smtp: mx.isp.dom2 + user@subX.dom1 pu@domX smtp: mx.dom2 (он же mx.dom1) user@subX.dom1 user@subY.dom1 smtp: mx.subY.dom1 user@subX.dom1 any@where direct or smtp:mx.isp.dom2 + any@where pu@domN smtp: mx.dom1 any@where user@subY.dom1 smtp: mx.subY.dom1 any@where any@where reject (/dev/null) Настройка сейчас такая: /etc/postfix/main.cf -------------------- myhostname = post.dom1 mydomain = dom1 myorigin = $mydomain mynetworks = 127.0.0.1/32, 192.168.0.0/16, <dom1addr>/28, <dom2addr>/29 mydestination = localhost, $myhostname, $mydomain, localhost.$mydomain, ftp.$mydomain, dom2 alias_maps = hash:/etc/postfix/aliases transport_maps = hash:/etc/postfix/transport virtual_maps = hash:/etc/postfix/virtual relay_domains = $mydestinatons default_transport = smtp ----------------------- aliases - стандартный transport: -------------------- sub1.dom1 smtp:mx.sub1.dom1 sub2.dom1 smtp:mx.sub2.dom1 dom1 smtp:mx.dom2 .dom1 smtp:mx.dom2 dom2 smtp:mx.dom2 .dom2 smtp:mx.dom2 post.dom1 local: localhost.dom1 local: ------------------------- virtual - пустой. Проблема: Когда почта приходит для user@subY.dom1 она направляется на mx.dom2, а не на mx.subY.dom1 Что я ни делал в transport - безрезультатно. Сразу оговорюсь: postalias transport; postfix reload делал В DNS для каждого поддомена subY.dom1 указан свой mx.subY.dom1 A 192.168.Y.1
reply other threads:[~2001-07-19 18:15 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20010719222921.1108aae5.xbow@bryansk.elektra.ru \ --to=xbow@bryansk.elektra.ru \ --cc=mandrake-russian@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git