Closed ray-magini closed 1 year ago
Thanks for the really helpful and detailed report here. This was caused by an errant break
rather than continue
in 4c5ede3, but is fixed in the latest main (2023-08-25
).
I have testet it now and it seems to work as expected (no termination, cache store written).
Thanks a lot for the very fast fix! Great work!
Hi,
first of all: Great work!
Issue I am experiencing an issue where the email proxy terminates after an authentication without any error.
My config (emailproxy.config)
Starting the email proxy with the following command
/usr/bin/python3 -vd /mnt/data/emailproxy/email-oauth2-proxy/emailproxy.py --no-gui --config-file /mnt/data/emailproxy/config/emailproxy.config --cache-store /mnt/data/emailproxy/data/cache.store --local-server-auth --debug
Description If I set a catch-all domain
[@example.com]
or[@]
and enableallow_catch_all_accounts = True
with an already existing authentication it works fine. If I try to add a new one (different email address eg. newaddress@example.com) the listener starts and provides the URL, I can authenticate via oauth successfully but afterwards the email proxy terminates (unfortunately without any issue). The cache store is not updated. There is nothing in the system logs about the termination.Just to confirm:
[address@example.com]
) and setallow_catch_all_accounts = False
all works fine as expected. The cache.store is updated. The next authentication works fine.[address@example.com]
) and setallow_catch_all_accounts = True
all works fine as expected. The cache.store is updated. The next authentication works fine. Finally multiple entries appear in the cache store. In this case I can switch back to[@]
until another authentication happensAssumption The termination must happen when address
[@]
andallow_catch_all_accounts = True
is used, right afterclosing local server and returning response
Last log
My system Email proxy: latest main (Version 2023-08-24 as of writing this) Debian (latest with all updates)
Thanks, Dirk