emailwiz
emailwiz copied to clipboard
Resolve "Anyone can send mails from a local user as long as the recipient is another local user"
Fixes #237
It works, but note that I have only tested this using my setup where this script is partially run in docker, so I haven't tested this using the vanilla script.
What's with the bizarre double echo command? Why not just echo "/^(.*)@$domain$/ \${1}" or something like that?
You need to escape any dots in the domain name (.) into (\.). For example, example.com should turn into example\.com. Hence the double echo with the sed command.
I'm going to assume that this bugfix is unnecessary after b657e768c9f9a9773b7767b286d1b16603ecd4ae, although if the issue persists, I'll merge this.