1 min read

Install Send Mail Function in nginx Server ubuntu

First of all check send mail function is install in to that server

to check that

Please execute this command in termianal

vds@vps:/etc$ netstat -ntpl

You Found result like this

(No info could be read for “-p”: geteuid()=1000 but you should be root.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      –              
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      –              
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      –              
tcp        0      0 127.0.0.1:9000          0.0.0.0:*               LISTEN      –              
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      –              
tcp        0      0 127.0.0.1:587           0.0.0.0:*               LISTEN      –              
tcp6       0      0 :::22                   :::*                    LISTEN    

If port 25 Found in to the list then send mail function is installed in to server.

If port is not found then install sendmail function

For install send mail function

sudo apt-get install sendmail;

After install this send mail function, test mail function.

Share your Love

Leave a Reply

Your email address will not be published. Required fields are marked *