docker icon indicating copy to clipboard operation
docker copied to clipboard

Emails from certain senders are not being forwarded correctly

Open ririko5834 opened this issue 1 week ago • 8 comments

Support guidelines

I've found a bug and checked that ...

  • [X] ... the documentation does not mention anything about my problem
  • [X] ... there are no open or closed issues that are related to my problem

Description

I selfhost anonaddy using docker. But anonaddy seems to not forward some emails. For example, I don't get emails from the courier company that my package will be delivered the next day. Other emails I usually normally have. Can you check it?

I don't receive emails from [email protected] (they are not forwarded on anonaddy). I receive emails from that mail address normally on my gmail.

After running postqueue -p, I can see there the undelivered emails in queue image

Later, there are more emails: image

None of them are listed in failed delivery tab, why? image

Logs:

image

Why was it deferred? There are many of those logs image

{"log":"\n","stream":"stdout","time":"2023-07-18T14:40:01.420379427Z"}
{"log":"Jul 18 14:40:01 mail postfix/smtpd[365838]: connect from unknown[172.25.0.1]\n","stream":"stdout","time":"2023-07-18T14:40:01.841606347Z"}
{"log":"Jul 18 14:40:01 mail postfix/smtpd[365838]: D266910A021B: client=unknown[172.25.0.1]\n","stream":"stdout","time":"2023-07-18T14:40:01.86416435Z"}
{"log":"Jul 18 14:40:01 mail postfix/cleanup[365841]: D266910A021B: message-id=\[[email protected]](mailto:[email protected])\u003e\n","stream":"stdout","time":"2023-07-18T14:40:01.865085534Z"}
{"log":"Jul 18 14:40:01 mail postfix/qmgr[1290]: D266910A021B: from=\[[email protected]](mailto:[email protected])\u003e, size=1062, nrcpt=1 (queue active)\n","stream":"stdout","time":"2023-07-18T14:40:01.867180311Z"}
{"log":"Jul 18 14:40:01 mail postfix/smtpd[365838]: disconnect from unknown[172.25.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5\n","stream":"stdout","time":"2023-07-18T14:40:01.874239627Z"}
{"log":"Jul 18 14:40:01 mail postfix/smtpd[365838]: connect from unknown[172.25.0.1]\n","stream":"stdout","time":"2023-07-18T14:40:01.926272342Z"}
{"log":"Jul 18 14:40:01 mail postfix/smtp[365842]: warning: host [node1.myotherdomain.com](http://node1.myotherdomain.com/)[my_vps_ip_address]:25 greeted me with my own hostname [mail.my_anonaddy_domain.com](http://mail.my_anonaddy_domain.com/)\n","stream":"stdout","time":"2023-07-18T14:40:01.926299102Z"}
{"log":"Jul 18 14:40:01 mail postfix/smtp[365842]: warning: host [node1.myotherdomain.com](http://node1.myotherdomain.com/)[my_vps_ip_address]:25 replied to HELO/EHLO with my own hostname [mail.my_anonaddy_domain.com](http://mail.my_anonaddy_domain.com/)\n","stream":"stdout","time":"2023-07-18T14:40:01.926530312Z"}
{"log":"Jul 18 14:40:01 mail postfix/smtp[365842]: D266910A021B: to=\[[email protected]](mailto:[email protected])\u003e, relay=[node1.myotherdomain.com](http://node1.myotherdomain.com/)[my_vps_ip_address]:25, delay=0.07, delays=0.01/0.01/0.05/0, dsn=5.4.6, status=bounced (mail for [node1.myotherdomain.com](http://node1.myotherdomain.com/) loops back to myself)\n","stream":"stdout","time":"2023-07-18T14:40:01.933908931Z"}
{"log":"Jul 18 14:40:01 mail postfix/smtpd[365838]: disconnect from unknown[172.25.0.1] ehlo=1 quit=1 commands=2\n","stream":"stdout","time":"2023-07-18T14:40:01.933931834Z"}
{"log":"Jul 18 14:40:01 mail postfix/cleanup[365841]: E459E10A02EC: message-id=\[[email protected]_anonaddy_domain.com](mailto:[email protected]_anonaddy_domain.com)\u003e\n","stream":"stdout","time":"2023-07-18T14:40:01.9364827Z"}
{"log":"Jul 18 14:40:01 mail postfix/qmgr[1290]: E459E10A02EC: from=\u003c\u003e, size=3091, nrcpt=1 (queue active)\n","stream":"stdout","time":"2023-07-18T14:40:01.939295714Z"}
{"log":"Jul 18 14:40:01 mail postfix/bounce[365843]: D266910A021B: sender non-delivery notification: E459E10A02EC\n","stream":"stdout","time":"2023-07-18T14:40:01.939310912Z"}
{"log":"Jul 18 14:40:01 mail postfix/qmgr[1290]: D266910A021B: removed\n","stream":"stdout","time":"2023-07-18T14:40:01.939314078Z"}
{"log":"Jul 18 14:40:01 mail postfix/smtpd[365838]: connect from unknown[172.25.0.1]\n","stream":"stdout","time":"2023-07-18T14:40:01.979248302Z"}
{"log":"Jul 18 14:40:01 mail postfix/smtp[365842]: warning: host [node1.myotherdomain.com](http://node1.myotherdomain.com/)[my_vps_ip_address]:25 greeted me with my own hostname [mail.my_anonaddy_domain.com](http://mail.my_anonaddy_domain.com/)\n","stream":"stdout","time":"2023-07-18T14:40:01.979319675Z"}
{"log":"Jul 18 14:40:01 mail postfix/smtp[365842]: warning: host [node1.myotherdomain.com](http://node1.myotherdomain.com/)[my_vps_ip_address]:25 replied to HELO/EHLO with my own hostname [mail.my_anonaddy_domain.com](http://mail.my_anonaddy_domain.com/)\n","stream":"stdout","time":"2023-07-18T14:40:01.979577174Z"}
{"log":"Jul 18 14:40:01 mail postfix/smtp[365842]: E459E10A02EC: to=\[[email protected]](mailto:[email protected])\u003e, relay=[node1.myotherdomain.com](http://node1.myotherdomain.com/)[my_vps_ip_address]:25, delay=0.05, delays=0/0/0.04/0, dsn=5.4.6, status=bounced (mail for [node1.myotherdomain.com](http://node1.myotherdomain.com/) loops back to myself)\n","stream":"stdout","time":"2023-07-18T14:40:01.98116576Z"}
{"log":"Jul 18 14:40:01 mail postfix/smtpd[365838]: disconnect from unknown[172.25.0.1] ehlo=1 quit=1 commands=2\n","stream":"stdout","time":"2023-07-18T14:40:01.981494181Z"}
{"log":"Jul 18 14:40:01 mail postfix/qmgr[1290]: E459E10A02EC: removed\n","stream":"stdout","time":"2023-07-18T14:40:01.981856666Z"}
{"log":"Jul 18 14:40:24 mail postfix/qmgr[1290]: 7F5EB10A036B: from=\[[email protected]](mailto:[email protected])\u003e, size=6904, nrcpt=1 (queue active)\n","stream":"stdout","time":"2023-07-18T14:40:24.99979179Z"}
{"log":"Jul 18 14:40:25 mail postfix/qmgr[1290]: CBCC110A0369: from=\[[email protected]](mailto:[email protected])\u003e, size=6867, nrcpt=1 (queue active)\n","stream":"stdout","time":"2023-07-18T14:40:25.005908912Z"}
{"log":"Jul 18 14:40:25 mail postfix/pipe[365844]: 7F5EB10A036B: to=\[[email protected]_anonaddy_domain.com](mailto:[email protected]_anonaddy_domain.com)\u003e, relay=anonaddy, delay=429304, delays=429304/0.01/0/0.56, dsn=4.3.0, status=deferred (An error has occurred, please try again later. )\n","stream":"stdout","time":"2023-07-18T14:40:25.573641348Z"}
{"log":"Jul 18 14:40:25 mail postfix/pipe[365845]: CBCC110A0369: to=\[[email protected]](mailto:[email protected])\u003e, relay=anonaddy, delay=430643, delays=430642/0.01/0/0.56, dsn=4.3.0, status=deferred (An error has occurred, please try again later. )\n","stream":"stdout","time":"2023-07-18T14:40:25.574978576Z"}
{"log":"crond: USER anonaddy pid 365854 cmd php /var/www/anonaddy/artisan schedule:run --no-ansi --no-interaction\n","stream":"stdout","time":"2023-07-18T14:41:00.968479041Z"}
{"log":"\n","stream":"stdout","time":"2023-07-18T14:41:01.321617025Z"}

