ALT Linux Community general discussions
 help / color / mirror / Atom feed
* RE: HA: [Comm] ALM24: postfix+maildrop+courier(авторизация в courierиз базы)
@ 2004-11-09 10:23 Maksim N. Reziapkin
  2004-11-09 12:35 ` Artem Pastukhov
  0 siblings, 1 reply; 2+ messages in thread
From: Maksim N. Reziapkin @ 2004-11-09 10:23 UTC (permalink / raw)
  To: community

Вам же сказали, что не нашли сокет вашего mysql...

Я сделал через ip:port. Причем где-то пробежало, что 127.0.0.1 также не походит для коннекта (т.е. если локально приконектится, и адрес 127.0.0.1:3306 - то пойдет все равно через сокет - вычичал в рассылке сизифа..)

-----Original Message-----
From: community-bounces@altlinux.ru [mailto:community-bounces@altlinux.ru] On Behalf Of Artem Pastukhov
Sent: Tuesday, November 09, 2004 1:36 PM
To: community@altlinux.ru
Subject: Re: HA: [Comm] ALM24: postfix+maildrop+courier(авторизация в courierиз базы)


В сообщении от Воскресенье 07 Ноябрь 2004 19:27 Grigory Fateyev написал(a):
> Hello, Artem!
>
> 03 Ноября 2004г. в 20:16 You wrote:
> > On Tue, Nov 02, 2004 at 05:10:37PM +0300, Artem Pastukhov wrote:
> > > А какие права/хозяин/группа должны быть на /home/vmail/... ?
> >
> > По умолчанию, кажется, mail:mail. В общем, на этих выходных 
> > постараюсь таки написать хавту, у меня, вроде, всё станцевалось.
>
> Может надо поместить сокет mysql в чрут postfix
> cp /var/run/mysql /var/spool/postfix/var/run/
> ln -s /var/spool/postfix/var/run/mysql /var/run
Вроде как начало потихоньку получатся, 
теперь странный затык на скрещивании sasl и mysql.
Вот кусок трейса:

send(7, "<39>Nov  9 12:29:45 postfix/smtpd[8532]: sql plugin try and connect 
to a host\n", 78, 0) = 78
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
time([1099992585])                      = 1099992585
getpid()                                = 8532
rt_sigaction(SIGPIPE, {0x21af10, [], SA_RESTORER, 0x193958}, {SIG_IGN}, 8) = 0 send(7, "<39>Nov  9 12:29:45 postfix/smtpd[8532]: sql plugin trying to open db 
\'mail\' on host \'localhost:3306\'\n", 102, 0) = 102 rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
socket(PF_FILE, SOCK_STREAM, 0)         = 13
fcntl64(13, F_GETFL)                    = 0x2 (flags O_RDWR)
connect(13, {sa_family=AF_FILE, path="/var/lib/mysql/mysql.sock"}, 110) = -1 
ENOENT (No such file or directory)
shutdown(13, 2 /* send and receive */)  = 0
close(13)                               = 0
time([1099992585])                      = 1099992585
getpid()                                = 8532
rt_sigaction(SIGPIPE, {0x21af10, [], SA_RESTORER, 0x193958}, {SIG_IGN}, 8) = 0 send(7, "<35>Nov  9 12:29:45 postfix/smtpd[8532]: sql plugin could not connect 
to host localhost", 87, 0) = 87
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
time([1099992585])                      = 1099992585
getpid()                                = 8532
rt_sigaction(SIGPIPE, {0x21af10, [], SA_RESTORER, 0x193958}, {SIG_IGN}, 8) = 0 send(7, "<35>Nov  9 12:29:45 postfix/smtpd[8532]: sql plugin couldn\'t connect 
to any host\n", 81, 0) = 81
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
time([1099992585])                      = 1099992585
getpid()                                = 8532
rt_sigaction(SIGPIPE, {0x21af10, [], SA_RESTORER, 0x193958}, {SIG_IGN}, 8) = 0

smtpd.conf:
# smtpd.conf
pwcheck_method: auxprop
auxprop_plugin: sql
mech_list: plain login

sql_engine: mysql
sql_hostnames: localhost:3306

sql_user: user
sql_passwd: pass
sql_database: mail
sql_select: select password from mailbox where username='%u@%r';

Никто с таким не сталкивался?


-- 
С уважением 
Артем Пастухов, past (at) yam.ru
YAM International _______________________________________________
Community mailing list
Community@altlinux.ru https://lists.altlinux.ru/mailman/listinfo/community


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

* Re: HA: [Comm] ALM24: postfix+maildrop+courier(авторизация в courierиз базы)
  2004-11-09 10:23 HA: [Comm] ALM24: postfix+maildrop+courier(авторизация в courierиз базы) Maksim N. Reziapkin
@ 2004-11-09 12:35 ` Artem Pastukhov
  0 siblings, 0 replies; 2+ messages in thread
