ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Anton Gorlov <stalker@altlinux.ru>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: [Sysadmins] exim and virtual_domain_alias
Date: Wed, 11 Oct 2006 15:57:50 +0400
Message-ID: <452CDC3E.1050707@altlinux.ru> (raw)

В конфиге Exim указано

virtual_domain_alias:
   driver = redirect
   allow_fail
   data = ${lookup mysql{SELECT recipients FROM aliases WHERE 
local_part='${local
   retry_use_local_part

system_aliases:
   driver = redirect
   allow_fail
   allow_defer
   data = ${lookup{$local_part}lsearch{/etc/aliases}}
  file_transport = address_file
  pipe_transport = address_pipe


где recipients в БД содержит имя конечного юзера, а local_part   	 
соотвественно имена типа hostmaster,postmaster и тд и тп.

пытаюсь отправить письмо на имя скажем hostmaster@virtual.domain
И вижу что оно уходит локальному юзеру (T=local_delivery)

В логе запросов к мусклу при этом

1863 Query       SELECT recipients FROM aliases WHERE local_p
art='gorlov' AND domain='virtual.domain'
...
1863 Query       SELECT recipients FROM aliases WHERE local_p
art='hostmaster' AND domain='virtual.domain'
1863 Query       SELECT recipients FROM aliases WHERE local_p
art='root' AND domain='mail.virtual.domain'
1864 Query       SELECT recipients FROM aliases WHERE local_p
art='hostmaster' AND domain='virtual.domain'

mail.virtual.domain
это hostname и оно же primary_hostname.

Вопрос -почему оно не попало под
virtual_domain_alias. Хотя запрос
SELECT recipients FROM aliases WHERE local_p
art='hostmaster' AND domain='virtual.domain'
как раз и выдаёт  gorlov (ящик у меня gorlov@virtual.domain)


             reply	other threads:[~2006-10-11 11:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-11 11:57 Anton Gorlov [this message]
2006-10-11 14:21 ` Anton Gorlov
2006-10-15 14:32   ` Michael Shigorin
2006-10-15 16:11     ` Anton Gorlov

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=452CDC3E.1050707@altlinux.ru \
    --to=stalker@altlinux.ru \
    --cc=sysadmins@lists.altlinux.org \
    /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 sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/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 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git