Re: [Exim-users] aliases и рекурсия
Привет, https://www.exim.org/exim-html-current/doc/html/spec_html/ch-the_default_configuration_file.html The first three non-comment configuration lines are as follows: domainlist local_domains= @ domainlist relay_to_domains = hostlist relay_from_hosts = 127.0.0.1 These are not, in fact, option settings. They are definitions of two named domain lists and one named host list. Exim allows you to give names to lists of domains, hosts, and email addresses, in order to make it easier to manage the configuration file (see section 10.6). Т.е. это макрос в дефолтноми конфиге, который потом используется по конфигу. 1 червня 2021, 05:56:50, від "Victor Sudakov" < v...@sibptus.ru >: > > > > local_domains - это макрос, такой же как и dovecot_domains в примере - т.е. > > что-то, что "доставка", а не "редирект". И всегда хотел узнать, но стеснялся спросить. Макрос local_domains имеет какое-то особое встроенное значение в коде, или это обычный макрос в конфиге? -- Victor Sudakov VAS4-RIPE http://vas.tomsk.ru/ 2:5005/49@fidonet ___ Exim-users mailing list Exim-users@mailground.net http://mailground.net/mailman/listinfo/exim-users ___ Exim-users mailing list Exim-users@mailground.net http://mailground.net/mailman/listinfo/exim-users
Re: [Exim-users] aliases и рекурсия
> > > > local_domains - это макрос, такой же как и dovecot_domains в примере - т.е. > > что-то, что "доставка", а не "редирект". И всегда хотел узнать, но стеснялся спросить. Макрос local_domains имеет какое-то особое встроенное значение в коде, или это обычный макрос в конфиге? -- Victor Sudakov VAS4-RIPE http://vas.tomsk.ru/ 2:5005/49@fidonet signature.asc Description: PGP signature ___ Exim-users mailing list Exim-users@mailground.net http://mailground.net/mailman/listinfo/exim-users
Re: [Exim-users] aliases и рекурсия
И вывод из этого какой? Vladimir Sharun wrote: > Привет, > > local_domains - это макрос, такой же как и dovecot_domains в примере - т.е. > что-то, что "доставка", а не "редирект". > > 31 травня 2021, 09:52:50, від "Victor Sudakov" : > > Привет, > > Спасибо, только есть нюанс: pupkin@mydomain.example это не local mailbox > в том смысле, что mydomain.example не в local_domains, а в отдельном > списке dovecot_domains: > > domainlist dovecot_domains = dsearch;/home/vmail > > # Redirect virtual users > virtual_redirect: > driver = redirect > allow_fail > allow_defer > data = ${lookup{$local_part@$domain}lsearch{/etc/dovecot/aliases}} > > # The dovecot server > dovecot: > driver = accept > domains = +dovecot_domains > transport = dovecot_lmtp > > > > Vladimir Sharun wrote: > > Привет, > > > > 5. Redirecting to a local mailbox > > A redirection item may safely be the same as the address currently under > > consideration. This does not cause a routing loop, because a router is > > automatically skipped if any ancestor of the address that is being > > processed is the same as the current address and was processed by the > > current router. Such an address is therefore passed to the following > > routers, so it is handled as if there were no redirection. When making this > > loop-avoidance test, the complete local part, including any prefix or > > suffix, is used. > > > > > > 31 травня 2021, 07:22:10, від "Victor Sudakov" : > > > > Коллеги, > > > > В документации написано, что Exim has its own method of loop detection. > > Всё же хочется уточнить. В aliases есть запись > > > > pupkin@mydomain.example : pupkin@mydomain.example, pup...@gmail.com > > > > И вроде она интуитивно правильно отрабатывает, идет локальному > > пользователю и одновременно форвардится: > > > > # exim -bt pupkin@mydomain.example > > pupkin@mydomain.example > > <-- pupkin@mydomain.example > > router = dovecot, transport = dovecot_lmtp > > pup...@gmail.com > > <-- pupkin@mydomain.example > > router = dnslookup, transport = remote_smtp > > host gmail-smtp-in.l.google.com [74.125.195.27] MX=5 > > host alt1.gmail-smtp-in.l.google.com [142.250.115.26] MX=10 > > host alt2.gmail-smtp-in.l.google.com [64.233.171.27] MX=20 > > host alt3.gmail-smtp-in.l.google.com [142.250.152.27] MX=30 > > host alt4.gmail-smtp-in.l.google.com [172.253.113.27] MX=40 > > # > > > > Но всё же хочется уточнить, такая рекурсивная конструкция штатная и > > всегда будет работать, или мне просто повезло на этот раз? > > > > > > -- > > Victor Sudakov VAS4-RIPE > > http://vas.tomsk.ru/ > > 2:5005/49@fidonet > > > > ___ > > Exim-users mailing list > > Exim-users@mailground.net > > http://mailground.net/mailman/listinfo/exim-users > > > > > ___ > > Exim-users mailing list > > Exim-users@mailground.net > > http://mailground.net/mailman/listinfo/exim-users > > > > > -- > Victor Sudakov VAS4-RIPE > http://vas.tomsk.ru/ > 2:5005/49@fidonet > > ___ > Exim-users mailing list > Exim-users@mailground.net > http://mailground.net/mailman/listinfo/exim-users > > ___ > Exim-users mailing list > Exim-users@mailground.net > http://mailground.net/mailman/listinfo/exim-users > -- Victor Sudakov VAS4-RIPE http://vas.tomsk.ru/ 2:5005/49@fidonet signature.asc Description: PGP signature ___ Exim-users mailing list Exim-users@mailground.net http://mailground.net/mailman/listinfo/exim-users
Re: [Exim-users] aliases и рекурсия
Привет, local_domains - это макрос, такой же как и dovecot_domains в примере - т.е. что-то, что "доставка", а не "редирект". 31 травня 2021, 09:52:50, від "Victor Sudakov" : Привет, Спасибо, только есть нюанс: pupkin@mydomain.example это не local mailbox в том смысле, что mydomain.example не в local_domains, а в отдельном списке dovecot_domains: domainlist dovecot_domains = dsearch;/home/vmail # Redirect virtual users virtual_redirect: driver = redirect allow_fail allow_defer data = ${lookup{$local_part@$domain}lsearch{/etc/dovecot/aliases}} # The dovecot server dovecot: driver = accept domains = +dovecot_domains transport = dovecot_lmtp Vladimir Sharun wrote: > Привет, > > 5. Redirecting to a local mailbox > A redirection item may safely be the same as the address currently under > consideration. This does not cause a routing loop, because a router is > automatically skipped if any ancestor of the address that is being processed > is the same as the current address and was processed by the current router. > Such an address is therefore passed to the following routers, so it is > handled as if there were no redirection. When making this loop-avoidance > test, the complete local part, including any prefix or suffix, is used. > > > 31 травня 2021, 07:22:10, від "Victor Sudakov" : > > Коллеги, > > В документации написано, что Exim has its own method of loop detection. > Всё же хочется уточнить. В aliases есть запись > > pupkin@mydomain.example : pupkin@mydomain.example, pup...@gmail.com > > И вроде она интуитивно правильно отрабатывает, идет локальному > пользователю и одновременно форвардится: > > # exim -bt pupkin@mydomain.example > pupkin@mydomain.example > <-- pupkin@mydomain.example > router = dovecot, transport = dovecot_lmtp > pup...@gmail.com > <-- pupkin@mydomain.example > router = dnslookup, transport = remote_smtp > host gmail-smtp-in.l.google.com [74.125.195.27] MX=5 > host alt1.gmail-smtp-in.l.google.com [142.250.115.26] MX=10 > host alt2.gmail-smtp-in.l.google.com [64.233.171.27] MX=20 > host alt3.gmail-smtp-in.l.google.com [142.250.152.27] MX=30 > host alt4.gmail-smtp-in.l.google.com [172.253.113.27] MX=40 > # > > Но всё же хочется уточнить, такая рекурсивная конструкция штатная и > всегда будет работать, или мне просто повезло на этот раз? > > > -- > Victor Sudakov VAS4-RIPE > http://vas.tomsk.ru/ > 2:5005/49@fidonet > > ___ > Exim-users mailing list > Exim-users@mailground.net > http://mailground.net/mailman/listinfo/exim-users > > ___ > Exim-users mailing list > Exim-users@mailground.net > http://mailground.net/mailman/listinfo/exim-users > -- Victor Sudakov VAS4-RIPE http://vas.tomsk.ru/ 2:5005/49@fidonet ___ Exim-users mailing list Exim-users@mailground.net http://mailground.net/mailman/listinfo/exim-users ___ Exim-users mailing list Exim-users@mailground.net http://mailground.net/mailman/listinfo/exim-users
Re: [Exim-users] aliases и рекурсия
Привет, Спасибо, только есть нюанс: pupkin@mydomain.example это не local mailbox в том смысле, что mydomain.example не в local_domains, а в отдельном списке dovecot_domains: domainlist dovecot_domains = dsearch;/home/vmail # Redirect virtual users virtual_redirect: driver = redirect allow_fail allow_defer data = ${lookup{$local_part@$domain}lsearch{/etc/dovecot/aliases}} # The dovecot server dovecot: driver = accept domains = +dovecot_domains transport = dovecot_lmtp Vladimir Sharun wrote: > Привет, > > 5. Redirecting to a local mailbox > A redirection item may safely be the same as the address currently under > consideration. This does not cause a routing loop, because a router is > automatically skipped if any ancestor of the address that is being processed > is the same as the current address and was processed by the current router. > Such an address is therefore passed to the following routers, so it is > handled as if there were no redirection. When making this loop-avoidance > test, the complete local part, including any prefix or suffix, is used. > > > 31 травня 2021, 07:22:10, від "Victor Sudakov" : > > Коллеги, > > В документации написано, что Exim has its own method of loop detection. > Всё же хочется уточнить. В aliases есть запись > > pupkin@mydomain.example : pupkin@mydomain.example, pup...@gmail.com > > И вроде она интуитивно правильно отрабатывает, идет локальному > пользователю и одновременно форвардится: > > # exim -bt pupkin@mydomain.example > pupkin@mydomain.example > <-- pupkin@mydomain.example > router = dovecot, transport = dovecot_lmtp > pup...@gmail.com > <-- pupkin@mydomain.example > router = dnslookup, transport = remote_smtp > host gmail-smtp-in.l.google.com [74.125.195.27] MX=5 > host alt1.gmail-smtp-in.l.google.com [142.250.115.26] MX=10 > host alt2.gmail-smtp-in.l.google.com [64.233.171.27] MX=20 > host alt3.gmail-smtp-in.l.google.com [142.250.152.27] MX=30 > host alt4.gmail-smtp-in.l.google.com [172.253.113.27] MX=40 > # > > Но всё же хочется уточнить, такая рекурсивная конструкция штатная и > всегда будет работать, или мне просто повезло на этот раз? > > > -- > Victor Sudakov VAS4-RIPE > http://vas.tomsk.ru/ > 2:5005/49@fidonet > > ___ > Exim-users mailing list > Exim-users@mailground.net > http://mailground.net/mailman/listinfo/exim-users > > ___ > Exim-users mailing list > Exim-users@mailground.net > http://mailground.net/mailman/listinfo/exim-users > -- Victor Sudakov VAS4-RIPE http://vas.tomsk.ru/ 2:5005/49@fidonet signature.asc Description: PGP signature ___ Exim-users mailing list Exim-users@mailground.net http://mailground.net/mailman/listinfo/exim-users
Re: [Exim-users] aliases и рекурсия
Привет, 5. Redirecting to a local mailbox A redirection item may safely be the same as the address currently under consideration. This does not cause a routing loop, because a router is automatically skipped if any ancestor of the address that is being processed is the same as the current address and was processed by the current router. Such an address is therefore passed to the following routers, so it is handled as if there were no redirection. When making this loop-avoidance test, the complete local part, including any prefix or suffix, is used. 31 травня 2021, 07:22:10, від "Victor Sudakov" : Коллеги, В документации написано, что Exim has its own method of loop detection. Всё же хочется уточнить. В aliases есть запись pupkin@mydomain.example : pupkin@mydomain.example, pup...@gmail.com И вроде она интуитивно правильно отрабатывает, идет локальному пользователю и одновременно форвардится: # exim -bt pupkin@mydomain.example pupkin@mydomain.example <-- pupkin@mydomain.example router = dovecot, transport = dovecot_lmtp pup...@gmail.com <-- pupkin@mydomain.example router = dnslookup, transport = remote_smtp host gmail-smtp-in.l.google.com [74.125.195.27] MX=5 host alt1.gmail-smtp-in.l.google.com [142.250.115.26] MX=10 host alt2.gmail-smtp-in.l.google.com [64.233.171.27] MX=20 host alt3.gmail-smtp-in.l.google.com [142.250.152.27] MX=30 host alt4.gmail-smtp-in.l.google.com [172.253.113.27] MX=40 # Но всё же хочется уточнить, такая рекурсивная конструкция штатная и всегда будет работать, или мне просто повезло на этот раз? -- Victor Sudakov VAS4-RIPE http://vas.tomsk.ru/ 2:5005/49@fidonet ___ Exim-users mailing list Exim-users@mailground.net http://mailground.net/mailman/listinfo/exim-users ___ Exim-users mailing list Exim-users@mailground.net http://mailground.net/mailman/listinfo/exim-users