I am looking for a general direction of creating a mailbox with Laravel. I want to be able to add multiple domains, create multiple email address (like: "[email protected]", "[email protected]", "[email protected]", "[email protected]", etc.) and send and receive emails to that box.
So far I managed to gather the following information:
There is a good package for receiving emails and its called "laravel-mailbox" and it uses different drivers like MailGun, PostMark etc. The part with the sending email will not be a problem.
However I still can't figure out one thing. How can I create the email addresses and start receiving and sending with them? Do I need to do this with MailGun or PostMark, or do I have to do this elsewhere? Any information will be appreciated!
@Sinnbeck Yes, the part of the incoming emails will be handled by "laravel-mailbox" which will listen for for incoming emails from one of the supported drivers, which are Mailgun, Postmark, etc. And I will rely on their service, but so far I have only used them for SMTP drivers and not for something like this.
This is the reason I need a bit of assistance, as I am not really sure how to create the email addresses.
@Don404 Oh so you just need to redirect them to somewhere, not actually show them? Then you dont actually need to create them. Just have something like mailgun catch them all and redirect them to you.
@Snapey So, If I understand correctly. When I create a listener for let's say "[email protected]" I can deal with all the emails that come there as I see fit, and if someone is trying to send an email to "[email protected]" I can return an error that such address is not existing?
@don404 I’d say if you’re asking these questions, then don’t get into the business of hosting email. Especially if you’re going to be charging someone, because if something goes wrong, they’re going to ask you where their emails have gone.
Just pay the couple of dollars or whatever it is to get a mailbox with a reputable company that has dedicated infrastructure, and then sell them to your customers with a mark-up.
Self-hosting client sites is rarely worth the hassle. Building and maintaining a mailbox service definitely won’t be.
@Sinnbeck I am looking to make the mailbox as I want to receive all incoming emails to one place, instead of checking every single email of every single domain and then replay to the emails there.
Can google or protonmail add incoming mails from multiple domains on one place?
I am imagining a place where I can check all new emails at once and can reply to them from there, without the need to change boxes and login in every place etc.