ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Grigory Milev <week@altlinux.ru>
To: ALT Linux Sisyphus discussion list <sisyphus@altlinux.ru>
Subject: Re: [sisyphus] Вопрос про cyrus-imapd
Date: Wed, 31 Mar 2004 11:28:27 +0300
Message-ID: <878yhhv2s4.fsf@pc349.belcaf.minsk.by> (raw)
In-Reply-To: <1080720265.8303.3016.camel@server03.xproject.ru> (Maxim Noskov's message of "Wed, 31 Mar 2004 12:04:25 +0400")

>>>>> "Maxim" == Maxim Noskov <mn@xproject.ru> writes:

    Maxim> Есть задача, плавно перетащить наших клиентов с qmail+vpopmail, на
    Maxim> postfix+cyrus-imapd. Вопрос в следущим, для авторизации по POP3
    Maxim> клиентов использовалась схема пользователь@домен.ру, а в
    Maxim> cyrus-imapd насколько я понимаю используется префикс, можно ли как
    Maxim> нибудь незаметно перенести юзверей из vpopmail в cyrus, с
    Maxim> использованием маски: username@domain.com?
У меня вся почта авторизация через postgres в виде user@domain.com

cat /etc/courier-imap/authdaemon
authmodulelist="authpgsql authpam"
authmodulelistorig="authpgsql authpam"
daemons=5
version=""
authdaemonvar=/var/lib/courier-imap

cat /etc/courier-imap/authdaemon-pgsql.conf
PGSQL_HOST              localhost
PGSQL_PORT              5432
PGSQL_USERNAME          username
PGSQL_PASSWORD          password
PGSQL_DATABASE          mail
PGSQL_USER_TABLE        users
# PGSQL_CRYPT_PWFIELD   pass
PGSQL_CLEAR_PWFIELD     pass
DEFAULT_DOMAIN          domain.com
PGSQL_UID_FIELD         uid
PGSQL_GID_FIELD         gid
PGSQL_LOGIN_FIELD       email
PGSQL_HOME_FIELD        mbox
PGSQL_NAME_FIELD        name
PGSQL_MAILDIR_FIELD     mbox

В /etc/courier-imap/imapd правил только:
AUTHMODULES="authdaemon"
IMAPDSTART=YES


Формат таблицы пользователей в postgresql:
id 	integer
email 	text 	NOT NULL
mbox 	text 	NOT NULL
pass 	text
name 	text

+--------------------------------------------------------+
Grigory Milev	mailto:week@altlinux.ru
ALT Linux Team	http://www.altlinux.ru
+--------------------------------------------------------+
Life too beautiful and interesting. Don't worry, be happy.


  reply	other threads:[~2004-03-31  8:28 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-31  8:04 Maxim Noskov
2004-03-31  8:28 ` Grigory Milev [this message]
2004-03-31  8:29 ` Eugene Ostapets
2004-03-31  9:05   ` Maxim Noskov
2004-03-31  9:16     ` Sergey Degtyaryov
2004-03-31  9:16       ` Maxim Noskov
2004-03-31 10:23         ` Epiphanov Sergei
2004-03-31  9:21     ` Eugene Ostapets
2004-03-31 10:21     ` Alexei Takaseev
2004-03-31 12:06       ` Grigory Milev
2004-03-31 19:58         ` Sergey
2004-04-01 10:19         ` Alexei Takaseev
2004-03-31 10:19 ` Alexei Takaseev
2004-04-01  5:19 ` Klimchev Konstantin
2004-04-01 10:17   ` Alexei Takaseev
2004-04-01 11:01     ` Klimchev Konstantin
2004-04-02  9:51       ` Alexei Takaseev
2004-04-02 12:46         ` Klimchev Konstantin

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=878yhhv2s4.fsf@pc349.belcaf.minsk.by \
    --to=week@altlinux.ru \
    --cc=sisyphus@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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

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


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