I want to set up my email to go through my server (e.g. I own asdf.com, I want my email to be [email protected])
How do I do this?
What do I need to install
What can I ask my provider to ensure it is possible?
>>56383993
>Tfw you have the coolest email but you can use it for job stuff
PAIN
>>56383993
bump
>>56383993
You'll need to create the necessary MX records for asdf.com with your DNS provider. Then you'll need to install your mail server system (sendmail, Exchange, etc) and configure for your domain.
If are running this server from a residential ISP, you'll need to verify that POP3/IMAP services aren't blocked by default.
1. Now that you said your domain people are going to take your server down cause im guessing you want to self host
2. If you cant set up a mail server pro tip just use yandex or another mail service like protonmail or google. These will allow you to use your domain for a price. Yandex is free and you can find others. There is this one project where a guy is letting you create unlimited mailboxes with your domain I forget though but the server IP of that service might be marked as spam.
Conclusion? Buy a mail hosting. You're not ready and dont be like I wanna learn if you wanted to learn you would have used common sense 2016 and googled it.
>>56383993
You need a server behind a static IP, running some sort of mail software (sendmail for Linux, Exchange for Windows for example) and you need to point your MX record for your domain to the IP of your server. Also setup port forwarding on the router and open any necessary firewall ports.
https://www.digitalocean.com/community/tutorials/why-you-may-not-want-to-run-your-own-mail-server
www.digitalocean.com/community/tutorials/how-to-run-your-own-mail-server-with-mail-in-a-box-on-ubuntu-14-04
Don't say shit cause im linking a ubuntu server tutorial im guessing OP uses Ubuntu server or windows cause he cant set up a mail server. Btw like others said you need to set up mx records but cloudflare wont hide your mail server ip
>>56383993
Hillary figured it out, you should be able to too.
>>56383993
You do not want to do this. It is a massive pain in the ass and email needs to be working 24/7 to have any value. If you get put on a blacklist, your crappy residential-block IP changes and DDNS doesn't update DNS, or your transaction logs aren't getting cleared by your backups for god knows how long, and any of these can cause your system to go down. How long will it be before you find out? Do you have any redundant failover? Do you have anything to spool mail that would be available if your server went down, since otherwise anyone sending mail to you would just get bouncebacks and they'd think you shut down your email address on your own?
Self-hosting email is stupid and a bad idea for anything you want to be actually productive on. Even when set up right, it is a massive pain in the ass to maintain and the whole stack is just layer after layer of shit, as is the case when the protocol is fucking 50 years old and too important to throw out and start over.
Just use gmail.
Google mail in a box
>>56383993
>How do I do this?
By setting up a SMTP (Send mail transfer protocol)+IMAP (internet message access protoco) server, then just editing your DNSZONE to add a MX (mail exchange) Record that points your domain name to your server IP. If your server IP isn't set up statically you'll need a dynamic DNS client that updates the MX record once every IP change.
A comprehensive tutorial is here http://sealedabstract.com/code/nsa-proof-your-e-mail-in-2-hours/, but first READ ALL THIS POST.
>What do I need to install
An OS for your server and an SMTP, IMAP server and optionally and MTA (mail transfer agent) and then an email client.
Some of then come OOTB with an email server like
Mail-in-a-Box
https://mailinabox.email/
YUNOhost (Why you no host?) https://yunohost.org/#/
SME (Small and Medium Enterprise) Server
https://wiki.contribs.org/Main_Page
Freedom Box
https://www.freedomboxfoundation.org/
Some of them are just the foundation stone like Debian, CentOS or Ubuntu.
The software you'd expect to use is probably
Courier MTA
https://wiki.archlinux.org/index.php/Courier_MTA
Dovecot
https://wiki.archlinux.org/index.php/Dovecot
Exim
https://wiki.archlinux.org/index.php/Exim_with_remote_SMTP_server
Postfix
https://wiki.archlinux.org/index.php/Postfix
Kolab
https://docs.kolab.org/installation-guide/index.html
TL;DR
Try this in order Mail-in-a-Box, NSA Proof Email in 2 hours, YUNOhost, SMEserver, ..., etc.
>What can I ask my provider to ensure it is possible?
Send them an email asking for new promotionals through an email client app (set up for yout email server) such as Thunderbird, Nylas N1, K9-mail or Roundcube. If they answer and you receive their message, then it works.
>>56384639
In the software you'd expect to use I forgot to add this
https://wiki.archlinux.org/index.php/Dynamic_DNS
(for dynamic DNS i. e. when you can't have an static IP address)
>>56383993
sup Hillary
>>56384653
>>56384639
Further tutorials are here
https://www.youtube.com/watch?v=b1VKGYgrgBk
https://www.youtube.com/watch?v=ys2tj1OM6K0
>>56384639
based anon delivers
screencapped
OP this is a terrible idea depending on who you are, where you live, etc.
First of all as >>56384639
put you're going to run a MTA and MDA (mail-transfer-agent (speaks SMTP/Submission) and mail-delivery-agent (speaks IMAP/POP3))
but also to make sure your email doesn't end up in everyone's spam folder. Not only do you need a Static IP, but an SPF record. And probably the use of DKIM proxy. This isn't hard to setup in the grand scheme of things, but it's just more moving bits that can go wrong. And this is assuming that your ISP even lets traffic THROUGH port 25, or that you're able to with your hosting provider. Provide an MX record with a different port than 25 (which is rare.)
Also have to make sure your SMTP server isn't accidentally an open-relay, otherwise again WELCOME TO THE LAND OF SPAM.
You might want to look into mailgun. However it may just be easier to use a service that'll let you use your domain. Or if your DNS host allows it, you can set up a special record that redirects email from [email protected] to [email protected]
>>56384027
what's the email
OpenSMTPD + Dovecot + Spamassassin + LetsEncrypt + Roundcube on a VPS of your choice - google about for some guides my man, I'm sure you'll find plenty.