Problem is:
* content editors are allowed to author emails send by webforms
* they select user input as "from" name/address
* mails will not be accepted by mail servers because the webserver is not in de SPF-record of the user-input email address.

This is simple to fix:
* we must properly configure webform and add the webform_default_from_address and webform_default_from_name settings. But these settings are included in the ct_webform feature. So we should exclude them.

Comments

JoshaHubbers created an issue. See original summary.

joshahubbers’s picture

StatusFileSize
new1.9 KB

This patch removes
webform_default_from_address and webform_default_from_name from the webform feature. Now you can set the default settings per site without overriding the feature.

joshahubbers’s picture

StatusFileSize
new2.4 KB

Hm, added the webform settings field to the domain specific config fields.

Danny.Wouters’s picture

Title: Recreate ct_webform feature to allow default from name and addres » Recreate ct_webform feature to allow default from name and address
Status: Active » Reviewed & tested by the community

The patch from #3 works!
I have tested the patch on a website with domains enabled and the settings are domain sensitive.

joshahubbers’s picture

Note for who is testing this:

The reply-to header is only added if the sender address is from a different domain as the default "from" address.

Case 1:
default from address: test@test.com
mail from address: josha@test2.com
>> reply-to header is added because mail has another domain name

Case 2:
default from address test@test.com
mail from address: josha@test.com
>> no reply-to header is NOT added because the domain test.com should be set up to correctly send mails on behalf of this domain.

paulvandenburg’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.