4.7.25 Client host rejected: cannot find your hostname, [172.25.0.1] #1331

Closed
opened 2026-02-05 00:38:42 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @GoliathLabs on GitHub (Jul 26, 2022).

Subject of the issue

I've configured SMTP properly yet I can't deliver my mail (e.g. by testing the mail) as a valid hostname has to be sent to the mailserver.

Deployment environment

  • vaultwarden version: Latest (1.25.1)
  • Install method: Docker image

  • Clients used:

  • Reverse proxy and version:
    traefik 2.8.1

  • MySQL/MariaDB or PostgreSQL version:

  • Other relevant details:
    Relevant config:

  "_enable_smtp": true,
  "smtp_host": "smtp.mydomain.org",
  "smtp_security": "starttls",
  "smtp_port": 587,
  "smtp_from": "no-reply@mydomain.org",
  "smtp_from_name": "Vaultwarden",
  "smtp_username": "no-reply@mydomain.org",
  "smtp_password": "supersecretpasswordforgithub",
  "smtp_auth_mechanism": "LOGIN",
  "smtp_timeout": 15,
  "helo_name": "mail.mydomain.org",
  "smtp_accept_invalid_certs": false,
  "smtp_accept_invalid_hostnames": false,
  "_enable_email_2fa": false,
  "email_token_size": 6,
  "email_expiration_time": 600,
  "email_attempts_limit": 3

Mailserver log:

mailserver-mailserver-1  | Jul 26 22:02:47 mail postfix/submission/smtpd[4570]: connect from unknown[172.25.0.1]
mailserver-mailserver-1  | Jul 26 22:02:47 mail postfix/submission/smtpd[4570]: Anonymous TLS connection established from unknown[172.25.0.1]: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256
mailserver-mailserver-1  | Jul 26 22:02:47 mail postfix/submission/smtpd[4570]: NOQUEUE: reject: RCPT from unknown[172.25.0.1]: 450 4.7.25 Client host rejected: cannot find your hostname, [172.25.0.1]; from=<no-reply@mydomain.org> to=<myname@mydomain.org> proto=ESMTP helo=<mail.mydomain.org>
mailserver-mailserver-1  | Jul 26 22:02:47 mail postfix/submission/smtpd[4570]: disconnect from unknown[172.25.0.1] ehlo=2 starttls=1 auth=1 mail=1 rcpt=0/1 quit=1 commands=6/7

Steps to reproduce

See above

Expected behaviour

The mail goes through as with my other services

Actual behaviour

Didn't work as shown above

Troubleshooting data

Originally created by @GoliathLabs on GitHub (Jul 26, 2022). <!-- # ### NOTE: Please update to the latest version of vaultwarden before reporting an issue! This saves you and us a lot of time and troubleshooting. See: * https://github.com/dani-garcia/vaultwarden/issues/1180 * https://github.com/dani-garcia/vaultwarden/wiki/Updating-the-vaultwarden-image # ### --> <!-- Please fill out the following template to make solving your problem easier and faster for us. This is only a guideline. If you think that parts are unnecessary for your issue, feel free to remove them. Remember to hide/redact personal or confidential information, such as passwords, IP addresses, and DNS names as appropriate. --> ### Subject of the issue <!-- Describe your issue here. --> I've configured SMTP properly yet I can't deliver my mail (e.g. by testing the mail) as a valid hostname has to be sent to the mailserver. ### Deployment environment <!-- ========================================================================================= Preferably, use the `Generate Support String` button on the admin page's Diagnostics tab. That will auto-generate most of the info requested in this section. ========================================================================================= --> <!-- The version number, obtained from the logs (at startup) or the admin diagnostics page --> <!-- This is NOT the version number shown on the web vault, which is versioned separately from vaultwarden --> <!-- Remember to check if your issue exists on the latest version first! --> * vaultwarden version: Latest (1.25.1) <!-- How the server was installed: Docker image, OS package, built from source, etc. --> * Install method: Docker image * Clients used: <!-- web vault, desktop, Android, iOS, etc. (if applicable) --> * Reverse proxy and version: <!-- if applicable --> traefik 2.8.1 * MySQL/MariaDB or PostgreSQL version: <!-- if applicable --> * Other relevant details: Relevant config: ``` "_enable_smtp": true, "smtp_host": "smtp.mydomain.org", "smtp_security": "starttls", "smtp_port": 587, "smtp_from": "no-reply@mydomain.org", "smtp_from_name": "Vaultwarden", "smtp_username": "no-reply@mydomain.org", "smtp_password": "supersecretpasswordforgithub", "smtp_auth_mechanism": "LOGIN", "smtp_timeout": 15, "helo_name": "mail.mydomain.org", "smtp_accept_invalid_certs": false, "smtp_accept_invalid_hostnames": false, "_enable_email_2fa": false, "email_token_size": 6, "email_expiration_time": 600, "email_attempts_limit": 3 ``` Mailserver log: ``` mailserver-mailserver-1 | Jul 26 22:02:47 mail postfix/submission/smtpd[4570]: connect from unknown[172.25.0.1] mailserver-mailserver-1 | Jul 26 22:02:47 mail postfix/submission/smtpd[4570]: Anonymous TLS connection established from unknown[172.25.0.1]: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 mailserver-mailserver-1 | Jul 26 22:02:47 mail postfix/submission/smtpd[4570]: NOQUEUE: reject: RCPT from unknown[172.25.0.1]: 450 4.7.25 Client host rejected: cannot find your hostname, [172.25.0.1]; from=<no-reply@mydomain.org> to=<myname@mydomain.org> proto=ESMTP helo=<mail.mydomain.org> mailserver-mailserver-1 | Jul 26 22:02:47 mail postfix/submission/smtpd[4570]: disconnect from unknown[172.25.0.1] ehlo=2 starttls=1 auth=1 mail=1 rcpt=0/1 quit=1 commands=6/7 ``` ### Steps to reproduce <!-- Tell us how to reproduce this issue. What parameters did you set (differently from the defaults) and how did you start vaultwarden? --> See above ### Expected behaviour <!-- Tell us what you expected to happen --> The mail goes through as with my other services ### Actual behaviour <!-- Tell us what actually happened --> Didn't work as shown above ### Troubleshooting data <!-- Share any log files, screenshots, or other relevant troubleshooting data -->
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#1331