You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Markus Pesch 9e04271a39
fix: use podman
1 month ago
.dev_env add(docker-compose): yml and env file 1 year ago
.drone.yml fix: use podman 1 month ago
.editorconfig Initial Commit 2 years ago
.gitattributes Initial Commit 2 years ago
.gitignore add(docker-compose): yml and env file 1 year ago
Dockerfile fix: migrate to gitea/drone 10 months ago
LICENSE fix: migrate to gitea/drone 10 months ago
Makefile fix: use podman 1 month ago
README.md fix: migrate to gitea/drone 10 months ago
docker-compose.yml add(docker-compose): yml and env file 1 year ago
fetchmail.pl Initial Commit 2 years ago

README.md

container-fetchmail

Build Status Docker Pulls

The container image container-fetchmail executes the Perl script fetchmail.pl provided by postfixadmin within its environment. By specifying database credentials to access the postfixadmin schema, all emails of the deposited accounts are queried and transferred to the specified email server.

Usage

Possible database types are my for MySQL and Pg for postgres. Make sure that the database and the SMTP server are accessible. Otherwise, adjust the enclosed docker-compose or docker command accordingly. Alternatively you can use docker-compose in addition to the docker commands.

PostgreSQL

$ docker run \
  --rm \
  --env DATABASE_TYPE: Pg \
  --env DATABASE_HOST: postgres \
  --env DATABASE_NAME: postgres \
  --env DATABASE_USER: fetchmail \
  --env DATABASE_PASSWORD: MySecretPassword \
  --network host \
  volkerraschek:container-fetchmail:latest

MySQL

$ docker run \
  --rm \
  --env DATABASE_TYPE: my \
  --env DATABASE_HOST: root \
  --env DATABASE_NAME: mysql \
  --env DATABASE_USER: fetchmail \
  --env DATABASE_PASSWORD: MySecretPassword \
  --network host \
  volkerraschek:container-fetchmail:latest

docker-compose

The repository contains a default docker-compose.yml file, which can be used to start the container. To set the environment variables you need a .env file. The .dev_env from this repository can be used for this. This must be located exclusively in the same directory as the docker-compose.yml file and must be renamed as .env.

version: "3"
services:
  fetchmail:
    container_name: fetchmail
    image: volkerraschek/container-fetchmail:latest
    environment:
    - DATABASE_TYPE=${DATABASE_TYPE}
    - DATABASE_HOST=${DATABASE_HOST}
    - DATABASE_NAME=${DATABASE_NAME}
    - DATABASE_USER=${DATABASE_USER}
    - DATABASE_PASSWORD=${DATABASE_PASSWORD}
    network_mode: host

Build container image manually

To build the images manually check out the repository on github with git and use the make command to build the container image.

make container-image/build