Install, enable and test SMTP

apt-get install mailutils

Edit config

nano /etc/postfix/main.cf

Setup up forwarding (postmaster@)

nano /etc/aliases
postmaster:    root
root:          marc@example.com

enable

newaliases

test locally

echo "This is the body of the email" | mail -s "This is the subject line" root

test from a remote server

telnet mail.example.com 25
mail from: test@example.com
rcpt to: marc@example.com
data
Type some test message

press enter, then put a period (.) and then enter to exit, then type exitto leave.

CISSP CISM PMP