New on LowEndTalk? Please Register and read our Community Rules.
Which MailServer would be the best for my needs?
Hi.
I basically want to create an API with PHP that will run commands on a server to create the following.
Create RECEIVE ONLY Email Addresses/Mail boxes (meaning they can't send mail, only receive)
Alter the permissions of an existing account so they can send.
Anyone here recommend any mailservers that let you create accounts that can only receive and not send?
Thanked by 1rokok
Comments
Pretty much https://www.linode.com/docs/email/postfix/email-with-postfix-dovecot-and-mysql except don't allow client SMTP access by default. Your application only needs to modify the MySQL tables.
Pretty much https://www.linode.com/docs/email/postfix/email-with-postfix-dovecot-and-mysql except don't allow client SMTP access by default. Your application only needs to modify the MySQL tables.
To get some clients that can send, you would either need to separate the Postfix authentication from Dovecot authentication (the guide tells Postfix to authenticate clients via Dovecot) or use a policy service.
Example of policy service:
main.cf:
master.cf:
restrictsender.py: https://gist.github.com/anonymous/a8131d11bf9c1b6b5e14
Note: there's probably an easier way than policy service, but the policy service let's you do more complicated things like rate limiting.
Edit: sorry for double post, fucking cloudflare waf