None of those emails were saved in failed deliveries, how does failed delivery work, it saves there only if the alias recipient email address refused the forwarded email.

I would appreciate any help. Do you think that it's caused because the sender [email protected] did not pass all anonaddy anti-spam checks? If yes, is there a way to whitelist that domain so it will skip all the checks and forward it straight?

Expected behaviour

Forward them normally

Actual behaviour

Emails from [email protected] get stuck in the queue

Steps to reproduce

.

Docker info

Client: Docker Engine - Community
 Version:    24.0.6
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.11.2
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.21.0
    Path:     /usr/libexec/docker/cli-plugins/docker-compose
  scan: Docker Scan (Docker Inc.)
    Version:  v0.23.0
    Path:     /usr/libexec/docker/cli-plugins/docker-scan

Server:
 Containers: 12
  Running: 11
  Paused: 0
  Stopped: 1
 Images: 73
 Server Version: 24.0.6
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 61f9fd88f79f081d64d6fa3bb1a0dc71ec870523
 runc version: v1.1.9-0-gccaecfc
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: builtin
 Kernel Version: 5.4.0-165-generic
 Operating System: Ubuntu 20.04.6 LTS
 OSType: linux
 Architecture: x86_64
 CPUs: 4
 Total Memory: 7.759GiB
 Name: myhostname
 ID: M6DG:A64P:F2XO:Z7MR:T5KM:4KVS:SDVX:XFTF:QGCR:VGXB:WMC6:MFHU
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

Docker Compose config

No response

Logs

11.7 - https://pastebin.com/raw/4EgthhbX
12.7 - https://pastebin.com/raw/mhpZNSZb
13.7 - https://pastebin.com/raw/SwwzhEnF

Additional info

No response

ririko5834 avatar Jun 27 '24 10:06 ririko5834