ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] Courier IMAP
@ 2002-10-28 12:14 Прокопьев Евгений
  2002-10-28 12:52 ` Dmitry Lebkov
  0 siblings, 1 reply; 4+ messages in thread
From: Прокопьев Евгений @ 2002-10-28 12:14 UTC (permalink / raw)
  To: Community

Здравствуйте!

Установил courier-imap и courier-imap-utils из src.rpm в сизифе. В 
/etc/courier-imap/imapd написал

MAXDAEMONS=200
MAXPERIP=25
IMAPDSTART=YES

Запустил сервисы courier-imapd и courier-authdaemon и вижу

[root@john root]# netstat -pan --inet | grep 143
tcp        0      0 127.0.0.1:143           0.0.0.0:* 
LISTEN      5770/couriertcpd

Подключиться к IMAP из Мозиллы не могу, отвечают "в соединении с 
сервером localhost отказано". Что я делаю не так?

Дополнительные вопросы по теме:

1. С Courier IMAP часто используют maildrop. Обязательно ли это и в чем 
преимущество перед mailbox_command = /usr/sbin/sendmail

2. Существует еще Courier "mail/groupware server", почему тогда вместе 
Courier IMAP чаще используют Postfix и Qmail, чем его?
-- 
С уважением, Прокопьев Евгений



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

* Re: [Comm] Courier IMAP
  2002-10-28 12:14 [Comm] Courier IMAP Прокопьев Евгений
@ 2002-10-28 12:52 ` Dmitry Lebkov
  2002-10-28 13:45   ` Прокопьев Евгений
  0 siblings, 1 reply; 4+ messages in thread
From: Dmitry Lebkov @ 2002-10-28 12:52 UTC (permalink / raw)
  To: community

Доброго времени суток,

О софте из Сизифа - пожалуйста в sisyphus@altlinux.ru!

On Mon, 28 Oct 2002 15:14:10 +0300
Прокопьев Евгений <john@rmts.donpac.ru> wrote:

> Здравствуйте!
> 
> Установил courier-imap и courier-imap-utils из src.rpm в сизифе. В 
> /etc/courier-imap/imapd написал
> 
> MAXDAEMONS=200
> MAXPERIP=25
> IMAPDSTART=YES

Приведи остальные параметры из файла imapd. Они там в большинстве
случаев должны иметь некие правильные значания.

> 
> Запустил сервисы courier-imapd и courier-authdaemon и вижу
> 
> [root@john root]# netstat -pan --inet | grep 143
> tcp        0      0 127.0.0.1:143           0.0.0.0:* 
> LISTEN      5770/couriertcpd
> 
> Подключиться к IMAP из Мозиллы не могу, отвечают "в соединении с 
> сервером localhost отказано". Что я делаю не так?

telnet 127.0.0.1 143 что сообщает?

> 
> Дополнительные вопросы по теме:
> 
> 1. С Courier IMAP часто используют maildrop. Обязательно ли это и в чем 
> преимущество перед mailbox_command = /usr/sbin/sendmail

Courier-IMAP используют с maildrop, т.к. оба поддерживают один формат
почтовых ящиков - Maildir. Кроме как с этим форматом, Courier-IMAP ни
с каким другим не работает.

> 
> 2. Существует еще Courier "mail/groupware server", почему тогда вместе 
> Courier IMAP чаще используют Postfix и Qmail, чем его?

Пакеты maildrop и courier-imap являются частями проекта Courier-MTA.
Подробности см. на http://www.courier-mta.org.

> -- 
> С уважением, Прокопьев Евгений
> 
> _______________________________________________
> Community mailing list
> Community@altlinux.ru
> http://www.altlinux.ru/mailman/listinfo/community


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

* Re: [Comm] Courier IMAP
  2002-10-28 12:52 ` Dmitry Lebkov
@ 2002-10-28 13:45   ` Прокопьев Евгений
  2002-10-28 14:34     ` Dmitry Lebkov
  0 siblings, 1 reply; 4+ messages in thread
From: Прокопьев Евгений @ 2002-10-28 13:45 UTC (permalink / raw)
  To: community

