sudo apt-get install exim4
Configure Exim with the following command:
sudo dpkg-reconfigure exim4-config
Press the down-arrow key to select mail sent by smarthost; received via SMTP or fetchmail then press Tab, followed by Enter:
* dc_relay_domains='mx2.bdcom.net'
* dc_minimaldns='false'
* dc_relay_nets='210.4.64.0/20;119.40.80.0/20;103.16.72.0/22;113.11.0.0/17;114.31.0.0/19;2403:4000::/32 202.79.19.41/32'
* dc_smarthost='mx.bdcom.net'
* CFILEMODE='644'
* dc_use_split_config='false'
* dc_hide_mailname='false'
* dc_mailname_in_oh='true'
* dc_localdelivery='mail_spool'
* message_size_limit='6M'
aptitude install alpine
alpine -f /var/spool/mail/system
apt-get install dovecot-core
apt-get install dovecot-imapd
apt-get install dovecot-pop3d
service dovecot start''