I have a VPS which hosts different domains, and I'm trying to setup SMTP with postfix, so the users can send emails via SMTP from addresses like:
[email protected]
[email protected]
[email protected]
I managed to configure tsl, sasl etc. but I can't find how to configure the smtp accounts... All the guides I can find use a UNIX user to login, which is not what I'm looking for...
To receive mails, I'm currently using the virtual_alias_maps
to forward incoming mails to the respective owner mailbox.
Use
canonical
to rewrite sender adresses as for example:Within
/etc/postfix/main.cf
:Within
/etc/postfix/canonical
:Then run:
You have to use virtual mailbox. This is done normally with a database. In database are stored virtual accounts with directory specified where e-mail should be stored. Then IMAP/POP3 server (Dovecot) can provide access to e-mails stored on server.
For more information try searching for: "dovecot postfix virtual mailbox" For example read this: https://www.digitalocean.com/community/tutorials/how-to-configure-a-mail-server-using-postfix-dovecot-mysql-and-spamassassin