Postfix is a free, open source software application that works as a Mail Transfer Agent (MTA) for routing and delivering email.
Dovecot is an Open-source MDA (Mail Delivery Agent) and is responsible for delivering emails to local recipients' mailboxes on a server.