Install Mail System on Ubuntu

Install on Ubuntu 17.04

送信メールサーバー

# apt install postfix

/etc/postfix/main.cf

受信メールサーバー

# apt install dovecot-common dovecot-imapd dovecot-pop3d

メールユーティリティ

# apt install mailutils

バージョンの確認

Postfix

$ postconf | grep mail_version
mail_version = 3.1.4
milter_macro_v = $mail_name $mail_version
Dovecot

$ dovecot --version
2.2.27 (c0f36b0)
mail

$ mail --version
mail (GNU Mailutils) 3.1.1
Copyright (C) 2007-2016 Free Software Foundation, inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
テストメールの送信

$ mail aaaa@gmail.com
Cc:
Subject: Test
May/17/2017
Cntrl + D で終了

Return

May/17/2017 AM 08:15