ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Artem Pastukhov <past@yam.ru>
To: community@altlinux.ru
Subject: Re: HA: [Comm] ALM24: postfix+maildrop+courier(авторизация в courierиз базы)
Date: Tue, 9 Nov 2004 15:35:46 +0300
Message-ID: <200411091535.46962.past@yam.ru> (raw)
In-Reply-To: <E1B7C89B8DCB084C809A22D7FEB90B38012A6815@frodo.avalon.ru>

ага!
как раз через 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

      reply	other threads:[~2004-11-09 12:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-09 10:23 Maksim N. Reziapkin
2004-11-09 12:35 ` Artem Pastukhov [this message]

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=200411091535.46962.past@yam.ru \
    --to=past@yam.ru \
    --cc=community@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 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