Commit graph

2588 commits

Author SHA1 Message Date
Josef Friedrich 2241f9b61e Merge pull request #310 from Zehir/master
Fix for multiple IPV4
2016-09-05 08:09:27 +02:00
Zehir e5d14fd0bc Fix for multiple IPV4 2016-09-04 23:26:10 +02:00
Josef Friedrich 06125e1f1a Show debug message when config/dovecot.cf gets loaded (#307) (#308) 2016-09-04 20:38:30 +02:00
Josef Friedrich fce98eaecb Use COPY instead of ADD in Dockerfile (#301) (#304)
For other items (files, directories) that do not require ADD’s tar
auto-extraction capability, you should always use COPY.

  docker run --rm -i lukasmartinelli/hadolint < Dockerfile

shows:

  /dev/stdin:49 DL3020 Use COPY instead of ADD for files and folders
  /dev/stdin:50 DL3020 Use COPY instead of ADD for files and folders
  /dev/stdin:62 DL3020 Use COPY instead of ADD for files and folders
  /dev/stdin:63 DL3020 Use COPY instead of ADD for files and folders
  /dev/stdin:77 DL3020 Use COPY instead of ADD for files and folders
  /dev/stdin:78 DL3020 Use COPY instead of ADD for files and folders
  /dev/stdin:81 DL3020 Use COPY instead of ADD for files and folders
  /dev/stdin:82 DL3020 Use COPY instead of ADD for files and folders
  /dev/stdin:85 DL3020 Use COPY instead of ADD for files and folders
  /dev/stdin:89 DL3020 Use COPY instead of ADD for files and folders
  /dev/stdin:107 DL3020 Use COPY instead of ADD for files and folders
  /dev/stdin:109 DL3020 Use COPY instead of ADD for files and folders
2016-09-04 20:37:16 +02:00
Josef Friedrich 8d7301d679 Add tree view of config folder 2016-09-04 19:13:18 +02:00
Josef Friedrich 1276a7d95e Update name 2016-09-04 19:12:17 +02:00
Josef Friedrich 9d7011a6fb Add more documentation 2016-09-04 19:00:17 +02:00
bigpigeon 0baf7954c5 missing with relayhost (#303)
* add AWS_SES_PORT env

* issue: relayhost port
2016-09-02 14:25:15 +02:00
Morgan Kesler 02f854f4e9 Allow user to provide Amavis configuration (#299)
* Add the option of manually specifying paths to SSL certificates

* Adding tests for manual SSL changes

* Allow user provided configuration of amavis
2016-09-02 09:08:41 +02:00
Josef Friedrich 4e253a098d Simplify Dockerfile (#300)
The 'ADD' instruction can handle directories as source. It is no need
to add every script in 'target/bin' explicitly. New scripts can be
added without touching the Dockerfile.
2016-09-02 09:08:05 +02:00
Josef Friedrich f47bfb7edb Latest version of docker-mailserver uses dovecot instead of courier 2016-09-01 17:22:50 +02:00
Josef Friedrich ac36272d97 Improve and extend setup.sh (#295)
* Improve and extend setup.sh

Add subcommands 'debug show-mail-logs', 'inspect', 'login'. Add option
'-c' to specify the name of the running container. Add option '-i' to
specify the image name.

* Add tests for setup.sh
2016-09-01 12:10:23 +02:00
Stig Otnes Kolstad 48c107a302 Fixed incorrect environment variable 2016-08-31 16:28:52 +02:00
Morgan Kesler ee0c4244cc Add the option of manually specifying paths to SSL certificates (#296)
* Add the option of manually specifying paths to SSL certificates

* Adding tests for manual SSL changes
2016-08-31 15:15:39 +02:00
Josef Friedrich afb8c05cf9 Refactor Dockerfile (#293)
Split long "oneliner" in multiple lines to increase readability. Sort
installed packages alphabetically. Replace tabs with to two spaces.
2016-08-30 09:59:46 +02:00
Josef Friedrich 81f42d096a Improve script 'debug-fetchmail' (#292)
The option '--check' checks for new mails without actually fetching
or deleting mail. Without '--check' 'debug-fetchmail' throws errors if
the external mail accout has new mails and the smtp daemon is not
running.
2016-08-30 09:58:45 +02:00
Josef Friedrich 0064a19c68 Let Travis CI test on all branches (#291)
Most developers implement new docker-mailserver features on feature
branches before they create a pull request. This commit enables Travis
CI testing on all branches except 'donttestme'. Developers now can
'pre-test' their features branches without permanentaly hacking
'.travis.yml'. More testing is good!
2016-08-30 09:58:22 +02:00
Jack Twilley dbc6c6dffa Actually use the key. (#290)
This code was mistakenly not committed, and is required for the feature to work.
2016-08-30 09:57:44 +02:00
Josef Friedrich b5ddfbd867 Add sample debug output 2016-08-30 00:14:21 +02:00
Josef Friedrich c47a50d971 Add ssl to samlpe configuration. SSL is always good 2016-08-30 00:10:48 +02:00
Josef Friedrich 51f59208b7 New Section: Polling interval 2016-08-29 22:13:22 +02:00
Josef Friedrich fadfa853a2 Use setup.sh for debugging 2016-08-29 22:04:40 +02:00
Josef Friedrich d6c66fa2b7 The title doesn't support markdown 2016-08-29 22:03:35 +02:00
Josef Friedrich e8c6badcf2 New page about setup.sh 2016-08-29 21:51:09 +02:00
Josef Friedrich 6c9901e260 Improve fetchmail support (#289)
Fetchmail is now configured by a script called 'setup-fetchmail'.
The script 'debug-fetchmail' is used inside the 'setup.sh' script.
2016-08-29 19:03:45 +02:00
Jack Twilley cd7bc5f6bc Minor tweaks to letsencrypt configuration. (#288)
The letsencrypt-auto client creates cert.pem, chain.pem, fullchain.pem, and
privkey.pem in its default settings.  The simp_le client creates cert.pem,
fullchain.pem, and key.pem in its default settings.

A check for either privkey.pem or key.pem was added.

The chain.pem file was only used by the letsencrypt code for the creation of
combined.pem, which is not used by either postfix or dovecot.

The code to create a combined.pem file for letsencrypt was removed, as was the
corresponding test.
2016-08-29 13:46:16 +02:00
Josef Friedrich 98e59a7abe Implement ./setup.sh email list (#287)
This commit adds a script nammed 'listmailuser'. './setup.sh' uses this
this script for its subcommand './setup.sh email list'. A test have
been added too.
2016-08-29 13:44:36 +02:00
Josef Friedrich 69ee54513e Fix build (#286)
The Refactoring of the scripts 'addmailuser' and 'delmailuser'
destroyed the build process.
2016-08-29 07:13:36 +02:00
Josef Friedrich 61cf0bfc6f Add wrapper script for easier setup of the docker-mailserver (#280)
To setup the mailserver large snippets of shell code had to past in a
console. Instead of:

  mkdir -p config
  touch config/postfix-accounts.cf
  docker run --rm \
    -e MAIL_USER=user1@domain.tld \
    -e MAIL_PASS=mypassword \
    -ti tvial/docker-mailserver:latest \
    /bin/sh -c 'echo "$MAIL_USER|$(doveadm pw -s SHA512-CRYPT -u
  $MAIL_USER -p $MAIL_PASS)"' >> config/postfix-accounts.cf

you can specify:

  ./setup.sh email add user1@domain.tld mypassword

This wrapper script can be easily extended. It uses the scripts already
builtin.
2016-08-28 21:10:25 +02:00
Josef Friedrich 76d2c779df Adjust coding style in "bin" scripts (#279)
The main shell script (start-mailserver.sh) uses two spaces for
indentation. All other shell scripts should use this coding
style.
2016-08-28 21:08:37 +02:00
bigpigeon 46278ec890 add AWS_SES_PORT env (#278) 2016-08-28 21:07:16 +02:00
Jack Twilley 6d2d9dd738 Handle missing files more gracefully. (#265)
* Wrote functional tests for desired behavior.

Redoing the pull request, starting from current master.

The tests now fail where expected.

* Updated commands to handle missing files better.

The functional tests now pass.
2016-08-24 10:06:59 +02:00
Thomas VIAL 92a206a253 Updated Home (markdown) 2016-08-23 11:51:43 +02:00
Josef Friedrich f707a11c98 Add notice to docker-compose version in README (#268 #276) (#277) 2016-08-23 11:51:05 +02:00
Josef Friedrich 3a6b6ef198 Use quotation marks for hostnames for better separation between key and values. Imap and pop3 can't be written in quotation marks. 2016-08-22 22:42:25 +02:00
Josef Friedrich 393b5239c5 Add "IMPORTANT" warning 2016-08-22 22:30:47 +02:00
Josef Friedrich ec1064de3b password should be pass 2016-08-22 22:24:07 +02:00
Josef Friedrich e963f7f65e Shorter examples 2016-08-22 22:23:34 +02:00
Josef Friedrich 859df6866b Delete orphaned configuration file (#273)
The config file target/dovecot/dovecot.conf is not used to build the
docker-mailserver image. All tests are working without this file. The
additional config file config/dovecot.cf won’t be loaded if
target/dovecot/dovecot.conf is used.
2016-08-22 17:37:45 +02:00
Josef Friedrich 41a9de317b Add link to chapter 2016-08-22 10:45:14 +02:00
Josef Friedrich 19d2fd6fec Fix links 2016-08-22 10:41:52 +02:00
Josef Friedrich 256291895f Add link to the fetchmail man page 2016-08-22 10:40:34 +02:00
Josef Friedrich 2fbca66b28 Updated Retrieve emails from a remote mail server (using builtin fetchmail) (markdown) 2016-08-22 10:25:14 +02:00
Josef Friedrich 8623b155a0 Add more headlines 2016-08-22 10:23:51 +02:00
Josef Friedrich 941114be12 Add link to fetchmail website 2016-08-22 10:20:59 +02:00
Josef Friedrich 4f46a059ce Add tree view of folder structure 2016-08-22 10:16:47 +02:00
Josef Friedrich 0e9ce32dcc Add debug commands 2016-08-22 10:12:04 +02:00
Josef Friedrich e354569eda Remove warning 2016-08-21 23:32:05 +02:00
Josef Friedrich e7de8b9245 Implement fetchmail (#260) (#271)
To retrieve emails from external mail accounts.
2016-08-21 22:13:13 +02:00
Thomas VIAL b8a31a801b Updated Home (markdown) 2016-08-21 22:11:11 +02:00