Page History
...
SHRINE by default assumes it can send mail via smtp on localhost port 25. However, if your tomcat server cannot easily send email you may need to add an email{} section inside of the shrine{} section in shrine.conf. SHRINE sends emails from postfix on port 25 by default. SHRINE uses javaxmail internally. Any valid javaxmail configuration values should be supported by shrine.conf. Here is an example that uses AWS SES:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
shrine { ... email { //add javax mail properties from https://www.tutorialspoint.com/javamail_api/javamail_api_smtp_servers.htm here javaxmail { mail { smtp { //for postfix on localhost //host = localhost //port = 25 //for AWS SES - See http://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-using-smtp-java.html //comment out if you want to just use postfix over port 25 host = email-smtp.us-east-1.amazonaws.com port = 25 transport.protocol = smtps auth = true starttls.enable = true starttls.required = true } }//end mail section //Must be set for AWS SES. See http://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-using-smtp-java.html authenticator { username = yourSESUsername } } } //end email section ... } |
...
Overview
Content Tools