Index

Postfix

setup

setup domain name in linux
sudo vi /etc/hostname
example.com
install postfix MTA (Mail Transfer Agent)
sudo apt-get install postfix
sudo dpkg-reconfigure postfix
modify postfix configuration
sudo nano /etc/postfix/main.cf
myhostname = example.com
virtual_alias_maps = hash:/etc/postfix/virtual

configuring

add email address aliases (tie extra email address to account)
sudo vi /etc/postfix/virtual
root@example.com root
forward an email adress to another email adress
forward@example.com example@gmail.com
load aliases
sudo postmap /etc/postfix/virtual
start mail server
sudo service postfix restart
remove email size restrictions
postconf -e mailbox_size_limit=0
postconf -e message_size_limit=0
/etc/init.d/postfix restart