Hi,
Here's an updated way to do it. As it turns out, postfix doesn't appear
to clear out /var/spool/postfix, so simply checking that var/run/mysqld
exists is a bad way to test whether or not to bind mount the directory.
Instead, I'm using:
postconf -h | grep -q 'mysql:' && [ -f
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
LaMont Jones wrote:
> On Sat, Nov 25, 2006 at 06:22:39PM -0500, Andres Salomon wrote:
>> -BEGIN PGP SIGNED MESSAGE-
>> +# if postfix-mysql is installed, attempt to ensure mysqld's
>> +# socket is available if we can.
>>
On Sat, Nov 25, 2006 at 06:22:39PM -0500, Andres Salomon wrote:
> -BEGIN PGP SIGNED MESSAGE-
> + # if postfix-mysql is installed, attempt to ensure mysqld's
> + # socket is available if we can.
> + [ -f /usr/lib/postfix/dict_mysql.so ] && \
> +
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
Another possible solution is to bind mount the mysql directory if
postfix-mysql is installed. Here's a quick hack that does just that.
You'd probably want a better way of checking whether postfix-mysql is in
use, and perhaps some sanity checking
Another issue with the patch is that it only checks the map type of the
first map in virtual maps, not all of them.
lamont
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Another way is to do this in your fstab:
#
/var/run/mysqld /var/spool/postfix/var/run/mysqld nonebind
00
Even the permissions stay the same.
--
bryan
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTEC
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 07/06/05 00:36:02, Michael Rasmussen wrote:
On Tue, 2005-07-05 at 15:10 -0600, LaMont Jones wrote:
The other solution is to use the proxy: map specifier to de-chroot
the
map lookup, as well as reducing the load on the external source.
I have
On Tue, Jul 05, 2005 at 05:30:56PM +0200, Michael Rasmussen wrote:
> The patch solves the problem when you have enabled virtual delivery in
> postfix thru an external source like a database or ldap and postfix runs
> in chroot mode, which is the default configuration in Sarge. The problem
The othe
Package: postfix
Severity: important
Tags: patch
I have a suggestion to a patch for the rc-init.d script for postfix in
Sarge. Patch at the end of this email.
The patch solves the problem when you have enabled virtual delivery in
postfix thru an external source like a database or ldap and postfix
9 matches
Mail list logo