From: Marcin Niskiewicz <mniskiewicz@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] problem with mail server
Date: Wed, 4 Feb 2009 11:28:17 +0100 [thread overview]
Message-ID: <b6373cd60902040228h438755e7oe7b0880f2ca63142@mail.gmail.com> (raw)
In-Reply-To: <4988966A.3030609@badapple.net>
[-- Attachment #1: Type: text/plain, Size: 2160 bytes --]
2009/2/3 kashani <kashani-list@badapple.net>
>
>>
> I think you've got a couple of problems, but none of them individually jump
> at as the cause of your problems. However making these three changes
> together might help.
>
> 1. Turn your max_user_connections in Mysql down to something sane. Default
> is 100 which is fine unless you're also running a web app against the same
> Mysql instance.
>
> 2. Use proxy in your Mysql connections from Postfix.
> Postfix can be configured to open a connection to Mysql and keep it open.
> Basically acts a connection pool and keep Postfix from opening hundreds of
> connections to Mysql on a very busy server. I recommend *always* using the
> proxy: statement anytime you're connecting to Mysql from Postfix. Your new
> transport_map statement will look like this.
>
> transport_maps = proxy:mysql:/etc/mail/sql/mysql-transport.cf
>
> Generally you shouldn't be running into connection issues because you're
> hitting Mysql on localhost which means it'll default to a socket connection.
> It's possible that opening a new session is taking to too long occasionally
> and using proxy should alleviate that.
>
> 3. You're using Postfix 2.1 or earlier query syntax.
> Hell it might even be Postfix 1.x syntax. This is the new syntax for
> Postfix 2.2 or better. This really isn't a problem, but the new syntax is
> far more powerful and suspect bugs that creep into the parser around old
> syntax aren't noticed or getting fixed.
>
> user = postfix
> password = password
> hosts = localhost
> dbname = maildb
> query = SELECT destination FROM domain WHERE domain='%s'
>
> I'm not sure what how-to you've been using, but I'd look at a few others to
> see some of the other options available. The one you're using seems to be
> pretty far out of date. While not wrong in any way it isn't taking full
> advantage of the last seven years of updates in Postfix.
>
> kashani
>
> thank You for Your response
I switch all of mysql connections to proxy and I'll be watching if it helps.
You're right - syntax of my configs were ancient - so I set them right.
thank You again
I hope it's solutions to my problems
regards
nichu
[-- Attachment #2: Type: text/html, Size: 2825 bytes --]
prev parent reply other threads:[~2009-02-04 10:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-03 13:24 [gentoo-user] problem with mail server Marcin Niśkiewicz
2009-02-03 19:09 ` kashani
2009-02-04 10:28 ` Marcin Niskiewicz [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=b6373cd60902040228h438755e7oe7b0880f2ca63142@mail.gmail.com \
--to=mniskiewicz@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox