Commit Graph

21 Commits

Author SHA1 Message Date
Nicolas Froger d56d8a8f2c
sendmail: remove demo feature
Signed-off-by: Nicolas Froger <nicolas@kektus.xyz>
2022-08-15 23:36:27 +02:00
Seb 8f2a331e49
Update sendmail.go
Hey guys, great job! I found a small type in the environment variable `SMTP_VERITY_CERT`. Additionally, I would suggest to rename the variable to `SMTP_SKIP_VERIFY_CERT` because the action in `tlsconfig` can be more clearly understood, I think. What so you mean?
2022-05-15 17:36:47 +02:00
Rodrigue Chakode 09fa59110b add variable SMTP_AUTHENTICATION_ENABLED
* boolean setting whether SMTP authentication is required or not
   (default: true)
2022-05-09 10:39:56 +02:00
Dominik George 468de54746 Allow unauthenticated SMTP 2022-05-09 10:33:53 +02:00
Rodrigue Chakode ad8e700e7a
Merge pull request #11 from Natureshadow/feature-no-redirect
Do not redirect if no requestOrigin is set
2022-04-29 12:30:59 +02:00
Dominik George d58a99ae33
Send Origin back as Access-Control-Allow-Origin
Rationale: At this point, we have already verified that the Origin is
allowed. Some clients, e.g. those that submit a form using AJAX, will
expect a CORS header allowing the request. Instead of setting
Access-Control-Allow-Origin *, or setting the header to all allowed
origins (thus leaking a list of sites that use the gateway), we can
thus simply set the same Origin the browser identifies with.
2022-04-28 23:41:39 +02:00
Dominik George 66d5aae498
Do not redirect if no originURI is set 2022-04-28 23:30:56 +02:00
Rodrigue Chakode 2015a1a341 improvement of the contact form processing:
* always use CONTACT_REPLY_EMAIL as sender email (issue #6)
* add the ability to use a hidden field to set the redirection page
2021-10-26 20:14:24 +02:00
Rodrigue Chakode 2cb7818efe use log instead of logrus for logging 2021-09-19 22:49:48 +02:00
Rodrigue Chakode 13b686b3a3 now use contact person's email in from 2020-08-20 09:43:14 +02:00
Chris Camel c58be715bd
add deferred Close to connection 2020-06-16 18:46:38 +02:00
Chris Camel 599d23e080
add deferred Close to smtp writer 2020-06-16 18:45:03 +02:00
Rodrigue Chakode cb46b06458
Merge pull request #2 from ccamel/add-recaptcha-support
Add reCaptcha support
2020-06-04 13:30:53 +02:00
Chris Camel 310cd75505
add reCaptcha support 2020-06-02 15:27:08 +02:00
Chris Camel f3a62cd876
fix possible URI encoding issues
Encode query parameters for the Location URL.
2020-06-02 11:50:28 +02:00
Chris Camel 40f4fd2d30
extract security checks from sendmail into a specific handler
use `http.Handler` wrappers to split the sendmail handler into 2
distinct handlers: one for validating the query (currently, checking the allowed
domains) and the other one for the sendmail functionality.
2020-06-01 19:55:00 +02:00
Rodrigue Chakode 250b9aeb03 added healthz endpoint, misc improvements and docs review
update

use default templates where there are not user-specific settings

improved Dockerfile

renamed healthz endoint

delete deprecated file

fixed healthz endpoint

improved build and deployment

updated docs
2020-05-24 00:44:40 +02:00
Rodrigue Chakode e7cac1bca9 updated config varible name
updated config varible name
2020-05-17 21:54:40 +02:00
Rodrigue Chakode 14d5acf5e8 improved sendmail + docs 2020-05-14 14:58:22 +02:00
Rodrigue Chakode 6513cbf058 core support for app engine 2020-05-10 01:20:35 +02:00
Rodrigue Chakode e535b8d75b first commit 2020-05-10 00:02:18 +02:00