Skip to content

Mailserver in docker for raspberry pi using dovecot, postfix and fetchmail

Notifications You must be signed in to change notification settings

tgiesela/mailserver

Repository files navigation

mailserver

Mailserver running postfix, fetchmail and dovecot

Initial setup

Create a vars file like vars.example. You can do this bij executing ./mail_configure.sh. Set the variables for your environment. Variables starting with 'AD' are only required when using Active Directory.

To be able to use Active Directory accounts (if applicable), create a user 'postfix' with a password in the group 'Services' in Active Directory. Use the password in the docker-compose.yml:

- ADPASSWORD=<password for postfix to access AD>

Create a docker network, for example:

docker network create --subnet 172.22.0.0/16 --gateway 172.22.0.50 --ipv6 mailnet

Populate the fetchmail/config/fetchmailrc file in the config folder with the accounts you want to use to retrieve mail from.

To start and stop the containers:

./start.sh ./stop.sh ./stop.sh down

For fetchmail you need to create a fetchmailrc and .netrc file. See the examples. If you have access to git secret with a known email-address you can use git secret reveal to get the stored files.

About

Mailserver in docker for raspberry pi using dovecot, postfix and fetchmail

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published