Hi, this seems to be back.
Same situation as back then: the remote server sits on RCPT TO for the better part of a minute and then says 250 Accepted. Haraka gives up earlier with socket timeout waiting on rcpt, retries for a few days, and then bounces.
I still have pool_timeout=300 in the shipped outbound.ini (the comment even links this thread), but that no longer seems to be what the timeout uses. In the current mail image nothing reads pool_timeout. The socket timer comes from connect_timeout, and if that is not set it falls back to 30 seconds. That is shorter than these delayed 250s, so delivery never gets there.
That matches the follow-up from 2022, where pool_timeout alone was not enough and connect_timeout=300 was needed as well. Looks like that second setting never made it into the image, and after the Haraka update it is the one that actually matters.
Setting connect_timeout=300 in /run/haraka/config/outbound.ini fixes it, but the next container start copies the template back over it. Could this just be added to the shipped config?
connect_timeout=300
pool_timeout=300
inet_prefer=v4
Workaround until then: the image rootfs is read-only, and setup_haraka rebuilds /run/haraka on every start, so an edit inside the container does not survive a restart or update. I put the file on the data volume and have a cron on the host copy it back in.
/home/yellowtent/boxdata/mail/haraka-config/outbound.ini:
connect_timeout=300
pool_timeout=300
inet_prefer=v4
/usr/local/sbin/cloudron-mail-outbound-timeout.sh:
#!/bin/bash
set -euo pipefail
src=/home/yellowtent/boxdata/mail/haraka-config/outbound.ini
[[ -f "$src" ]] || exit 0
docker inspect -f '{{.State.Running}}' mail 2>/dev/null | grep -qx true || exit 0
docker exec mail test -f /run/haraka/config/outbound.ini || exit 0
docker exec mail grep -qx 'connect_timeout=300' /run/haraka/config/outbound.ini && exit 0
docker cp "$src" mail:/run/haraka/config/outbound.ini
docker exec mail chown cloudron:cloudron /run/haraka/config/outbound.ini
docker exec mail supervisorctl restart haraka
/etc/cron.d/cloudron-mail-outbound-timeout:
*/2 * * * * root /usr/local/sbin/cloudron-mail-outbound-timeout.sh
A bit ugly, but it puts the timeout back after an update without me having to remember.