git clone [repo_name] mailserver
cd mailserver
mkdir docker-data
sudo chown "$USER":"$USER" docker-data/ -R
- Hostname
- Domain Name
- SSL cert path (I'm using cert generated by web server, then mounting in)
- make changes according to your needs
./setup.sh email add postmaster@domain.tld your-password
docker run --rm -e MAIL_USER=postmaster@domain.tld -e MAIL_PASS=your-password -it mailserver/docker-mailserver /bin/sh -c 'echo "$MAIL_USER|$(doveadm pw -s SHA512-CRYPT -u $MAIL_USER -p $MAIL_PASS)"' >> ./docker-data/dms/config/postfix-accounts.cf
./setup.sh config dkim
/your/path/mailserver/docker-data/dms/config/opendkim/keys/domain.tld/mail.txt
v=DKIM1; h=sha256; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsg3kc3TfVpnmoBjJzB+kp1MgD6fVkj8k6ITDAnM1FtJF4j+ibbjhQoF4aQ6pCjOK+L2lWohFoSe/i58U6ecvmlm5f4syFnHq/yQuvcAppAGB4uGUnN+JVY/3TXEZcmUKSj85rGErH+igFDL84nhByS4hioJEwL0CIt3FU6wQZ6Oo0dbfHiimlLEf4peFGZiFxyolHUHaPioWYj
docker-compose up
INCOMING mail server:
(IMAP/Pop3)
setting | your_input |
---|---|
Host Name | mail.domain.tld |
User Name | postmaster@domain.tld |
Password | your-password |
OUTGOING mail server:
(SMTP, Outlook/Thunderbird/Mail/etc for example)
setting | your_input |
---|---|
Host Name | mail.domain.tld |
User Name | postmaster@domain.tld |
Password | your-password |
Use SSL | on |
Authentication | Password |
Server Port | 465 |
Good Luck *_v