Martin Schulze
604a65024e
Tests: extract mail_privacy into own .bats file
2019-10-08 23:11:27 +02:00
Martin Schulze
533ac7ed29
Tests: extract mail_pop3 into own .bats file
2019-10-08 22:24:05 +02:00
Martin Schulze
81fd83525c
Tests: extract mail_smtponly into own .bats file
2019-10-08 22:15:27 +02:00
Martin Schulze
56f47db0f2
Tests: Extract mail_fail2ban into own .bats file
2019-10-08 22:03:56 +02:00
Martin Schulze
d05255cb04
Tests: Extract mail_fetchmail into own .bats file
2019-10-08 21:45:05 +02:00
Martin Schulze
a03c741e1b
Extract mail_manual_ssl into own .bats file
2019-10-08 21:36:13 +02:00
Martin Schulze
d3e2dfe3ba
Move mail_with_ldap into its own .bats file
2019-10-08 21:31:56 +02:00
Martin Schulze
43ae814776
Extract mail_with_imap into its own test file
2019-08-17 20:58:33 +02:00
Martin Schulze
9019b98394
Extract mail_postscreen into own test file
2019-08-17 20:58:33 +02:00
Martin Schulze
3b728848bb
Extract mail_lmtp_ip into own test file
2019-08-17 20:58:33 +02:00
Martin Schulze
82ab286291
Extract mail_undef_spam_subject into own test file
2019-08-17 20:58:33 +02:00
Martin Schulze
d8956d3b29
Extract mail_with_postgrey into own test files
2019-08-17 20:58:33 +02:00
Martin Schulze
fcddf578d2
Extract mail with relay tests into own file
2019-08-17 20:58:33 +02:00
Martin Schulze
db160bd977
Extract default relay host test
...
centralize common test variables and functions
2019-08-17 20:58:33 +02:00
Erik Wramner
bf773cc8b7
Use assert_output for better diagnostics of failures
2019-08-16 12:02:23 +02:00
Felix Bartels
1ba0991d80
Fix linting errors reported by hadolint ( #1211 )
...
* Fix linting errors reported by hadolint
* use full path for folders when listing contents
* add linting task to makefile
2019-08-13 11:41:38 +02:00
Erik Wramner
5ebb8614a2
Merge pull request #1220 from erik-wramner/dhparam_on_start
...
Generate dhparam and dovecot cert on start
2019-08-12 22:00:31 +02:00
Erik Wramner
f5dac6e71c
Disable SMTPUTF8 as Dovecot can't handle it
2019-08-11 17:14:00 +02:00
Erik Wramner
c9bd3f3e83
Added sleep to test that keeps failing randomly
2019-08-10 08:34:18 +02:00
Martin Schulze
fcce47a392
WIP: actually test PERMIT_DOCKER=connected-networks
...
also showcase timeouts and makefile integration
2019-08-07 02:24:56 +02:00
Erik Wramner
41921f82aa
Merge pull request #1205 from j-marz/opendkim_nameserver
...
set Nameservers in opendkim.conf at start-up
2019-08-04 18:54:08 +02:00
j-marz
2f0e516d42
added test to check for nameservers in opendkim.conf
2019-08-04 20:29:39 +10:00
Martin Schulze
9c1a5d76af
Fix tests for PERMIT_DOCKER=connected-networks
2019-08-03 20:49:10 +02:00
Martin Schulze
234632913e
Add PERMIT_DOCKER=connected-networks
2019-08-02 15:05:00 +02:00
Erik Wramner
d6861881ab
Parse logs to ensure changes are processed
2019-08-01 15:24:47 +02:00
Erik Wramner
21c89b3364
Added TODO as per code review and removed one sleep
2019-07-31 12:59:49 +02:00
Erik Wramner
b23a7ddc1c
Added newline as suggested in code review
2019-07-31 10:43:12 +02:00
Erik Wramner
f849b46462
Moved test files and mounted read-only
2019-07-30 16:10:51 +02:00
Erik Wramner
e47c73f789
Wait and retry if pre-defined user login fails
2019-07-30 16:10:51 +02:00
Erik Wramner
1f298e3a76
Wait and retry if added user fails to login in tests
2019-07-30 16:10:51 +02:00
Erik Wramner
7299be1284
Split tests to find out why they fail
2019-07-30 16:10:51 +02:00
jjtt
a3724fa91d
Support for setting relayhost in main.cf ( #1104 )
...
* Added DEFAULT_RELAY_HOST setting
* If set this value will be used as the relayhost in /etc/postfix/maincf causing all mail to be delivered using this relay host
* Test for default relay host setting
2019-01-19 11:10:31 +01:00
Daniel Panteleit
cc56b4f89e
Calling supervisord directly instead of via shell ( Closes : #1047 , #1074 )
2018-11-04 20:23:50 +01:00
millerjason
53a344a056
Support for additional postgrey options ( Close : #998 , #999 , #1046 )
...
* addnl postgrey whitelist support. closes #998 , closes #999 .
modified: Dockerfile
modified: Makefile
modified: README.md
modified: docker-compose.elk.yml.dist
modified: docker-compose.yml.dist
modified: target/start-mailserver.sh
modified: target/supervisor/conf.d/supervisor-app.conf
new file: test/config/whitelist_recipients
new file: test/nc_templates/postgrey_whitelist_local.txt
new file: test/nc_templates/postgrey_whitelist_recipients.txt
modified: test/tests.bats
* match existing indent convention
modified: target/start-mailserver.sh
* ISSUE-999: add support for header_checks
modified: Dockerfile
modified: target/postfix/main.cf
* ISSUE-999: add empty header_check file
new file: target/postfix/header_checks.pcre
2018-11-01 19:32:36 +01:00
James
d518a9fc1d
DOMAINNAME can fail to be set in postsrsd-wrapper.sh ( #989 )
...
* DOMAINNAME can fail to be set in postsrsd-wrapper.sh
if the container doesn’t have a proper hostname, postsrsd will fail to start
because SRS_DOMAIN is empty. Make a best effort to figure out the domain name
and provide a way to set one if needed.
2018-06-19 08:17:32 +02:00
ixeft
60656aec49
Report sender ( #965 )
...
* added REPORT_SENDER env variable to the container.
* integration test for REPORT_SENDER
* added tests for default REPORT_SENDER
2018-05-01 19:57:31 +02:00
magnus anderssen
c1118af66d
Support for detecting running container mount ( #884 )
...
This modification proposes to support the running configured mounted
volume for configuration.
This removes the need to pass a path from the command line when the
container is running and configured in another way that yours.
2018-04-28 10:27:42 +02:00
Paul Adams
ea848eb86f
Deliver root mail ( #952 )
...
* Configure delivery of root's mail to postmaster
* Tests for delivery of root mail
* add missing email template
2018-04-23 20:35:33 +02:00
17Halbe
59ce9d03f0
Testfixes & more ( #942 )
...
* fixed useless updatetest, made updatemailuser and addmailuser setup.sh compliant.
* changed documentation
2018-04-08 16:12:41 +02:00
Paul Adams
a564cca0e5
set postmaster address to a sensible default ( #938 , #939 , #940 )
2018-04-05 19:04:55 +02:00
17Halbe
cc7c1f8804
Introducing global filters. ( #934 )
...
* Introducing global filters
* added optional after.dovecot.sieve/before.dovecot.sieve files
* added global filter test
2018-04-05 18:54:01 +02:00
Pierre-Yves Rofes
137d623171
Ensure that the account contains a @ ( #923 , #924 )
...
* Ensure that the provided username actually contains a domain
* Update README.md to be consistent with addmailuser script
* Add a test to check if the username includes the domain
2018-04-04 18:59:28 +02:00
17Halbe
2e06228b10
Password creation fix ( #908 , #914 )
...
* fix password with spaces is stripped to first word
2018-04-02 16:55:54 +02:00
Paul Adams
f28e9843ce
Implementation of multi-domain relay hosts ( #922 , #926 )
...
* Add new configuration for multi-domain relay hosts (#922 )
* Creates new environment variables (replacing existing AWS_SES variables)
* Optionally allows more advanced setups using config files
* Update relay hosts during change detection (#922 )
* Add helper scripts for adding relay hosts and per-domain auth
* Allow the possibility to deliver some mail directly
* adding a domain with no destination will exclude it from the
relayhost_map and so Postfix will attempt to deliver the mail directly
* tests for setup.sh script
* tests for relay host configuration
* these tests cover the code in `start-mailserver.sh` dealing with both
the env vars and the configuration files
2018-04-02 10:45:58 +02:00
17Halbe
f682dfc15d
fixed delalias, added additional tests ( Closes : #909 )
2018-03-19 20:26:10 +01:00
17Halbe
2167108ec0
introducing ENABLE_SRS env variable ( Closes : #906 , #852 )
...
* making postsrsd optional
* added tests, added documentation
2018-03-18 20:15:06 +01:00
akmet
a420b15370
Adding daily mail review from Issue 839 ( #881 )
...
* Added dependencies, binary, startup configuration
* Added env variable to dist files/readme
* send summary after each logrotate, added env variable for mail/logrotate interval
* remove mail.log from rsyslogs logrotate
* rotate mail.log when no email is set
* Added documentation for POSTFIX_LOGROTATE_INTERVAL
* Removed interval option, since its not being tested for.
* changed test to force logrotate to rotate fixed logrotate config
* readded setup_environment, made logrotate_setup being called everytime
* changed documentation for new variable names - again
* Did Documentation, added a default recipient, added test for default config.
* layout fix
* changed variable names apposite the documentation
2018-03-18 19:52:28 +01:00
17Halbe
570237232c
Delmailuser ( Closes : #878 )
...
* delmailuser:
+ added multiple address deletion
+ added alias deletion
+ added maildir deletion (upon confirmation)
+ introduced optional "assume yes" argument
* updated addalias,delalias,delmailuser,updatemailuser and added modified tests
* added config check and repair to start-mailserver for old postfix-virtual.cf files
2018-03-14 20:00:38 +01:00
17Halbe
a73692cc9f
Added reject_authenticated_sender_login_mismatch ( #872 )
...
* added reject_authenticated_sender_login_mismatch handling including tests
* removed obsolete reject_sender_login_mismatch
* introduced SPOOF_PROTECTION env variable, tests, documentation and missing documentation for TLS_LEVEL
* added missing email template
2018-03-07 19:33:43 +01:00
Marek Walczak
253c8faef6
Dkim key size - Addon ( #871 )
...
* added Tests
2018-03-03 09:20:23 +01:00