mailcow-dockerized icon indicating copy to clipboard operation
mailcow-dockerized copied to clipboard

Improve send-as behaviour

Open macwinnie opened this issue 2 years ago • 3 comments

Receiving mails for wildcard alias addresses is really easy – but sending mails from those any-aliases was not possible at all unless every sender address was added as an explicit alias to the database.

By this change in the database query for allowed sender addresses, the first finding not NULL (see SELECT COALESCE for how it works) – either an exact alias [email protected] or the wildcard alias @domain.tld will be allowed to send mails as the given address ... without the need of explicit definition within the database.

I hope, you find this change useful and consider adding this feature to the official project =)

macwinnie avatar Aug 03 '22 23:08 macwinnie

Forgot to approve.

@DerLinkman We should not forget to increase the image version.

andryyy avatar Aug 04 '22 13:08 andryyy

@macwinnie can you increase the Image Tag inside of the docker-compose.yml for Postfix +1?

DerLinkman avatar Aug 04 '22 13:08 DerLinkman

@DerLinkman done the docker-compose.yml update.

macwinnie avatar Aug 04 '22 22:08 macwinnie