From: Artem Pastukhov @ 2004-11-09 12:35 UTC (permalink / raw)
  To: community

ага!
как раз через 127.0.0.1:3306 подконнектилось !

В сообщении от Вторник 09 Ноябрь 2004 13:23 Maksim N. Reziapkin написал(a):
> Вам же сказали, что не нашли сокет вашего mysql...
>
> Я сделал через ip:port. Причем где-то пробежало, что 127.0.0.1 также не
> походит для коннекта (т.е. если локально приконектится, и адрес
> 127.0.0.1:3306 - то пойдет все равно через сокет - вычичал в рассылке
> сизифа..)
>
> -----Original Message-----
> From: community-bounces@altlinux.ru [mailto:community-bounces@altlinux.ru]
> On Behalf Of Artem Pastukhov Sent: Tuesday, November 09, 2004 1:36 PM
> To: community@altlinux.ru
> Subject: Re: HA: [Comm] ALM24: postfix+maildrop+courier(авторизация в
> courierиз базы)
>
> В сообщении от Воскресенье 07 Ноябрь 2004 19:27 Grigory Fateyev написал(a):
> > Hello, Artem!
> >
> > 03 Ноября 2004г. в 20:16 You wrote:
> > > On Tue, Nov 02, 2004 at 05:10:37PM +0300, Artem Pastukhov wrote:
> > > > А какие права/хозяин/группа должны быть на /home/vmail/... ?
> > >
> > > По умолчанию, кажется, mail:mail. В общем, на этих выходных
> > > постараюсь таки написать хавту, у меня, вроде, всё станцевалось.
> >
> > Может надо поместить сокет mysql в чрут postfix
> > cp /var/run/mysql /var/spool/postfix/var/run/
> > ln -s /var/spool/postfix/var/run/mysql /var/run
>
> Вроде как начало потихоньку получатся,
> теперь странный затык на скрещивании sasl и mysql.
> Вот кусок трейса:
>
> send(7, "<39>Nov  9 12:29:45 postfix/smtpd[8532]: sql plugin try and
> connect to a host\n", 78, 0) = 78
> rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
> time([1099992585])                      = 1099992585
> getpid()                                = 8532
> rt_sigaction(SIGPIPE, {0x21af10, [], SA_RESTORER, 0x193958}, {SIG_IGN}, 8)
> = 0 send(7, "<39>Nov  9 12:29:45 postfix/smtpd[8532]: sql plugin trying to
> open db \'mail\' on host \'localhost:3306\'\n", 102, 0) = 102
> rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0 socket(PF_FILE, SOCK_STREAM,
> 0)         = 13
> fcntl64(13, F_GETFL)                    = 0x2 (flags O_RDWR)
> connect(13, {sa_family=AF_FILE, path="/var/lib/mysql/mysql.sock"}, 110) =
> -1 ENOENT (No such file or directory)
> shutdown(13, 2 /* send and receive */)  = 0
> close(13)                               = 0
> time([1099992585])                      = 1099992585
> getpid()                                = 8532
> rt_sigaction(SIGPIPE, {0x21af10, [], SA_RESTORER, 0x193958}, {SIG_IGN}, 8)
> = 0 send(7, "<35>Nov  9 12:29:45 postfix/smtpd[8532]: sql plugin could not
> connect to host localhost", 87, 0) = 87
> rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
> time([1099992585])                      = 1099992585
> getpid()                                = 8532
> rt_sigaction(SIGPIPE, {0x21af10, [], SA_RESTORER, 0x193958}, {SIG_IGN}, 8)
> = 0 send(7, "<35>Nov  9 12:29:45 postfix/smtpd[8532]: sql plugin couldn\'t
> connect to any host\n", 81, 0) = 81
> rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
> time([1099992585])                      = 1099992585
> getpid()                                = 8532
> rt_sigaction(SIGPIPE, {0x21af10, [], SA_RESTORER, 0x193958}, {SIG_IGN}, 8)
> = 0
>
> smtpd.conf:
> # smtpd.conf
> pwcheck_method: auxprop
> auxprop_plugin: sql
> mech_list: plain login
>
> sql_engine: mysql
> sql_hostnames: localhost:3306
>
> sql_user: user
> sql_passwd: pass
> sql_database: mail
> sql_select: select password from mailbox where username='%u@%r';
>
> Никто с таким не сталкивался?

-- 
С уважением 
Артем Пастухов, past (at) yam.ru
YAM International

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

end of thread, other threads:[~2004-11-09 12:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-09 10:23 HA: [Comm] ALM24: postfix+maildrop+courier(авторизация в courierиз базы) Maksim N. Reziapkin
2004-11-09 12:35 ` Artem Pastukhov

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