I am going to set up my own mail server using open source MTA - Postfix.
In general I understand how everything works, but I still cannot find out some things. Here is diagram I am using for understanding all this stuff
MTA (Postifx in this case) is just utility/daemon that understands SMTP protocol
As I can guess mail is stored on the MDA. Is
postfix-maildrop
software that is responsible for storing all data on the server ?(Incoming, outgoing, folders) ? And anytime client can request this info using IMAP/POP3 protocol ?
My main question is where all mail is stored.
Consider following example.
For instance I am using GoDaddy
mail servers. It has settings for SMTP server and for IMAP server.
Whenever I enter this settings in MUA Outlook
I get all mail that was received and sent from my account.
So where this mail is stored ? Is it stored on GoDaddy
server specified in IMAP settings ? Or it is stored somewhere else ?
Please help to understand letter flow through all this infrastructure. And how can I setup my local server that will behave exactly the same as GoDaddy's mail server ?
Thanks