I'm currently setting up a mail server for mass mailing on a non-profit. I decided to go with Postfix since I had some experience with the configuration. However my experience was for multi domain environments backed by a MySQL DB not a mass mailing solution.
What I'm trying to accomplish needs to meet the following:
- SMTP server that allows to send emails from any email address / domain they choose;
- Only allow to send the emails with those domains from the server itself, to avoid running this as an open-relay and have spam issues;
- Still have a
mailbox-mapsconfiguration based on a MySQL DB so I can create internal emails
@massmail.exampleto use as email bounce / return path to track errors;
My current config is a multi domain environment, I'm able to add domains and users into the MySQL DB like
email@example.com, connect to SMTP, send mail and receive over IMAP. Everything works fine.
However, how am I supposed to implement the part: "send emails from any email address / domain they choose"?
To send emails from
firstname.lastname@example.org, should I:
- Add the domain
virtual_domainstable and create the user
virtual_users, login with that address and send the emails?
- Login with the internal bounce email
email@example.com it to send email but change the
What's the correct options in terms of SPAM detection bulk sending compliance? Any of the above or something else? How does platforms like mail chimp handle this?