* [Comm] Courier IMAP + userdb
@ 2003-05-22 10:08 Прокопьев Евгений
2003-05-22 23:32 ` metrol
2003-05-23 6:55 ` Gleb Kulikov
0 siblings, 2 replies; 6+ messages in thread
From: Прокопьев Евгений @ 2003-05-22 10:08 UTC (permalink / raw)
To: community
Здравствуйте!
А как из Courier IMAP достучаться до пользователей из userdb?
Для того, чтобы задать пароль, делал и так:
# userdbpw | userdb marconi@myserver.ru set systempw
Password:
Reenter password:
# cat userdb
marconi@myserver.ru
systempw=2MWG7trrDTWk6|uid=8|mail=/var/spool/mail/marconi|home=/var/spool/mail/marconi|gid=12
и так:
# userdb marconi@myserver.ru set systempw=1
# cat userdb
marconi@myserver.ru
uid=8|systempw=1|mail=/var/spool/mail/marconi|home=/var/spool/mail/marconi|gid=12
Во всех случаях потом делал:
# makeuserdb
# rm userdb.lock
Но на попытку подключиться c паролем "1" Мозилла всегда говорит одно и
то же: "Команда PASS не выполнена. Почтовый сервер ответил : Login failed"
--
С уважением, Прокопьев Евгений
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Comm] Courier IMAP + userdb
2003-05-22 10:08 [Comm] Courier IMAP + userdb Прокопьев Евгений
@ 2003-05-22 23:32 ` metrol
2003-05-23 5:28 ` Прокопьев Евгений
2003-05-23 6:55 ` Gleb Kulikov
1 sibling, 1 reply; 6+ messages in thread
From: metrol @ 2003-05-22 23:32 UTC (permalink / raw)
To: community
Прокопьев Евгений пишет:
>
>
> # userdb marconi@myserver.ru set systempw=1
> # cat userdb
> marconi@myserver.ru
> uid=8|systempw=1|mail=/var/spool/mail/marconi|home=/var/spool/mail/marconi|gid=12
^^^^^^^^^^^^^^^^^^^ - имя пользователя в Мозилла должно быть именно
таким
или заведи просто пользователя: marconi, без имени домена.
>
>
> Во всех случаях потом делал:
>
> # makeuserdb
> # rm userdb.lock
>
> Но на попытку подключиться c паролем "1" Мозилла всегда говорит одно и
> то же: "Команда PASS не выполнена. Почтовый сервер ответил : Login
> failed"
>
Евгений.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Comm] Courier IMAP + userdb
2003-05-22 23:32 ` metrol
@ 2003-05-23 5:28 ` Прокопьев Евгений
2003-05-23 7:09 ` Dmitry Lebkov
0 siblings, 1 reply; 6+ messages in thread
From: Прокопьев Евгений @ 2003-05-23 5:28 UTC (permalink / raw)
To: community
metrol@amur.ru пишет:
>> # userdb marconi@myserver.ru set systempw=1
>> # cat userdb
>> marconi@myserver.ru
>> uid=8|systempw=1|mail=/var/spool/mail/marconi|home=/var/spool/mail/marconi|gid=12
> ^^^^^^^^^^^^^^^^^^^ - имя пользователя в Мозилла должно быть именно
> таким
Спасибо, так и есть.
> или заведи просто пользователя: marconi, без имени домена.
А в этом случае при попытке доставить marconi почту maildrop говорит в лог:
May 23 09:18:38 myserver postfix/pickup[3663]: A3D4C1B2B: uid=0 from=<root>
May 23 09:18:38 myserver postfix/cleanup[3707]: A3D4C1B2B:
message-id=<20030523051838.A3D4C1B2B@myserver.ru>
May 23 09:18:38 myserver postfix/qmgr[3666]: A3D4C1B2B:
from=<root@myserver.ru>, size=279, nrcpt=1 (queue active)
May 23 09:18:38 myserver maildrop[3710]: Invalid user specified.
May 23 09:18:38 myserver postfix/pipe[3709]: A3D4C1B2B:
to=<marconi@myserver.ru>, relay=maildrop, delay=0, status=deferred
(temporary failure. Command output: /usr/bin/maildrop-userdb: Invalid
user specified. )
Можно, конечно сделать скрипт-враппер, который будет приводить имя к
требуемому виду и отдавать maildrop-userdb, но как-то это слишком грязно.
--
С уважением, Прокопьев Евгений
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Comm] Courier IMAP + userdb
2003-05-23 5:28 ` Прокопьев Евгений
@ 2003-05-23 7:09 ` Dmitry Lebkov
2003-05-23 9:34 ` Прокопьев Евгений
0 siblings, 1 reply; 6+ messages in thread
From: Dmitry Lebkov @ 2003-05-23 7:09 UTC (permalink / raw)
To: community
On Fri, 23 May 2003 09:28:54 +0400
Прокопьев Евгений <john@rmts.donpac.ru> wrote:
> metrol@amur.ru пишет:
>
> >> # userdb marconi@myserver.ru set systempw=1
> >> # cat userdb
> >> marconi@myserver.ru
> >> uid=8|systempw=1|mail=/var/spool/mail/marconi|home=/var/spool/mail/marconi|gid=12
>
> > ^^^^^^^^^^^^^^^^^^^ - имя пользователя в Мозилла должно быть именно
> > таким
>
> Спасибо, так и есть.
>
> > или заведи просто пользователя: marconi, без имени домена.
>
> А в этом случае при попытке доставить marconi почту maildrop говорит в лог:
>
> May 23 09:18:38 myserver postfix/pickup[3663]: A3D4C1B2B: uid=0 from=<root>
> May 23 09:18:38 myserver postfix/cleanup[3707]: A3D4C1B2B:
> message-id=<20030523051838.A3D4C1B2B@myserver.ru>
> May 23 09:18:38 myserver postfix/qmgr[3666]: A3D4C1B2B:
> from=<root@myserver.ru>, size=279, nrcpt=1 (queue active)
> May 23 09:18:38 myserver maildrop[3710]: Invalid user specified.
> May 23 09:18:38 myserver postfix/pipe[3709]: A3D4C1B2B:
> to=<marconi@myserver.ru>, relay=maildrop, delay=0, status=deferred
> (temporary failure. Command output: /usr/bin/maildrop-userdb: Invalid
> user specified. )
>
> Можно, конечно сделать скрипт-враппер, который будет приводить имя к
> требуемому виду и отдавать maildrop-userdb, но как-то это слишком грязно.
Если я еще не надоел: доки - РУЛЕЗФОРЕВА! %))))
в master.cf:
maildrop-userdb -d ${user}
будет выполнен как maildrop-userdb -d marconi
maildrop-userdb -d ${recipient}
будет выполнен как maildrop-userdb -d marconi@mysqerver.ru
В main.cf также есть свои макросы: $RECIPIENT, $LOGNAME, $DOMAIN
Подставлять в нужное место ... ;)
--
WBR, Dmitry Lebkov
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Comm] Courier IMAP + userdb
2003-05-22 10:08 [Comm] Courier IMAP + userdb Прокопьев Евгений
2003-05-22 23:32 ` metrol
@ 2003-05-23 6:55 ` Gleb Kulikov
1 sibling, 0 replies; 6+ messages in thread
From: Gleb Kulikov @ 2003-05-23 6:55 UTC (permalink / raw)
To: community
В сообщении от 22 Май 2003 04:08 Прокопьев Евгений написал:
> Здравствуйте!
>
> А как из Courier IMAP достучаться до пользователей из userdb?
>
> Для того, чтобы задать пароль, делал и так:
>
> # userdbpw | userdb marconi@myserver.ru set systempw
вместо systempw, используй pop3pw и imappw. Да, и внимательно проследить: при
создании userdb, ВСЕ ключевые слова обязательно должны быть маленькими
буквами.
--
Салют, /GLeb
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-05-23 9:34 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-22 10:08 [Comm] Courier IMAP + userdb Прокопьев Евгений
2003-05-22 23:32 ` metrol
2003-05-23 5:28 ` Прокопьев Евгений
2003-05-23 7:09 ` Dmitry Lebkov
2003-05-23 9:34 ` Прокопьев Евгений
2003-05-23 6:55 ` Gleb Kulikov
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