User Tools

Site Tools


How to test send email in linux

Install tools :

#install mail tools
$apt-get install mailutils
#install telnet client
$apt-get install telnet

Test the connexion to the smtp server :

#telnet some_ip port
$telnet x.x.x.x 25

If you get an output, it's means the smtp respond !

Send an mail to :

$mail -s "Test Subject" < /dev/null

Check log (if POSTFIX) :


- created date : 2017.06.12 -

test_mail.txt · Last modified: 2018/09/11 15:21 by admin