[-- Attachment #1: Type: text/plain, Size: 1989 bytes --]

Dmitry Lebkov wrote:
> Доброго времени суток,
> 
> О софте из Сизифа - пожалуйста в sisyphus@altlinux.ru!
> 
> On Mon, 28 Oct 2002 15:14:10 +0300
> Прокопьев Евгений <john@rmts.donpac.ru> wrote:
> 
> 
>>Здравствуйте!
>>
>>Установил courier-imap и courier-imap-utils из src.rpm в сизифе. В 
>>/etc/courier-imap/imapd написал
>>
>>MAXDAEMONS=200
>>MAXPERIP=25
>>IMAPDSTART=YES
> 
> 
> Приведи остальные параметры из файла imapd. Они там в большинстве
> случаев должны иметь некие правильные значания.

в аттаче

>>Запустил сервисы courier-imapd и courier-authdaemon и вижу
>>
>>[root@john root]# netstat -pan --inet | grep 143
>>tcp        0      0 127.0.0.1:143           0.0.0.0:* 
>>LISTEN      5770/couriertcpd
>>
>>Подключиться к IMAP из Мозиллы не могу, отвечают "в соединении с 
>>сервером localhost отказано". Что я делаю не так?
> 
> 
> telnet 127.0.0.1 143 что сообщает?

[john@john john]$ telnet 127.0.0.1 143
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
* OK Courier-IMAP ready. Copyright 1998-2002 Double Precision, Inc.  See 
COPYING for distribution information.


>>Дополнительные вопросы по теме:
>>
>>1. С Courier IMAP часто используют maildrop. Обязательно ли это и в чем 
>>преимущество перед mailbox_command = /usr/sbin/sendmail
> 
> 
> Courier-IMAP используют с maildrop, т.к. оба поддерживают один формат
> почтовых ящиков - Maildir. Кроме как с этим форматом, Courier-IMAP ни
> с каким другим не работает.

Тогда мантейнеру: почему maildrop нет в зависимостях?

>>2. Существует еще Courier "mail/groupware server", почему тогда вместе 
>>Courier IMAP чаще используют Postfix и Qmail, чем его?
> 
> 
> Пакеты maildrop и courier-imap являются частями проекта Courier-MTA.
> Подробности см. на http://www.courier-mta.org.

Я именно там это и вычитал. Но не совсем понял: вроде бы есть в природе 
"родной" Courier MTA (аналог Postfix),
но его почему-то особо не используют, а прикручивают "чужие" MTA. Почему?

-- 
С уважением, Прокопьев Евгений

[-- Attachment #2: imapd --]
[-- Type: text/plain, Size: 10257 bytes --]

##VERSION: $Id: imapd.dist.in,v 1.14 2002/06/12 13:55:10 mrsam Exp $
#
# imapd created from imapd.dist by sysconftool
#
# Do not alter lines that begin with ##, they are used when upgrading
# this configuration.
#
#  Copyright 1998 - 2002 Double Precision, Inc.  See COPYING for
#  distribution information.
#
#  This configuration file sets various options for the Courier-IMAP server
#  when used with the couriertcpd server.
#  A lot of the stuff here is documented in the manual page for couriertcpd.
#
#  NOTE - do not use \ to split long variable contents on multiple lines.
#  This will break the default imapd.rc script, which parses this file.
#
##NAME: ADDRESS:0
#
#  Address to listen on, can be set to a single IP address.
#
# ADDRESS=127.0.0.1

ADDRESS=127.0.0.1

##NAME: PORT:1
#
#  Port numbers that connections are accepted on.  The default is 143,
#  the standard IMAP port.
#
#  Multiple port numbers can be separated by commas.  When multiple port
#  numbers are used it is possible to select a specific IP address for a
#  given port as "ip.port".  For example, "127.0.0.1.900,192.68.0.1.900"
#  accepts connections on port 900 on IP addresses 127.0.0.1 and 192.68.0.1
#  The previous ADDRESS setting is a default for ports that do not have
#  a specified IP address.

PORT=143

##NAME: AUTHSERVICE:0
#
#  It's possible to authenticate using a different 'service' parameter
#  depending on the connection's port.  This only works with authentication
#  modules that use the 'service' parameter, such as PAM.  Example:
#
AUTHSERVICE143=imap
AUTHSERVICE993=imap

##NAME: MAXDAEMONS:0
#
#  Maximum number of IMAP servers started
#

MAXDAEMONS=200

##NAME: MAXPERIP:0
#
#  Maximum number of connections to accept from the same IP address

MAXPERIP=25

##NAME: PIDFILE:0
#
#  File where couriertcpd will save its process ID
#

PIDFILE=/var/run/imapd.pid

##NAME: TCPDOPTS:0
#
# Miscellaneous couriertcpd options that shouldn't be changed.
#

TCPDOPTS="-nodnslookup -noidentlookup"

# rpc.dracd IP-address. drac-1.11 package is required
#
# DRACADDRESS=127.0.0.1


##NAME: AUTHMODULES:0
#
# Authentication modules.  Here's the default list:
#
#    authdaemon
#
# The default is set during the initial configuration.
#

AUTHMODULES="authdaemon"

##NAME: AUTHMODULES_ORIG:0
#
# For use by webadmin

AUTHMODULES_ORIG="authdaemon"

##NAME: IMAP_CAPABILITY:0
#
# IMAP_CAPABILITY specifies what most of the response should be to the
# CAPABILITY command.
#
# If you have properly configured Courier to use CRAM-MD5 or CRAM-SHA1
# authentication (see INSTALL), set IMAP_CAPABILITY as follows:
#
# IMAP_CAPABILITY="IMAP4rev1 CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1"
#
# Otherwise, leave it set to the default value.  The IDLE keyword can also
# be added, in experimental mode.
#

IMAP_CAPABILITY="IMAP4rev1 CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA"

##NAME: IMAP_CAPABILITY_ORIG:0
#
# For use by webadmin

IMAP_CAPABILITY_ORIG="IMAP4rev1 CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT AUTH=CRAM-MD5 AUTH=CRAM-SHA1 IDLE"

##NAME: IMAP_IDLE_TIMEOUT:0
#
# If you want to try out the IDLE extension, this setting controls how often
# the server polls for changes to the folder, in IDLE mode (in seconds).

IMAP_IDLE_TIMEOUT=60

##NAME: IMAP_CAPABILITY_TLS:0
#
# The following setting will advertise SASL PLAIN authentication after
# STARTTLS is established.  If you want to allow SASL PLAIN authentication
# with or without TLS then just comment this out, and add AUTH=PLAIN to
# IMAP_CAPABILITY

IMAP_CAPABILITY_TLS="$IMAP_CAPABILITY AUTH=PLAIN"

##NAME: IMAP_TLS_ORIG:0
#
# For use by webadmin

IMAP_CAPABILITY_TLS_ORIG="$IMAP_CAPABILITY_ORIG AUTH=PLAIN"

##NAME: IMAP_DISABLETHREADSORT:0
#
# Set IMAP_DISABLETHREADSORT to disable the THREAD and SORT commands -
# server side sorting and threading.
#
# Those capabilities will still be advertised, but the server will reject
# them.  Set this option if you want to disable all the extra load from
# server-side threading and sorting.  Not advertising those capabilities
# will simply result in the clients reading the entire folder, and sorting
# it on the client side.  That will still put some load on the server.
# advertising these capabilities, but rejecting the commands, will stop this
# silliness.
#

IMAP_DISABLETHREADSORT=0

##NAME: IMAP_CHECK_ALL_FOLDERS:0
#
# Set IMAP_CHECK_ALL_FOLDERS to 1 if you want the server to check for new
# mail in every folder.  Not all IMAP clients use the IMAP's new mail
# indicator, but some do.  Normally new mail is checked only in INBOX,
# because it is a comparatively time consuming operation, and it would be
# a complete waste of time unless mail filters are used to deliver
# mail directly to folders.
#
# When IMAP clients are used which support new mail indication, and when
# mail filters are used to sort incoming mail into folders, setting
# IMAP_CHECK_ALL_FOLDERS to 1 will allow IMAP clients to announce new
# mail in folders.  Note that this will result in slightly more load on the
# server.
#

IMAP_CHECK_ALL_FOLDERS=0

##NAME: IMAP_OBSOLETE_CLIENT:0
#
# Set IMAP_OBSOLETE_CLIENT if your IMAP client expects \\NoInferiors to mean
# what \\HasNoChildren really means.

IMAP_OBSOLETE_CLIENT=0

##NAME: IMAP_ULIMITD:0
#
# IMAP_ULIMITD sets the maximum size of the data segment of the server
# process.  The value of IMAP_ULIMITD is simply passed to the "ulimit -d"
# command.  The argument to ulimit -d sets the upper limit on the size
# of the data segment of the server process, in kilobytes.  The default
# value of 65536 sets a very generous limit of 64 megabytes, which should
# be more than plenty for anyone.
#
# This feature is used as an additional safety check that should stop
# any potential denial-of-service attacks that exploit any kind of
# a memory leak to exhaust all the available memory on the server.
# It is theoretically possible that obscenely huge folders will also
# result in the server running out of memory when doing server-side
# sorting (by my calculations you have to have at least 100,000 messages
# in a single folder, for that to happen).

IMAP_ULIMITD=65536

##NAME: IMAP_USELOCKS:0
#
# Set IMAP_USELOCKS to 1 if you experience weird problems when using IMAP
# clients that open multiple connections to the server.  I would hope that
# most IMAP clients are sane enough not to issue commands to multiple IMAP
# channels which conflict with each other.
#

IMAP_USELOCKS=0

##NAME: IMAP_EMPTYTRASH:0
#
# The following setting is optional, and causes messages from the given
# folder to be automatically deleted after the given number of days.
# IMAP_EMPTYTRASH is a comma-separated list of folder:days.  The default
# setting, below, purges 7 day old messages from the Trash folder.
# Another useful setting would be:
#
# IMAP_EMPTYTRASH=Trash:7,Sent:30
#
# This would also delete messages from the Sent folder (presumably copies
# of sent mail) after 30 days.  This is a global setting that is applied to
# every mail account, and is probably useful in a controlled, corporate
# environment.
#
# You might want to disable this setting in certain situations - it results
# in a stat() of every file in each folder, at login and logout.
#

IMAP_EMPTYTRASH=Trash:7

##NAME: IMAP_MOVE_EXPUNGE_TO_TRASH:0
#
# Set IMAP_MOVE_EXPUNGE_TO_TRASH to move expunged messages to Trash.  This
# effectively allows an undo of message deletion by fishing the deleted
# mail from trash.  Trash can be manually expunged as usually, and mail
# will get automatically expunged from Trash according to IMAP_EMPTYTRASH.
#
# NOTE: shared folders are still expunged as usual.  Shared folders are
# not affected.
#

IMAP_MOVE_EXPUNGE_TO_TRASH=0


##NAME: OUTBOX:0
#
# The next set of options deal with the "Outbox" enhancement.
# Uncomment the following setting to create a special folder, named
# INBOX.Outbox
#
# OUTBOX=.Outbox

##NAME: SENDMAIL:0
#
# If OUTBOX is defined, mail can be sent via the IMAP connection by copying
# a message to the INBOX.Outbox folder.  For all practical matters,
# INBOX.Outbox looks and behaves just like any other IMAP folder.  If this
# folder doesn't exist it must be created by the IMAP mail client, just
# like any other IMAP folder.  The kicker: any message copied or moved to
# this folder is will be E-mailed by the Courier-IMAP server, by running
# the SENDMAIL program.  Therefore, messages copied or moved to this
# folder must be well-formed RFC-2822 messages, with the recipient list
# specified in the To:, Cc:, and Bcc: headers.  Courier-IMAP relies on
# SENDMAIL to read the recipient list from these headers (and delete the Bcc:
# header) by running the command "$SENDMAIL -oi -t -f $SENDER", with the
# message piped on standard input.  $SENDER will be the return address
# of the message, which is set by the authentication module.
#
# DO NOT MODIFY SENDMAIL, below, unless you know what you're doing.
#

SENDMAIL=/usr/bin/sendmail

##NAME: HEADERFROM:0
#
# For administrative and oversight purposes, the return address, $SENDER
# will also be saved in the X-IMAP-Sender mail header.  This header gets
# added to the sent E-mail (but it doesn't get saved in the copy of the
# message that's saved in the folder)
#
# WARNING - By enabling OUTBOX above, *every* IMAP mail client will receive
# the magic OUTBOX treatment.  Therefore advance LARTing is in order for
# _all_ of your lusers, until every one of them is aware of this.  Otherwise if
# OUTBOX is left at its default setting - a folder name that might be used
# accidentally - some people may be in for a rude surprise.  You can redefine
# the name of the magic folder by changing OUTBOX, above.  You should do that
# and pick a less-obvious name.  Perhaps brand it with your organizational
# name ( OUTBOX=.WidgetsAndSonsOutbox )

HEADERFROM=X-IMAP-Sender

##NAME: IMAPDSTART:0
#
# IMAPDSTART is not used directly.  Rather, this is a convenient flag to
# be read by your system startup script in /etc/rc.d/init.d/courier-imapd.
#
# The default setting is going to be NO, until Courier is shipped by default
# with enough platforms so that people get annoyed with having to flip it to
# YES every time.

IMAPDSTART=YES

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

* Re: [Comm] Courier IMAP
  2002-10-28 13:45   ` Прокопьев Евгений
@ 2002-10-28 14:34     ` Dmitry Lebkov
  0 siblings, 0 replies; 4+ messages in thread
From: Dmitry Lebkov @ 2002-10-28 14:34 UTC (permalink / raw)
  To: community

On Mon, 28 Oct 2002 16:45:23 +0300
Прокопьев Евгений <john@rmts.donpac.ru> wrote:

> Dmitry Lebkov wrote:
> > Доброго времени суток,
> > 
> > О софте из Сизифа - пожалуйста в sisyphus@altlinux.ru!
> > 

[skip]

> > 
> > telnet 127.0.0.1 143 что сообщает?
> 
> [john@john john]$ telnet 127.0.0.1 143
> Trying 127.0.0.1...
> Connected to 127.0.0.1.
> Escape character is '^]'.
> * OK Courier-IMAP ready. Copyright 1998-2002 Double Precision, Inc.  See 
> COPYING for distribution information.
> 

См. authdaemon.conf на предмет authmodulelist=. Для проверки имени/пароля
должен быть запущен соответствующий процесс authdaemond.xxx.

> 
> >>Дополнительные вопросы по теме:
> >>
> >>1. С Courier IMAP часто используют maildrop. Обязательно ли это и в чем 
> >>преимущество перед mailbox_command = /usr/sbin/sendmail
> > 
> > 
> > Courier-IMAP используют с maildrop, т.к. оба поддерживают один формат
> > почтовых ящиков - Maildir. Кроме как с этим форматом, Courier-IMAP ни
> > с каким другим не работает.
> 
> Тогда мантейнеру: почему maildrop нет в зависимостях?

От мэинтэйнера: а почему postfix/sendmail/procmail нет в зависимостях
пакетов popa3d или uw-imap? :)

> >>2. Существует еще Courier "mail/groupware server", почему тогда вместе 
> >>Courier IMAP чаще используют Postfix и Qmail, чем его?
> > 
> > 
> > Пакеты maildrop и courier-imap являются частями проекта Courier-MTA.
> > Подробности см. на http://www.courier-mta.org.
> 
> Я именно там это и вычитал. Но не совсем понял: вроде бы есть в природе 
> "родной" Courier MTA (аналог Postfix),
> но его почему-то особо не используют, а прикручивают "чужие" MTA. Почему?

Мне удобнее использовать sendmail. Кому-то еще - postfix, qmail или любой
другой MTA (mail transfer agent), позволяющий подключать внешние MDA (mail
delivery agent). Сила привычки. Sendmail, как MTA, вполне подходит для моих
задач. maildrop подходит как MDA, courier-imap - как демоны IMAP4/POP3.
Зачем _мне_ собирать и поддерживать Courier-MTA если я его не использую (т.е
в случае возникновения каких-то вопросов даже не буду знать о чем речь идет)
и если есть возможность взять из проекта только то что нужно?

WRB, Dmitry Lebkov


PS. На все дальнейшие вопросы о настройке/заточке maildrop и courier-imap
    отвечу только в рассылке sisyphus@altlinux.ru.


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

end of thread, other threads:[~2002-10-28 14:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-28 12:14 [Comm] Courier IMAP Прокопьев Евгений
2002-10-28 12:52 ` Dmitry Lebkov
2002-10-28 13:45   ` Прокопьев Евгений
2002-10-28 14:34     ` Dmitry Lebkov

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