Commit graph

30 commits

Author SHA1 Message Date
Juan Luis Baptiste
1976cf8400 Fix issue #45: Update alpine image to v3.13, had to remove cyrus-sasl-plain
package as is not present on that version and switch sasl map from
hash to lmdb.
2021-02-03 15:26:44 -05:00
Rev (Tsuyoshi Yamasaki)
f4b70c83e2 add smtp_tls_wrappermode and smtp_tls_security_level.
You need both parameters when you send emails with TLS(465).
2021-01-02 14:01:56 -05:00
David Cooper
c53377f8a5 Fix issue #35 2020-11-01 17:14:35 -05:00
lucas_nz
6783d68f42 Add option to overwrite the From address 2020-09-29 21:34:55 +13:00
Erik Martin-Dorel
e0d3ab0af7
Add option always_add_missing_headers (#32)
(adding From:, To:, Date: or Message-ID: headers when not present,
cf. http://www.postfix.org/postconf.5.html#always_add_missing_headers)

This option always_add_missing_headers is set by the environment
variable ALWAYS_ADD_MISSING_HEADERS (default: no)
2020-08-24 14:41:08 -05:00
Niclas Mietz
eaa38b4fd7 fix(postfix): Set correct default value for SMTP_PORT 2020-06-24 21:08:49 -05:00
dabde
39ac3ab672 Add function to load secret/password from file for security (#25)
New feature: Load SMTP password from file to avoid using env variables.
2020-06-24 20:51:35 -05:00
Juan Luis Baptiste
73dcfc381c Fix awk expression, it worked before because of a bug, it does not work with more recent awk versions. 2020-03-23 18:30:00 -05:00
Juan Luis Baptiste
9fd2173200 Change base image from CentOS 7 to alpine linux 2020-03-22 23:17:24 -05:00
Manuel Gutierrez
aa1686300a Exec supervisor to make it PID 1 2019-11-29 11:43:51 +01:00
Juan Luis Baptiste
292d1c46c0 In case of mounting /var/spool/postfix, delete master.pid first 2019-10-23 17:20:20 -05:00
turboaaa
b0fde40d8f
Update run.sh
Add trusted networks option
2019-03-17 17:17:51 -04:00
Juan Luis Baptiste
cea37873fa Remove slash scaping, not needed with postconf and was breaking the container (issue #11) 2019-03-10 13:39:33 -05:00
Juan Luis Baptiste
6342b77d16
Merge pull request #7 from turboaaa/patch-1
Replace add_config_value with native postconf
2019-03-06 10:56:02 -05:00
turboaaa
132deee541
Update run.sh 2019-02-17 12:50:55 -05:00
turboaaa
25f561db6b
Convert previous function to using postfix. 2019-02-17 12:50:21 -05:00
turboaaa
3196395b4e
Update run.sh 2019-01-26 20:50:34 -05:00
turboaaa
3949dcefc0
Update run.sh 2019-01-26 17:12:50 -05:00
turboaaa
640b29d088
Update run.sh 2019-01-20 00:01:55 -05:00
turboaaa
630b283eea
Update run.sh
Updated header tag variable. Configured to only set the header tag if variable is set.
2019-01-19 23:58:15 -05:00
turboaaa
d3f3316ccf
Update run.sh
Formatting.
2019-01-16 13:09:56 -05:00
turboaaa
423c51f9a0
Update run.sh 2019-01-16 12:39:55 -05:00
turboaaa
e7eb0a9d8e
Add header tag creation.
This will create a tag in email headers that can be used for filtering by receiving servers. I use this image for relaying through exchange online, and the nature of how I run my containers prevents me from setting static IPs as a filter. With a tag for exchange to look at, I can make sure emails from the relay are not hitting the junk folder.

Without setting the HEADER_TAG variable, the script will create a randomly generated tag and move on. It is not a requirement to make use of this feature.
2019-01-16 12:34:48 -05:00
turboaaa
22f46669db
Replace add_config_value with native postconf
This project saved me a lot of time. With the basic service running in docker I was able to add TLS and authentication for external clients. I am hoping I can help in some small way.
2019-01-08 18:12:45 -05:00
watiko
20decfd2f9 Make the smtp server port configurable. 2018-05-24 12:14:45 +09:00
Juan Luis Baptiste
0cb738084c Don't add duplicate configuration entries. 2018-05-09 02:06:30 -05:00
Juan Luis Baptiste
58f40b3cab Also validate SERVER_HOSTNAME. 2018-03-06 01:18:30 -05:00
Juan Luis Baptiste
4a528463da Also set mydestination. 2015-05-22 23:45:58 -05:00
Juan Luis Baptiste
cb373828fc Set myhostname and myorigin, some providers like 1&1 will do MX lookups on them so they need to be valid. 2015-05-13 01:06:38 -05:00
Juan Luis Baptiste
38c13fe385 First version 2015-04-19 17:30:41 -05:00