#107171HTTP 503 on sending EXT:form with EmailToSender finisher using non-fully-qualified address like my.name@domain
Description
- If you have a form made with EXT:form which contains an email field it adds a <input type="email"> html element which does validation.
- If you add a EmailToSender finisher additionally validation is done on the server side by GeneralUtility::validEmail($address); in the finisher.
But if you enter an email address like my.namedomain@ and send the form you will get a HTTP 503 response:
Expected response code "250/251/252" but got code "504", with message "504 5.5.2 <my.name@domain>: Recipient address rejected: need fully-qualified address".
This is obviously because in general such an email address is valid, but symfony/mailer/Transport/Smtp/SmtpTransport.php denies to send it.
User experience in such a case is bad as the user gets a 503 full page error instead of a validation error beforehand.
I realize there is the DNSCheckValidation available as an additional validators option since 66179: [FEATURE] Improved Email Validation but it is not enabled by default.
- Should DNSCheckValidation be enabled by default on new instances to avoid this?
- Should the EmailToSender finisher of EXT:form be extended to do this validation beforehand?
- At least the EmailToSender finisher should catch any exception thrown by GeneralUtility::makeInstance(MailerInterface::class)->send($mail); and throw a FinisherException instead in order to allow a better experience for the user
Reviews 1
Related issues 2
History 715
-
Georg Ringer changed Duplicates #102378 <span data-processor="relativetime" data-value="2025-07-30T09:23:32+00:00" > 07/30/25, 09:23 </span>
-
Josua Vogel changed Related to #107581 <span data-processor="relativetime" data-value="2025-10-01T15:06:08+00:00" > 10/01/25, 15:06 </span>
-
Georg Ringer changed Related to #107580 <span data-processor="relativetime" data-value="2025-10-02T19:22:46+00:00" > 10/02/25, 19:22 </span>
-
Georg Ringer commented and changed status
NewRejected <span data-processor="relativetime" data-value="2025-10-02T19:24:45+00:00" > 10/02/25, 19:24 </span>thanks for creating the issue.
IMO there is not much we should use. using the DNS validator is maybe not always the desired thing. however with #107580 the description improved.
i am closing the issue, however feel free to discuss it e.g. via slack -
Gerrit Code Review pushed patch set 16 for main to change 81755 status
RejectedUnder Review <span data-processor="relativetime" data-value="2025-10-23T06:49:35+00:00" > 10/23/25, 06:49 </span> -
Gerrit Code Review pushed patch set 17 for main to change 81755 <span data-processor="relativetime" data-value="2025-10-23T09:59:19+00:00" > 10/23/25, 09:59 </span>
-
Gerrit Code Review pushed patch set 18 for main to change 81755 <span data-processor="relativetime" data-value="2025-10-23T10:24:52+00:00" > 10/23/25, 10:24 </span>
-
Gerrit Code Review pushed patch set 19 for main to change 81755 <span data-processor="relativetime" data-value="2025-10-23T10:29:26+00:00" > 10/23/25, 10:29 </span>
-
Gerrit Code Review pushed patch set 20 for main to change 81755 <span data-processor="relativetime" data-value="2025-10-23T11:17:32+00:00" > 10/23/25, 11:17 </span>
-
Gerrit Code Review pushed patch set 21 for main to change 81755 <span data-processor="relativetime" data-value="2025-10-23T18:23:56+00:00" > 10/23/25, 18:23 </span>
-
Gerrit Code Review pushed patch set 22 for main to change 81755 <span data-processor="relativetime" data-value="2025-10-24T13:59:12+00:00" > 10/24/25, 13:59 </span>
-
Gerrit Code Review pushed patch set 23 for main to change 81755 <span data-processor="relativetime" data-value="2025-10-24T14:12:05+00:00" > 10/24/25, 14:12 </span>
-
Georg Ringer commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2025-10-27T18:20:08+00:00" > 10/27/25, 18:20 </span>Applied in changeset commit:a9d664878f42198b6f269a5e1bc36ef5878a4bf6.
-
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2025-12-02T13:58:04+00:00" > 12/02/25, 13:58 </span>
As far as I can test, the error is not in the Symfony Mailer package. The email server returns this error message and the Symfony Mailer correctly acknowledges it as an exception.
DNSCheckValidation should not be enabled by default. In this case, however, DNSCheckValidation should be configured as a validator in the project, as this is required by the mail server.