From: Eugene Prokopiev <prokopiev@stc.donpac.ru>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] pop3-сервер с users/passwords/mbox names в plain text file
Date: Tue, 12 Jun 2007 11:20:20 +0400
Message-ID: <466E4934.9020508@stc.donpac.ru> (raw)
In-Reply-To: <20070611210436.GA4326@lks.home>
Konstantin A. Lepikhov пишет:
> Hi Eugene!
>
> Tuesday 12, at 12:59:32 AM you wrote:
>
>
>>Собственно, проблема не в postfix, т.к. dbmail с лукапом из mysql ведет
>>себя так же (unknown user: "user"), пока не определен mailbox_transport.
>
> тогда надо и fallback_transport выставить, чтобы не только виртуальным
> пользователям письма приходили.
Вот, кстати, я никогда не понимал, зачем это нужно:
mailbox_transport - Optional message delivery transport that the
local(8) delivery agent should use for mailbox delivery to all local
recipients, whether or not they are found in the UNIX passwd database.
fallback_transport - Optional message delivery transport that the
local(8) delivery agent should use for names that are not found in the
aliases(5) or UNIX password database.
Т.е. mailbox_transport используется, если получатель найден или не
найден в UNIX passwd database, т.е. всегда. Нет?
>
>
>> auth_socket_path = /var/run/dovecot/auth-master
>>}
>>auth default {
>> mechanisms = plain
>> passdb pam {
>> }
>> userdb passwd {
>> }
>> passdb passwd-file {
>> args = /etc/dovecot/dovecot.passwd
>> }
>> userdb static {
>> args = uid=8 gid=12 home=/mail/%u
>> }
>> user = root
>>}
>
> и где тут написано про auth-master? В auth default { нужно тоже его
> указывать:
>
> auth default {
> ..
> socket listen {
> # Note that we're setting a master socket. SMTP AUTH for Postfix and
> # Exim uses client sockets.
> master {
> path = /var/run/dovecot/auth-master
>
> ....
Хорошо, теперь конфиг выглядит так:
# cat /etc/dovecot/dovecot.conf
protocols = pop3
ssl_disable = yes
mail_extra_groups = mail
first_valid_uid = 8
mail_location = mbox:/mail/%u
mbox_min_index_size = 0
lock_method = fcntl
protocol pop3 {
pop3_uidl_format = %08Xu%08Xv
}
protocol lda {
postmaster_address = postmaster@myhost.mydomain.com
auth_socket_path = /var/run/dovecot/auth-master
}
auth default {
mechanisms = plain
passdb pam {
}
userdb passwd {
}
passdb passwd-file {
args = /etc/dovecot/dovecot.passwd
}
userdb static {
args = uid=8 gid=12 home=/mail/%u
}
user = root
socket listen {
master {
path = /var/run/dovecot/auth-master
#mode = 0666
}
}
}
При отправке в логе:
Jun 12 11:12:29 myhost postfix/pickup[7777]: 479D013B65: uid=0 from=<root>
Jun 12 11:12:29 myhost postfix/cleanup[8376]: 479D013B65:
message-id=<20070612071229.479D013B65@myhost.mydomain.com>
Jun 12 11:12:29 myhost postfix/qmgr[7779]: 479D013B65:
from=<root@myhost.mydomain.com>, size=306, nrcpt=1 (queue active)
Jun 12 11:12:29 myhost deliver(user@myhost.mydomain.com):
net_connect(/var/run/dovecot/auth-master) failed: Permission denied
Jun 12 11:12:29 myhost postfix/pipe[8379]: 479D013B65:
to=<user@myhost.mydomain.com>, orig_to=<user>, relay=dovecot,
delay=0.04, delays=0.02/0/0/0.02, dsn=4.3.0, status=deferred (temporary
failure)
Раскомментируем mode = 0666 (кстати, а как сделать правильно, например
поменять владельца вместо mode? user/group там есть, но они указывают
who started dovecot-auth). Теперь:
Jun 12 11:16:02 myhost postfix/pickup[7777]: C370113B7F: uid=0 from=<root>
Jun 12 11:16:02 myhost postfix/cleanup[8642]: C370113B7F:
message-id=<20070612071602.C370113B7F@myhost.mydomain.com>
Jun 12 11:16:02 myhost postfix/qmgr[7779]: C370113B7F:
from=<root@myhost.mydomain.com>, size=306, nrcpt=1 (queue active)
Jun 12 11:16:02 myhost postfix/pipe[8645]: C370113B7F:
to=<user@myhost.mydomain.com>, orig_to=<user>, relay=dovecot,
delay=0.04, delays=0.02/0/0/0.01, dsn=5.1.1, status=bounced (user unknown)
Jun 12 11:16:02 myhost postfix/cleanup[8642]: C98E613B83:
message-id=<20070612071602.C98E613B83@myhost.mydomain.com>
Jun 12 11:16:02 myhost postfix/bounce[8647]: C370113B7F: sender
non-delivery notification: C98E613B83
Jun 12 11:16:02 myhost postfix/qmgr[7779]: C98E613B83: from=<>,
size=2050, nrcpt=1 (queue active)
Jun 12 11:16:02 myhost postfix/qmgr[7779]: C370113B7F: removed
Jun 12 11:16:02 myhost postfix/pipe[8645]: C98E613B83:
to=<john@myhost.mydomain.com>, orig_to=<root@myhost.mydomain.com>,
relay=dovecot, delay=0.02, delays=0.01/0/0/0.01, dsn=5.1.1,
status=bounced (user unknown)
Jun 12 11:16:02 myhost postfix/qmgr[7779]: C98E613B83: removed
Т.е. relay=dovecot вообще никуда доставить не может. Но если сделать так:
echo hello | /usr/lib64/dovecot/deliver -d user
то все будет доставлено:
Jun 12 11:17:23 myhost deliver(user): msgid=: saved mail to INBOX
Что теперь не правильно?
--
С уважением, Прокопьев Евгений
next prev parent reply other threads:[~2007-06-12 7:20 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-11 5:10 Eugene Prokopiev
2007-06-11 8:32 ` Konstantin A. Lepikhov
2007-06-11 10:18 ` Eugene Prokopiev
2007-06-11 10:50 ` Konstantin A. Lepikhov
2007-06-11 9:19 ` Eugene Prokopiev
2007-06-11 10:02 ` Konstantin A. Lepikhov
2007-06-11 11:22 ` Eugene Prokopiev
2007-06-11 16:14 ` Slava Dubrovskiy
2007-06-11 18:33 ` Eugene Prokopiev
2007-06-11 18:48 ` Konstantin A. Lepikhov
2007-06-11 19:38 ` Eugene Prokopiev
2007-06-11 19:49 ` Eugene Prokopiev
2007-06-11 19:52 ` Konstantin A. Lepikhov
2007-06-11 20:07 ` Eugene Prokopiev
2007-06-11 20:11 ` Konstantin A. Lepikhov
2007-06-11 20:28 ` Eugene Prokopiev
2007-06-11 20:27 ` Konstantin A. Lepikhov
2007-06-11 20:51 ` Eugene Prokopiev
2007-06-11 18:54 ` Eugene Prokopiev
2007-06-11 18:55 ` Konstantin A. Lepikhov
2007-06-11 20:59 ` Eugene Prokopiev
2007-06-11 21:04 ` Konstantin A. Lepikhov
2007-06-12 7:20 ` Eugene Prokopiev [this message]
2007-06-12 7:35 ` Slava Dubrovskiy
2007-06-12 7:45 ` Eugene Prokopiev
2007-06-12 8:06 ` Slava Dubrovskiy
2007-06-12 8:20 ` Konstantin A. Lepikhov
2007-06-12 9:20 ` Eugene Prokopiev
2007-06-12 10:43 ` Eugene Prokopiev
2007-06-12 7:42 ` Eugene Prokopiev
2007-06-12 8:13 ` Slava Dubrovskiy
2007-06-12 9:28 ` Eugene Prokopiev
2007-06-12 9:32 ` Slava Dubrovskiy
2007-06-12 13:38 ` Eugene Prokopiev
2007-06-12 14:06 ` Eugene Prokopiev
2007-06-12 14:10 ` Konstantin A. Lepikhov
2007-06-12 14:29 ` Eugene Prokopiev
2007-06-12 16:43 ` Konstantin A. Lepikhov
2007-06-12 17:14 ` Eugene Prokopiev
2007-06-12 19:27 ` Konstantin A. Lepikhov
2007-06-13 6:32 ` Eugene Prokopiev
2007-06-12 14:22 ` Slava Dubrovskiy
2007-06-12 14:29 ` Eugene Prokopiev
2007-11-25 3:55 ` Aleksey Avdeev
2007-06-12 10:40 ` Slava Dubrovskiy
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=466E4934.9020508@stc.donpac.ru \
--to=prokopiev@stc.donpac.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