DEV Community

Discussion on: How to setup a mailbox with custom domains?

Collapse
 
picocreator profile image
Eugene Cheah • Edited

Well if you are DIYing the whole solution on your VPS. You might be able to hack together something using mailgun API which can do the heavy lifting for you.

It supports both SMTP for sending of emails, and an API for receiving of emails.

Quite easy to hack together your own inbox - we did so for a temporary inbox project inboxkitten.com

See : dev.to/uilicious/the-stack-making-...

And could be easily extended out for long term storage.

Alternatively, the full real hard-core way would be to do the self-hosting of mail servers yourself. However this is an uphill battle not in getting it to work, but ensuring that your mail servers are configured will to not get marked as spam, etc. I tried... T_T

Collapse
 
glennmen profile image
Glenn Carremans

Thanks Eugene for sharing your project, indeed an option would be to build something myself but that is not what I am currently looking for. But still I will keep it in mind and maybe in the future this will help me.

I think I am going with this option: github.com/mail-in-a-box/mailinabox
But still open for feedback, don't have time this weekend so am probably not going to work on it just yet.

Collapse
 
picocreator profile image
Eugene Cheah

Took a look at mailinabox, it looks potentially a good fit for a plug and play (im assuming you already have existing systems needing SMTP/IMAP). =)