* [sisyphus] Что такое maildrop-mysql ?
@ 2007-04-19 17:30 Денис Ягофаров
2007-04-19 17:56 ` Ivan Adzhubey
2007-04-19 22:30 ` Dmitry Lebkov
0 siblings, 2 replies; 7+ messages in thread
From: Денис Ягофаров @ 2007-04-19 17:30 UTC (permalink / raw)
To: ALT Linux Sisyphus discussion list
Доброго времени суток!
Решил поднять почтовый сервер на основе Postfix.
Нагуглил мануал
(http://www.freesource.info/wiki/AltLinux/Dokumentacija/PostfixMySQLCourierIMAP?v=4e3)
Дошел до шага, где проверяют отправку почты.
Ранее выполнил
"вносим в /etc/postfix/master.cf следующие строки:
maildrop unix – n n – – pipe
flags=Ru user=vmail argv=/usr/bin/maildrop-mysql -d ${recipient}"
Это всё хорошо, но теперь в логах говорят:
Apr 19 08:26:16 mail pipe[18454]: fatal: pipe_command: execvp /usr/bin/maildrop-mysql: No such file or directory
Apr 19 08:26:16 mail pipe[18456]: fatal: pipe_command: execvp /usr/bin/maildrop-mysql: No such file or directory
Apr 19 08:26:16 mail postfix/pipe[18452]: A2C368F0D4: to=<di@itc.lan>, relay=maildrop, delay=1495,
delays=1495/0.04/0/0.05, dsn=4.3.0, status=deferred (temporary failure.
Command output: pipe: fatal: pipe_command: execvp /usr/bin/maildrop-mysql:
No such file or directory )
Apr 19 08:26:16 mail postfix/pipe[18453]: AB3E28F0AC: to=<di@itc.lan>, relay=maildrop, delay=1255,
delays=1255/0.02/0/0.07, dsn=4.3.0, status=deferred (temporary failure.
Command output: pipe: fatal: pipe_command: execvp /usr/bin/maildrop-mysql:
No such file or directory )
Т.к. сизиф у меня последний, хотелось бы знать - куда подевался
/usr/bin/maildrop-mysql
и чем его заменить?
П.С. искал сабж вот с такими результатами:
/etc/courier-imap/maildrop-mysql.conf
(что вполне соответствует выше описанному мануалу)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [sisyphus] Что такое maildrop-mysql ?
2007-04-19 17:30 [sisyphus] Что такое maildrop-mysql ? Денис Ягофаров
@ 2007-04-19 17:56 ` Ivan Adzhubey
2007-04-19 18:15 ` Денис Ягофаров
2007-04-19 22:30 ` Dmitry Lebkov
1 sibling, 1 reply; 7+ messages in thread
From: Ivan Adzhubey @ 2007-04-19 17:56 UTC (permalink / raw)
To: ALT Linux Sisyphus discussion list
On Thursday 19 April 2007 01:30:36 pm Денис Ягофаров wrote:
> Доброго времени суток!
>
> Решил поднять почтовый сервер на основе Postfix.
> Нагуглил мануал
> (http://www.freesource.info/wiki/AltLinux/Dokumentacija/PostfixMySQLCourier
>IMAP?v=4e3) Дошел до шага, где проверяют отправку почты.
>
> Ранее выполнил
> "вносим в /etc/postfix/master.cf следующие строки:
> maildrop unix – n n – – pipe
> flags=Ru user=vmail argv=/usr/bin/maildrop-mysql -d ${recipient}"
>
> Это всё хорошо, но теперь в логах говорят:
>
> Apr 19 08:26:16 mail pipe[18454]: fatal: pipe_command: execvp
> /usr/bin/maildrop-mysql: No such file or directory Apr 19 08:26:16 mail
> pipe[18456]: fatal: pipe_command: execvp /usr/bin/maildrop-mysql: No such
> file or directory Apr 19 08:26:16 mail postfix/pipe[18452]: A2C368F0D4:
> to=<di@itc.lan>, relay=maildrop, delay=1495, delays=1495/0.04/0/0.05,
> dsn=4.3.0, status=deferred (temporary failure. Command output: pipe: fatal:
> pipe_command: execvp /usr/bin/maildrop-mysql: No such file or directory )
> Apr 19 08:26:16 mail postfix/pipe[18453]: AB3E28F0AC: to=<di@itc.lan>,
> relay=maildrop, delay=1255, delays=1255/0.02/0/0.07, dsn=4.3.0,
> status=deferred (temporary failure. Command output: pipe: fatal:
> pipe_command: execvp /usr/bin/maildrop-mysql: No such file or directory )
>
> Т.к. сизиф у меня последний, хотелось бы знать - куда подевался
> /usr/bin/maildrop-mysql
> и чем его заменить?
>
> П.С. искал сабж вот с такими результатами:
>
> /etc/courier-imap/maildrop-mysql.conf
> (что вполне соответствует выше описанному мануалу)
Поставить postfix-mysql ?
--Иван
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [sisyphus] Что такое maildrop-mysql ?
2007-04-19 17:56 ` Ivan Adzhubey
@ 2007-04-19 18:15 ` Денис Ягофаров
0 siblings, 0 replies; 7+ messages in thread
From: Денис Ягофаров @ 2007-04-19 18:15 UTC (permalink / raw)
To: ALT Linux Sisyphus discussion list
Ivan Adzhubey пишет:
> On Thursday 19 April 2007 01:30:36 pm Денис Ягофаров wrote:
>
>> Доброго времени суток!
>> [...]
>>
>> Т.к. сизиф у меня последний, хотелось бы знать - куда подевался
>> /usr/bin/maildrop-mysql
>> и чем его заменить?
>>
>> П.С. искал сабж вот с такими результатами:
>>
>> /etc/courier-imap/maildrop-mysql.conf
>> (что вполне соответствует выше описанному мануалу)
>>
>
> Поставить postfix-mysql ?
>
> --Иван
>
неа =( .
там такого нету, и apt утверждает, что postfix-mysql у меня
самый-самый =/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [sisyphus] Что такое maildrop-mysql ?
2007-04-19 17:30 [sisyphus] Что такое maildrop-mysql ? Денис Ягофаров
2007-04-19 17:56 ` Ivan Adzhubey
@ 2007-04-19 22:30 ` Dmitry Lebkov
2007-04-20 8:18 ` Денис Ягофаров
1 sibling, 1 reply; 7+ messages in thread
From: Dmitry Lebkov @ 2007-04-19 22:30 UTC (permalink / raw)
To: ALT Linux Sisyphus discussion list
Денис Ягофаров wrote:
> Доброго времени суток!
>
> Решил поднять почтовый сервер на основе Postfix.
> Нагуглил мануал
> (http://www.freesource.info/wiki/AltLinux/Dokumentacija/PostfixMySQLCourierIMAP?v=4e3)
С тех пор, как писался тот мануал, в courier-imap произошло очмного
изменений. Основной момент - вся работа с данными об учетных записях
ведется через libcourier-authlib. Т.е. сейчас нет maildrop-(mysql|pgsql|
ldap) - весь этот функционал вынесен в отдельную библиотеку. См. пакет
courier-authlib.
--
WBR, Dmitry Lebkov
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [sisyphus] Что такое maildrop-mysql ?
2007-04-19 22:30 ` Dmitry Lebkov
@ 2007-04-20 8:18 ` Денис Ягофаров
2007-04-20 9:30 ` Dmitry Lebkov
0 siblings, 1 reply; 7+ messages in thread
From: Денис Ягофаров @ 2007-04-20 8:18 UTC (permalink / raw)
To: ALT Linux Sisyphus discussion list
[-- Attachment #1: Type: text/plain, Size: 811 bytes --]
Dmitry Lebkov пишет:
> Денис Ягофаров wrote:
>
>> Доброго времени суток!
>>
>> Решил поднять почтовый сервер на основе Postfix.
>> Нагуглил мануал
>> (http://www.freesource.info/wiki/AltLinux/Dokumentacija/PostfixMySQLCourierIMAP?v=4e3)
>>
>
> С тех пор, как писался тот мануал, в courier-imap произошло очмного
> изменений. Основной момент - вся работа с данными об учетных записях
> ведется через libcourier-authlib. Т.е. сейчас нет maildrop-(mysql|pgsql|
> ldap) - весь этот функционал вынесен в отдельную библиотеку. См. пакет
> courier-authlib.
>
>
Отискал на Сизифе пакет courier-authlib, там же нашел
courier-authlib-mysql-0.59.1-alt1.0.i586.rpm.
В его состав входит файл конфига (он во вложении - измененный мною).
Куда копать дальше,
пока maildrop-mysql (а вернее альтернативы ему) нету.
[-- Attachment #2: authdaemon-mysql[1].conf --]
[-- Type: text/plain, Size: 8460 bytes --]
##VERSION: $Id: authmysqlrc,v 1.18 2004/11/14 02:58:16 mrsam Exp $
#
# Copyright 2000-2004 Double Precision, Inc. See COPYING for
# distribution information.
#
# Do not alter lines that begin with ##, they are used when upgrading
# this configuration.
#
# authmysqlrc created from authmysqlrc.dist by sysconftool
#
# DO NOT INSTALL THIS FILE with world read permissions. This file
# might contain the MySQL admin password!
#
# Each line in this file must follow the following format:
#
# field[spaces|tabs]value
#
# That is, the name of the field, followed by spaces or tabs, followed by
# field value. Trailing spaces are prohibited.
##NAME: LOCATION:0
#
# The server name, userid, and password used to log in.
###MYSQL_SERVER mysql.example.com
MYSQL_SERVER localhost
###MYSQL_USERNAME admin
MYSQL_USERNAME vmailuser
###MYSQL_PASSWORD admin
MYSQL_PASSWORD qwe123
##NAME: MYSQL_SOCKET:0
#
# MYSQL_SOCKET can be used with MySQL version 3.22 or later, it specifies the
# filesystem pipe used for the connection
#
# MYSQL_SOCKET /var/mysql/mysql.sock
MYSQL_SOCKET /var/lib/mysql/mysql.sock
##NAME: MYSQL_PORT:0
#
# MYSQL_PORT can be used with MySQL version 3.22 or later to specify a port to
# connect to.
###MYSQL_PORT 0
##NAME: MYSQL_OPT:0
#
# Leave MYSQL_OPT as 0, unless you know what you're doing.
MYSQL_OPT 0
##NAME: MYSQL_DATABASE:0
#
# The name of the MySQL database we will open:
MYSQL_DATABASE mail
##NAME: MYSQL_USER_TABLE:0
#
# The name of the table containing your user data. See README.authmysqlrc
# for the required fields in this table.
MYSQL_USER_TABLE postfix_users
##NAME: MYSQL_CRYPT_PWFIELD:0
#
# Either MYSQL_CRYPT_PWFIELD or MYSQL_CLEAR_PWFIELD must be defined. Both
# are OK too. crypted passwords go into MYSQL_CRYPT_PWFIELD, cleartext
# passwords go into MYSQL_CLEAR_PWFIELD. Cleartext passwords allow
# CRAM-MD5 authentication to be implemented.
###MYSQL_CRYPT_PWFIELD crypt
##NAME: MYSQL_CLEAR_PWFIELD:0
#
#
# MYSQL_CLEAR_PWFIELD clear
MYSQL_CLEAR_PWFIELD clear
##NAME: MYSQL_DEFAULT_DOMAIN:0
#
# If DEFAULT_DOMAIN is defined, and someone tries to log in as 'user',
# we will look up 'user@DEFAULT_DOMAIN' instead.
#
#
# DEFAULT_DOMAIN example.com
DEFAULT_DOMAIN itc.lan
##NAME: MYSQL_UID_FIELD:0
#
# Other fields in the mysql table:
#
# MYSQL_UID_FIELD - contains the numerical userid of the account
#
MYSQL_UID_FIELD uid
##NAME: MYSQL_GID_FIELD:0
#
# Numerical groupid of the account
MYSQL_GID_FIELD gid
##NAME: MYSQL_LOGIN_FIELD:0
#
# The login id, default is id. Basically the query is:
#
# SELECT MYSQL_UID_FIELD, MYSQL_GID_FIELD, ... WHERE id='loginid'
#
MYSQL_LOGIN_FIELD id
##NAME: MYSQL_HOME_FIELD:0
#
MYSQL_HOME_FIELD homedir
##NAME: MYSQL_NAME_FIELD:0
#
# The user's name (optional)
MYSQL_NAME_FIELD name
##NAME: MYSQL_MAILDIR_FIELD:0
#
# This is an optional field, and can be used to specify an arbitrary
# location of the maildir for the account, which normally defaults to
# $HOME/Maildir (where $HOME is read from MYSQL_HOME_FIELD).
#
# You still need to provide a MYSQL_HOME_FIELD, even if you uncomment this
# out.
#
# MYSQL_MAILDIR_FIELD maildir
MYSQL_MAILDIR_FIELD maildir
##NAME: MYSQL_DEFAULTDELIVERY:0
#
# Courier mail server only: optional field specifies custom mail delivery
# instructions for this account (if defined) -- essentially overrides
# DEFAULTDELIVERY from ${sysconfdir}/courierd
#
# MYSQL_DEFAULTDELIVERY defaultdelivery
##NAME: MYSQL_QUOTA_FIELD:0
#
# Define MYSQL_QUOTA_FIELD to be the name of the field that can optionally
# specify a maildir quota. See README.maildirquota for more information
#
# MYSQL_QUOTA_FIELD quota
MYSQL_QUOTA_FIELD quota
##NAME: MYSQL_AUXOPTIONS:0
#
# Auxiliary options. The MYSQL_AUXOPTIONS field should be a char field that
# contains a single string consisting of comma-separated "ATTRIBUTE=NAME"
# pairs. These names are additional attributes that define various per-account
# "options", as given in INSTALL's description of the "Account OPTIONS"
# setting.
#
# MYSQL_AUXOPTIONS_FIELD auxoptions
#
# You might want to try something like this, if you'd like to use a bunch
# of individual fields, instead of a single text blob:
#
# MYSQL_AUXOPTIONS_FIELD CONCAT("disableimap=",disableimap,",disablepop3=",disablepop3,",disablewebmail=",disablewebmail,",sharedgroup=",sharedgroup)
#
# This will let you define fields called "disableimap", etc, with the end result
# being something that the OPTIONS parser understands.
##NAME: MYSQL_WHERE_CLAUSE:0
#
# This is optional, MYSQL_WHERE_CLAUSE can be basically set to an arbitrary
# fixed string that is appended to the WHERE clause of our query
#
# MYSQL_WHERE_CLAUSE server='mailhost.example.com'
##NAME: MYSQL_SELECT_CLAUSE:0
#
# (EXPERIMENTAL)
# This is optional, MYSQL_SELECT_CLAUSE can be set when you have a database,
# which is structuraly different from proposed. The fixed string will
# be used to do a SELECT operation on database, which should return fields
# in order specified bellow:
#
# username, cryptpw, clearpw, uid, gid, home, maildir, quota, fullname, options
#
# The username field should include the domain (see example below).
#
# Enabling this option causes ignorance of any other field-related
# options, excluding default domain.
#
# There are two variables, which you can use. Substitution will be made
# for them, so you can put entered username (local part) and domain name
# in the right place of your query. These variables are:
# $(local_part), $(domain), $(service)
#
# If a $(domain) is empty (not given by the remote user) the default domain
# name is used in its place.
#
# $(service) will expand out to the service being authenticated: imap, imaps,
# pop3 or pop3s. Courier mail server only: service will also expand out to
# "courier", when searching for local mail account's location. In this case,
# if the "maildir" field is not empty it will be used in place of
# DEFAULTDELIVERY. Courier mail server will also use esmtp when doing
# authenticated ESMTP.
#
# This example is a little bit modified adaptation of vmail-sql
# database scheme:
#
# MYSQL_SELECT_CLAUSE SELECT CONCAT(popbox.local_part, '@', popbox.domain_name), \
# CONCAT('{MD5}', popbox.password_hash), \
# popbox.clearpw, \
# domain.uid, \
# domain.gid, \
# CONCAT(domain.path, '/', popbox.mbox_name), \
# '', \
# domain.quota, \
# '', \
# CONCAT("disableimap=",disableimap,",disablepop3=", \
# disablepop3,",disablewebmail=",disablewebmail, \
# ",sharedgroup=",sharedgroup) \
# FROM popbox, domain \
# WHERE popbox.local_part = '$(local_part)' \
# AND popbox.domain_name = '$(domain)' \
# AND popbox.domain_name = domain.domain_name
##NAME: MYSQL_ENUMERATE_CLAUSE:1
#
# {EXPERIMENTAL}
# Optional custom SQL query used to enumerate accounts for authenumerate,
# in order to compile a list of accounts for shared folders. The query
# should return the following fields: name, uid, gid, homedir, maildir, options
#
# Example:
# MYSQL_ENUMERATE_CLAUSE SELECT CONCAT(popbox.local_part, '@', popbox.domain_name), \
# domain.uid, \
# domain.gid, \
# CONCAT(domain.path, '/', popbox.mbox_name), \
# '', \
# CONCAT('sharedgroup=', sharedgroup) \
# FROM popbox, domain \
# WHERE popbox.local_part = '$(local_part)' \
# AND popbox.domain_name = '$(domain)' \
# AND popbox.domain_name = domain.domain_name
##NAME: MYSQL_CHPASS_CLAUSE:0
#
# (EXPERIMENTAL)
# This is optional, MYSQL_CHPASS_CLAUSE can be set when you have a database,
# which is structuraly different from proposed. The fixed string will
# be used to do an UPDATE operation on database. In other words, it is
# used, when changing password.
#
# There are four variables, which you can use. Substitution will be made
# for them, so you can put entered username (local part) and domain name
# in the right place of your query. There variables are:
# $(local_part) , $(domain) , $(newpass) , $(newpass_crypt)
#
# If a $(domain) is empty (not given by the remote user) the default domain
# name is used in its place.
# $(newpass) contains plain password
# $(newpass_crypt) contains its crypted form
#
# MYSQL_CHPASS_CLAUSE UPDATE popbox \
# SET clearpw='$(newpass)', \
# password_hash='$(newpass_crypt)' \
# WHERE local_part='$(local_part)' \
# AND domain_name='$(domain)'
#
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [sisyphus] Что такое maildrop-mysql ?
2007-04-20 8:18 ` Денис Ягофаров
@ 2007-04-20 9:30 ` Dmitry Lebkov
2007-04-20 15:18 ` Денис Ягофаров
0 siblings, 1 reply; 7+ messages in thread
From: Dmitry Lebkov @ 2007-04-20 9:30 UTC (permalink / raw)
To: ALT Linux Sisyphus discussion list
Денис Ягофаров wrote:
> Dmitry Lebkov пишет:
>> Денис Ягофаров wrote:
>>
>>> Доброго времени суток!
>>>
>>> Решил поднять почтовый сервер на основе Postfix.
>>> Нагуглил мануал
>>> (http://www.freesource.info/wiki/AltLinux/Dokumentacija/PostfixMySQLCourierIMAP?v=4e3)
>>>
>>>
>>
>> С тех пор, как писался тот мануал, в courier-imap произошло очмного
>> изменений. Основной момент - вся работа с данными об учетных записях
>> ведется через libcourier-authlib. Т.е. сейчас нет maildrop-(mysql|pgsql|
>> ldap) - весь этот функционал вынесен в отдельную библиотеку. См. пакет
>> courier-authlib.
>>
>>
> Отискал на Сизифе пакет courier-authlib, там же нашел
> courier-authlib-mysql-0.59.1-alt1.0.i586.rpm.
> В его состав входит файл конфига (он во вложении - измененный мною).
> Куда копать дальше,
> пока maildrop-mysql (а вернее альтернативы ему) нету.
apt-cache search maildrop прояснит ситуацию ... ;)
--
WBR, Dmitry Lebkov
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [sisyphus] Что такое maildrop-mysql ?
2007-04-20 9:30 ` Dmitry Lebkov
@ 2007-04-20 15:18 ` Денис Ягофаров
0 siblings, 0 replies; 7+ messages in thread
From: Денис Ягофаров @ 2007-04-20 15:18 UTC (permalink / raw)
To: ALT Linux Sisyphus discussion list
[-- Attachment #1: Type: text/plain, Size: 1783 bytes --]
Dmitry Lebkov пишет:
> Денис Ягофаров wrote:
>
>> Dmitry Lebkov пишет:
>>
>>> Денис Ягофаров wrote:
>>>
>>>
>>>> Доброго времени суток!
>>>>
>>>> Решил поднять почтовый сервер на основе Postfix.
>>>> Нагуглил мануал
>>>> (http://www.freesource.info/wiki/AltLinux/Dokumentacija/PostfixMySQLCourierIMAP?v=4e3)
>>>>
>>>>
>>>>
>>> С тех пор, как писался тот мануал, в courier-imap произошло очмного
>>> изменений. Основной момент - вся работа с данными об учетных записях
>>> ведется через libcourier-authlib. Т.е. сейчас нет maildrop-(mysql|pgsql|
>>> ldap) - весь этот функционал вынесен в отдельную библиотеку. См. пакет
>>> courier-authlib.
>>>
>>>
>>>
>> Отискал на Сизифе пакет courier-authlib, там же нашел
>> courier-authlib-mysql-0.59.1-alt1.0.i586.rpm.
>> В его состав входит файл конфига (он во вложении - измененный мною).
>> Куда копать дальше,
>> пока maildrop-mysql (а вернее альтернативы ему) нету.
>>
>
> apt-cache search maildrop прояснит ситуацию ... ;)
>
>
есть просто maildrop.
да... ещё такая проблема...
postfix ругается на опции в main.cf (во вложении).
Может, он чего-то не подхватіват....
+ в выводе maildrop -v нету упомянания про MySQL, есть только про курьер.
[-- Attachment #2: main.cf[1].errs --]
[-- Type: text/plain, Size: 385 bytes --]
# Global Postfix configuration file. This file lists only a small subset
# of all parameters. For the syntax, and for a complete parameter list,
# see the postconf(5) manual page. For a commented and more complete
# version of this file see /etc/postfix/main.cf.dist
#smtpd_sasl2_auth_enable = yes
#maildrop_destination_recipient_limit = 1
#maildrop_destination_concurrency_limit=1
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-04-20 15:18 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-19 17:30 [sisyphus] Что такое maildrop-mysql ? Денис Ягофаров
2007-04-19 17:56 ` Ivan Adzhubey
2007-04-19 18:15 ` Денис Ягофаров
2007-04-19 22:30 ` Dmitry Lebkov
2007-04-20 8:18 ` Денис Ягофаров
2007-04-20 9:30 ` Dmitry Lebkov
2007-04-20 15:18 ` Денис Ягофаров
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