OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: warning: mysql query failed: MySQL server has gone away

From: J. Bakshi (joydeepinfoservices.in)
Date: Fri Dec 26 2008 - 02:51:01 CST


Magnus Bäck wrote:
> On Friday, December 26, 2008 at 06:09 CET,
> "J. Bakshi" <joydeepinfoservices.in> wrote:
>
>
>>>> Apparently, your Postfix tries to use NIS for alias_maps, and some
>>>> SYSTEM LIBRARY function reports an error. Perhaps you need to
>>>> update the main.cf:alias_maps setting.
>>>>
>> Thanks for your suggestion. I have checked the main.cf and found the
>> "alias_map" is commented.
>>
>> ~~~~~~~~~~~~~~~~`
>> #alias_maps = hash:/etc/aliases
>> ~~~~~~~~~~~~~~~~~~~~~~
>>
>
> Unless you have some other alias_maps line in main.cf, Postfix uses the
> default value (which is OS dependent). Use "postconf alias_maps" to find
> out what value Postfix is actually using. You'll probably see something
> like "nis:mail.aliases" in that string. Remove that part unless you
> really want to use NIS for alias lookups.
>
>

Hello,

thanks for your hint. I have already set as

~~~~~~~~~~~~~`
alias_maps = hash:/etc/aliases
~~~~~~~~~~~~~~~~~~~

and after reloading the postfix till now every thing is seems OK :-)
I had a wrong idea about virtual_alias_maps as a support of alias_maps.
Thanks a lot to correct my wrong idea.

Have a nice time.
Thanks

>> But there is one more configuration for virtual_alias_map like
>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/postfix/mysql-email2email.cf
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>
>> may be it required to uncomment the alias_map option.
>>
>
> virtual_alias_maps is unrelated.
>
>

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~