Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Amavis breaks when stored on host #104

Open
BigBrainAFK opened this issue Apr 3, 2022 · 6 comments
Open

Amavis breaks when stored on host #104

BigBrainAFK opened this issue Apr 3, 2022 · 6 comments

Comments

@BigBrainAFK
Copy link

So I wanted to add my second domain to the DKIM config of amavis for which I stored /etc/amavis on the host.
This breaks the random SQL password on startup and causes amavis to reboot when mails come in or are to be send out.

It would be cool to have a better way to add more DKIM domains or document the environment variable AMAVISD_DB_PASSWORD

@tpimh
Copy link
Contributor

tpimh commented Apr 16, 2022

Do you get lines like this after editing amavis config?

INFO spawned: 'amavisd' with pid 17519
INFO success: amavisd entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
INFO exited: amavisd (exit status 13; not expected)

@BigBrainAFK
Copy link
Author

BigBrainAFK commented Apr 16, 2022

Just starting the container with the config stored on the host caused this. I then just predetermined the password by setting MYSQL_ROOT_PASSWORD= and AMAVIS_DB_PASSWORD= in my config file that I pass into environment.

The main issue according to the amavis log was incorrect mysql login details.

@tpimh
Copy link
Contributor

tpimh commented Apr 16, 2022

I'm trying to solve this now. I will also recreate my container (keeping all my volumes) as soon as I figure out what is my current database password.

@BigBrainAFK
Copy link
Author

The Amavis password is in one of the config files and the mysql password you set via env is propogated to all files as far as i can tell. Also I only moved amavis out to add my second domain to the dkim entry

@tpimh
Copy link
Contributor

tpimh commented Apr 16, 2022

I ended up copying all the following variables: MYSQL_ROOT_PASSWORD, VMAIL_DB_PASSWORD, VMAIL_DB_ADMIN_PASSWORD, AMAVISD_DB_PASSWORD, ROUNDCUBE_DB_PASSWORD, IREDAPD_DB_PASSWORD, IREDADMIN_DB_PASSWORD, FAIL2BAN_DB_PASSWORD, SA_BAYES_DB_PASSWORD. It seems to be working. But adding a more convenient way is important.

@BigBrainAFK
Copy link
Author

Like I said for me the 2 passwords completely fixed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants