Silent crash on reload with insufficient permissions

Michael Orlitzky michael at orlitzky.com
Mon Jul 23 19:50:00 CEST 2012


(This is really a feature request, not a bug report.)

I messed up our permissions last night, and prevented amavis from
reading /etc/postfix/maps/rfc_addresses.

In the amavis config, I have,

  @virus_lovers_maps = ( read_hash("/etc/postfix/maps/rfc_addresses") );
  @spam_lovers_maps = ( read_hash("/etc/postfix/maps/rfc_addresses") );

to allow postmaster/abuse mail through.

I did a full stop and restart of amavis -- it starts and runs fine --
but at 3am, our sa-update script issued a reload. With the reload,
amavis silently crashes:

  Jul 23 10:24:38 mx1 amavis[1242]: logging initialized, log level 2,
  syslog: amavis.mail

  Jul 23 10:24:38 mx1 amavis[1242]: Valid PID file (younger than sys
  uptime 11 20:24:00)

  Jul 23 10:24:38 mx1 amavis[1242]: Signalling a SIGHUP to a running
  daemon [1177]

  Jul 23 10:24:38 mx1 amavis[1177]: Net::Server: 2012/07/23-10:24:38
  Server closing!

  Jul 23 10:24:38 mx1 amavis[1177]: Net::Server: Sending children hup
  signal during HUP on prefork server

  Jul 23 10:24:38 mx1 amavis[1177]: (!)Net::Server: 2012/07/23-10:24:38
  HUP'ing server

  <silence, amavis is dead>

I know something similar happens when /etc/amavisd.conf is unreadable by
the amavis user, and I knew I was messing with the postfix permissions
last night, so it wasn't /too/ hard to figure this out.

But, is it possible/easy to write something to the log when this happens?


More information about the amavis-users mailing list