I have installed Ubuntu Bionic on my virtual machine and have an application set up.
Now what I need is to send emails from my own server.
I am trying to set up postfix to do that but nothing works. I have tried many tutorials but still no success....even worse - the more tutorials I try the more confused I get.
So what have I tried?
I used apt install mailutils
to install postfix and I chose internet site When it asked for FQDM. I entered mydomain.com
..
Here is the first question. Some tutorials say to change it to mail.mydomain.com
. So is it supposed to be a subdomain? Do I need to create an A record to my DNS?
The I try to send an email:
email" | mail -s "This is the subject line" somemail@mail.com
But nothing happens...no mail in my mailbox and no mails in posfix queue.
Is there a step by step tutorial for a complete beginner?
Do I need to create a MX record pointing to my server?
Do I need to create a TXT record? I read that that is how other mail servers validate a sender. If yes, then how to do it?
So what do I have to do to send and email from my own server? At this point I don`t even need to receive and email - just send it
And I don`t need to use postfix... I can use whatever works.
sudo systemctl status postfix
– Jos May 29 '20 at 11:46