Skip to content

Amavis config file permissions not secure, keeps looping #1446

@mattarnster

Description

@mattarnster

When spawning a new docker-mailserver, amavis complains that its config file is writable and then exit-loops.

Context

I spawned a fresh copy of this docker container using the instructions in the readme.

Here's the log from the container:

mail    | Apr  5 01:42:49 <host> amavis[167]: Net::Server: Group Not Defined.  Defaulting to EGID '111 111'
mail    | Apr  5 01:42:49 <host> amavis[167]: Net::Server: User Not Defined.  Defaulting to EUID '109'
mail    | Apr  5 01:42:49 <host> amavis[167]: (!!)FATAL: Config file "/etc/amavis/conf.d/61-dms_auto_generated" is writable, UID 109, EUID 109, EGID 111 111
mail    | Apr  5 01:42:49 <host> amavis[167]: (!!)TROUBLE in pre_loop_hook: SECURITY PROBLEM, ABORTING at /usr/sbin/amavisd-new line 12567.
mail    | 2020-04-05 01:42:49,623 INFO exited: amavis (exit status 255; not expected)

Not sure this is having an effect on me either way since spamassassin is disabled.

Expected Behavior

This shouldn't happen from a fresh docker-compose up command.

Actual Behavior

See above for the log.

Steps to Reproduce

Not sure how to reproduce, as this happened right from the start for me.

Your Environment

  • Amount of RAM available: 12GB
  • Mailserver version used: tvial/docker-mailserver:latest
  • Docker version used: Docker version 1.13.1, build cccb291/1.13.1
  • Environment settings relevant to the config:
HOSTNAME=<host>
DOMAINNAME=<domain>
CONTAINER_NAME=mail
  • Any relevant stack traces ("Full trace" preferred):
    As log file above, copied below:
mail    | Apr  5 01:42:49 <host> amavis[167]: Net::Server: Group Not Defined.  Defaulting to EGID '111 111'
mail    | Apr  5 01:42:49 <host> amavis[167]: Net::Server: User Not Defined.  Defaulting to EUID '109'
mail    | Apr  5 01:42:49 <host> amavis[167]: (!!)FATAL: Config file "/etc/amavis/conf.d/61-dms_auto_generated" is writable, UID 109, EUID 109, EGID 111 111
mail    | Apr  5 01:42:49 <host> amavis[167]: (!!)TROUBLE in pre_loop_hook: SECURITY PROBLEM, ABORTING at /usr/sbin/amavisd-new line 12567.
mail    | 2020-04-05 01:42:49,623 INFO exited: amavis (exit status 255; not expected)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions