Yeah but in Portugal is moronic.
Portuguese companies* are forced to provide/upload a monthly copy (via a XML file) of all the invoices of the past month.
So the state already know what you sold, what you bought, to whom, from whom, at what price, discount, units, descriptions, taxes yada yada yada.
Forcing the companies to keep paper records as well as digital records is just unnecessary costs for he companies.
*There are exceptions, like self employed with less than X invoices and X revenues per year.
Have you heard of MailCow or MailInABox? MailCow is pretty much a batteries included stack that runs really well for small to medium volumes. It’s OSS and on GitHub so the code is public.
How selective can I be? Can I say “all emails going to *@outlook.com go via SES, all emails going to *@gmail.com go via SendGrid, if bounce send via Mailchannels” for example?
Rebuild sasl_passwd database (do this after every change of /etc/postfix/sasl_passwd file):
$ postmap /etc/postfix/sasl_passwd
And finally restart Postfix, as we have done changes to the main.cf file.
Tadaa, all email destined to @outlook.com will (or at least should!) go via SES EU.
Not sure about the bounce thing. It could be possible, but I don’t know how.
You can also route based on local source address, e.g. I host email for client.com and freebie.com. I want all emails from @client.com routed via SES, but I don’t care about @freebie.com, so their emails will go directly from the server. That’s done using sender_dependent_relayhost_maps