ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
* [Sysadmins] exim and virtual_domain_alias
@ 2006-10-11 11:57 Anton Gorlov
  2006-10-11 14:21 ` Anton Gorlov
  0 siblings, 1 reply; 4+ messages in thread
From: Anton Gorlov @ 2006-10-11 11:57 UTC (permalink / raw)
  To: ALT Linux sysadmin discuss

В конфиге 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)


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Sysadmins] exim and virtual_domain_alias
  2006-10-11 11:57 [Sysadmins] exim and virtual_domain_alias Anton Gorlov
@ 2006-10-11 14:21 ` Anton Gorlov
  2006-10-15 14:32   ` Michael Shigorin
  0 siblings, 1 reply; 4+ messages in thread
From: Anton Gorlov @ 2006-10-11 14:21 UTC (permalink / raw)
  To: ALT Linux sysadmin discuss

Вопрос снимается.. сам разобрался где собака зарыта



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Sysadmins] exim and virtual_domain_alias
  2006-10-11 14:21 ` Anton Gorlov
@ 2006-10-15 14:32   ` Michael Shigorin
  2006-10-15 16:11     ` Anton Gorlov
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Shigorin @ 2006-10-15 14:32 UTC (permalink / raw)
  To: ALT Linux sysadmin discuss

On Wed, Oct 11, 2006 at 06:21:26PM +0400, Anton Gorlov wrote:
> Вопрос снимается.. сам разобрался где собака зарыта

Полезно озвучивать.

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Sysadmins] exim and virtual_domain_alias
  2006-10-15 14:32   ` Michael Shigorin
@ 2006-10-15 16:11     ` Anton Gorlov
  0 siblings, 0 replies; 4+ messages in thread
From: Anton Gorlov @ 2006-10-15 16:11 UTC (permalink / raw)
  To: ALT Linux sysadmin discuss

Michael Shigorin пишет:

>> Вопрос снимается.. сам разобрался где собака зарыта
> Полезно озвучивать.

Как только хотя бы дома подниму всю эту связку и протещщу - закину на 
freesource.info.

-- 
   np: silence


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-10-15 16:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-11 11:57 [Sysadmins] exim and virtual_domain_alias Anton Gorlov
2006-10-11 14:21 ` Anton Gorlov
2006-10-15 14:32   ` Michael Shigorin
2006-10-15 16:11     ` Anton Gorlov

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