sendmail linux

Install and setup sendmail program on linux debian/ubuntu ( THIS is NOT SETUP Properly Yet )

sudo apt install sendmail
sudo sendmailconfig
sudo service sendmail 
Invalid command <>
Usage: /etc/init.d/sendmail <command>
 Where <command> is one of the following
 start|stop|restart|restart-if-running
 reload-if-running|reload|force-reload
 newaliases|hoststat|purgestat|mailstats|mailq|runq|control
 status|debug|clean
sudo service sendmail restart
netstat -an | grep -i 25 # Check port 25 for mail daemon
netstat -an | grep -i smtp
sudo postfix status/stop
/etc/init.d/postfix status
sudo sh -c 'echo "127.0.0.2 server1" >> /etc/hosts'
 USE postfix alternatively for email server setup.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s