katefike / sage

A personal finance app that's like Mint, but better. It uses a dockerized postfix/dovecot email server. Parses transaction data from alert emails.
MIT License
5 stars 0 forks source link

Fix mailserver container error "tail: cannot open '/var/log/mail.log' for reading: No such file or directory" #105

Closed katefike closed 10 months ago

katefike commented 10 months ago

Problem

sage-mailserver  | 2023-11-06 05:09:45,998 INFO supervisord started with pid 1
sage-mailserver  | 2023-11-06 05:09:47,002 INFO spawned: 'cron' with pid 55
sage-mailserver  | 2023-11-06 05:09:47,016 INFO spawned: 'maillog2stdout' with pid 56
sage-mailserver  | 2023-11-06 05:09:47,023 INFO spawned: 'postfix' with pid 57
sage-mailserver  | tail: cannot open '/var/log/mail.log' for reading: No such file or directory
sage-mailserver  | tail: no files remaining
sage-mailserver  | 2023-11-06 05:09:47,033 INFO exited: maillog2stdout (exit status 1; not expected)

Solution

Create /var/log/mail.log if it doesn't exist in the container