Wednesday, 3 June 2015

Send email from TL-WR703n

Install ssmtp from luci
edit /etc/ssmtp.conf 

#
# /etc/ssmtp.conf -- a config file for sSMTP sendmail.
#

# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=youremail@hotmail.com

# The place where the mail goes. The actual machine name is required
# no MX records are consulted. Commonly mailhosts are named mail.domain.com
# The example will fit if you are in domain.com and your mailhub is so named.
# mailhub=mail

# Example for SMTP port number 2525
# mailhub=mail.your.domain:2525
# Example for SMTP port number 25 (Standard/RFC)
# mailhub=mail.your.domain       
# Example for SSL encrypted connection
mailhub=smtp.live.com:587

# Where will the mail seem to come from?
rewriteDomain=makesomethingup

# The full hostname
hostname=localhost

# Set this to never rewrite the "From:" line (unless not given) and to
# use that address in the "from line" of the envelope.
FromLineOverride=YES

# Use SSL/TLS to send secure messages to server.
UseTLS=YES
UseSTARTTLS=YES
AuthUser=you@hotmail.com
AuthPass=yourhotmailpassword

# Use SSL/TLS certificate to authenticate against smtp host.
#UseTLSCert=YES

# Use this RSA certificate.
#TLSCert=/etc/ssl/certs/ca-the_usertrust_network.pem


# Get enhanced (*really* enhanced) debugging information in the logs
# If you want to have debugging of the config file parsing, move this option
# to the top of the config file and uncomment
#Debug=YES

To send a test email....... type this with your email address
 echo "This is a test" | ssmtp youremail@hotmail.com

No comments:

Post a Comment