Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReturnPath not working anymore #668

Closed
Patta opened this issue Apr 1, 2021 · 4 comments
Closed

ReturnPath not working anymore #668

Patta opened this issue Apr 1, 2021 · 4 comments

Comments

@Patta
Copy link
Contributor

Patta commented Apr 1, 2021

The configured returnPath is not working anymore and the senderEmail is used instead the specific email for return/bounce mails.

TYPO3 10.4.14
powermail 8.3.1
PHP 7.4
Composer mode

Mail system config:

MAIL:
    defaultMailFromAddress: site@my.site
    defaultMailFromName: 'My Site'
    transport: smtp
    transport_smtp_encrypt: true
    transport_smtp_password: '123456789'
    transport_smtp_server: 'my.site:465'
    transport_smtp_username: site@my.site

This configuration is ignored since powermail 8 and TYPO3 10.4.

plugin.tx_powermail {
    settings.setup {
        receiver {
            overwrite {
                returnPath.value = bounce@my.site
            }
        }
        sender {
            overwrite {
                returnPath.value = bounce@my.site
            }
        }
    }
}

The same system and setup config was working with powermail 7 and TYPO3 9.5.

@mschwemer
Copy link
Collaborator

Hi,

I cannot reproduce your issue.

Furthermore, your fix would be wrong, because it does not set the return path, but will set the sender and leave the return path as is.

Do you have further information about your setup?

@Patta
Copy link
Contributor Author

Patta commented Jul 2, 2021

Thanks for your feedback. The return_path is not set correctly since TYPO3 10.4, as described above. Another special configuration as described above does not exist.

I think this is due to the symfony mailer used since TYPO3 10.4 and could affect other extensions as well. The same issue exists for example in kartolo/direct_mail#251 and was confirmed by a user.

I think the following comment might be useful regarding the return path. Regardless of the mail software used in the comment.

Don't use ReturnPath - set Sender instead. ... The return path is added by the receiver when it receives the message, and is set by putting your desired return path into the Sender property, which gets passed as the envelope sender during the SMTP conversation. Sender is set automatically when you call setFrom, but you can override it and just set it directly, like this...
https://stackoverflow.com/a/26765956

@kiwi2101
Copy link

kiwi2101 commented Mar 7, 2022

I have the same issue with T3 10.4.25 in combination with powermail 8.4.1. Looks like setSender instead of setReturnPath fixes the issue. See https://forge.typo3.org/issues/94350

@Patta
Copy link
Contributor Author

Patta commented Mar 8, 2023

This was a bug in Symfony which is resolved. symfony/symfony#41322
This issue does not exist anymore and can be closed.

@Patta Patta closed this as completed Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants