1 |
apt-get install mail-utils |
Create a virtual domain, and a virtual user inside that domain
Do a telnet to the port 25 of your server and send a mail to that domain and see if it’s delivered. You can check the error logs through
tail -f /var/log/mail.log -f
from a different console. Using telnet is easy
1 2 3 4 5 6 7 8 |
telnet kutayzorlu.com 25 helo kutayzorlu.com mail from: <test@kutayzorlu.com> rcpt to: <youruser@kutayzorlu.com> data Type any content that you want, press enter, then put a period (.) and then enter to exit . |
Command line send mail
1 2 3 |
Now login into the server via ssh, and use mail command to send out the email $ echo "Test Email from kutayzorlu server" | mail -s "Test Subject" youruser@kutayzorlu.com |
Postfix configuration
1 |
mynetworks line in postfix/main.cf |