[Exim-users] aliases и рекурсия

2 views
Skip to first unread message

Victor Sudakov

unread,
May 31, 2021, 12:22:05 AM5/31/21
to exim-...@mailground.net
Коллеги,

В документации написано, что Exim has its own method of loop detection.
Всё же хочется уточнить. В aliases есть запись

pup...@mydomain.example : pup...@mydomain.example, pup...@gmail.com

И вроде она интуитивно правильно отрабатывает, идет локальному
пользователю и одновременно форвардится:

# exim -bt pup...@mydomain.example
pup...@mydomain.example
<-- pup...@mydomain.example
router = dovecot, transport = dovecot_lmtp
pup...@gmail.com
<-- pup...@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
signature.asc

Vladimir Sharun

unread,
May 31, 2021, 2:10:47 AM5/31/21
to Exim MTA на русском
Привет,

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" <v...@sibptus.ru>:

_______________________________________________
Exim-users mailing list
Exim-...@mailground.net
http://mailground.net/mailman/listinfo/exim-users

Victor Sudakov

unread,
May 31, 2021, 2:52:42 AM5/31/21
to exim-...@mailground.net
Привет,

Спасибо, только есть нюанс: pup...@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
signature.asc

Vladimir Sharun

unread,
May 31, 2021, 2:56:06 AM5/31/21
to Exim MTA на русском
Привет,

local_domains - это макрос, такой же как и dovecot_domains в примере - т.е. что-то, что "доставка", а не "редирект".

31 травня 2021, 09:52:50, від "Victor Sudakov" <v...@sibptus.ru>:

Victor Sudakov

unread,
May 31, 2021, 2:59:25 AM5/31/21
to exim-...@mailground.net
И вывод из этого какой?
signature.asc

Victor Sudakov

unread,
May 31, 2021, 10:56:46 PM5/31/21
to exim-...@mailground.net
> >
> > local_domains - это макрос, такой же как и dovecot_domains в примере - т.е. что-то, что "доставка", а не "редирект".

И всегда хотел узнать, но стеснялся спросить. Макрос local_domains имеет
какое-то особое встроенное значение в коде, или это обычный макрос в
конфиге?
signature.asc

Vladimir Sharun

unread,
Jun 1, 2021, 12:44:10 AM6/1/21
to Exim MTA на русском
Привет,

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 >:

Reply all
Reply to author
Forward
0 new messages