ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Dmitry Lebkov <dima@sakhalin.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Postfix + Maildrop-userdb без /etc/passwd
Date: Wed, 21 May 2003 22:26:47 +1100
Message-ID: <20030521222647.02173526.dima@sakhalin.ru> (raw)
In-Reply-To: <3ECB4156.5020703@rmts.donpac.ru>

On Wed, 21 May 2003 13:05:26 +0400
Прокопьев Евгений <john@rmts.donpac.ru> wrote:

> 
> > Потому, что постфикс ничего не знает про пользователей в userdb.db.
> 
> А какое постфиксу дело до этих пользователей? Его дело - вызвать 
> maildrop-userdb -d имя_пользователя

Очень даже болшое %) т.к. постфикс (прежде чем дернуть maildrop)
должен сменить UID/GID на UID/GID пользователя, которому
производится доставка почты. А т.к. такого пользователя нет в
системе (т.е. getpwnam(username) возвращает ошибку) - дело до
maildrop не доходит. Все это действует, если maildrop установлен
как local delivery agent(eg. mailbox_command или mailbox_transport).
Или он у тебя как-нить по другому вызывается?

> > Добавь в main.cf следующее:
> > 
> > local_recipient_maps = 
> >    $alias_maps,
> >    unix:passwd.byname,
> >    hash:/etc/courier-imap/userdb
> > 
> > И _внимательно_ прочитай комментарии к local_recipient_maps.
> 
> Прочитал. Если я правильно понял, то при раскомментировании этого 
> параметра постфикс начинает проверять, а действительно ли такой 
> пользователь есть. По умолчанию постфикс ничего не проверяет, а просто
> отдает письмо MDA.

См. выше про local delivery agent.
> 
> Соответственно, после добавления ничего не изменилось.

А про chroot там в комментариях читал? А userdb.db скопировать в
/var/spool/postfix/etc/courier-imap/ не пробовал? Я когда
экспериментировал с виртуальными почтовыми ящиками, для которых
почта доставляется как для локальных вроде так и делал. Хотя сейчас
уже не вспомню. Да, возможно поможет описать транспорт maildrop
(должен быть в master.cf) как fallback_transport в mailn.cf. Тогда
вся почта, которую невозможно доставить с помощью mailbox_command
будет отдаваться на доставку с помощью fallback_transport.

Вообще, для пользы дела, хотелось бы увидеть результат 'postconf -n'
и содержимое master.cf, а не догадываться о том что включено, а что
- нет.

-- 
WBR, Dmitry Lebkov


  reply	other threads:[~2003-05-21 11:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-19  8:34 Прокопьев Евгений
2003-05-19 22:25 ` Dmitry Lebkov
2003-05-21  9:05   ` Прокопьев Евгений
2003-05-21 11:26     ` Dmitry Lebkov [this message]
2003-05-22  6:22       ` Прокопьев Евгений

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=20030521222647.02173526.dima@sakhalin.ru \
    --to=dima@sakhalin.ru \
    --cc=community@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