| Main Archive Page > Month Archives > postfix-users archives |
Le 25/03/2011 09:59, Peter Sørensen a écrit :
> Hi,
>
> I am using Ubuntu 10.04 LTS with postfix 2.7.0
>
> I have suddenly discovered a lot of the following in some of my mailservers ( 5) mail.logs:
>
> Mar 19 02:27:37 mxgw2.sdu.dk postfix/smtpd[5173]: table hash:/etc/postfix/myrelaydomains(0,lock|fold_fix) has changed – restarting
> Mar 19 02:30:14 mxgw2.sdu.dk postfix/smtpd[5934]: table hash:/etc/postfix/myrelaydomains(0,lock|fold_fix) has changed – restarting
> Mar 19 02:30:14 mxgw2.sdu.dk postfix/smtpd[6073]: table hash:/etc/postfix/myrelaydomains(0,lock|fold_fix) has changed – restarting
> Mar 19 02:30:14 mxgw2.sdu.dk postfix/smtpd[6001]: table hash:/etc/postfix/myrelaydomains(0,lock|fold_fix) has changed -- restarting
>
> I haven’t done anything to change the myrelaydomains file. When postfix is restarted with:
>
> Service postfix restart
>
> I have a set of function which among others will create the myrelaydomains from a mysql DB table and then
> postmap hash: myrelaydomains but this should’nt be called on a running system. I can see that the timestamp
> is changed every 5 minutes but I Can’t figure out why these functions are called.
>
does the contents change every 5 minutes? if not, then don't use the
file directly:
dump to a myrelaydomains.last file.
then have a script to compare this to myrelaydomains (the file used by
postfix)
if they differ, then overrite the latter. if they don't, do nothinging
as for dumping mysql, you can also have a date field in your mysql table
to tell if something has changed in the table.
> The functions are defined in /etc/default/postfix which is sourced in the /etc/init.d/postfix.
>
> If I remove the function the problem is solved.
>
> Any hints please
>
>
> Regards
>
>
> Peter Sørensen/Univ.Of.South.Denmark/email: maspsr@sdu.dk