Simplified version of docker-mailserver to run internally as a relay server. Intended usage: allow a QNAP device (which must be provided a name and password when adding a SMTP service) to send mails in a intranet where authentication is not required and the DNS name of the device is used as the user.
This image allows user to sue plain and login auth methods.
/var/mail/${domain}/${username}/var/mail for data persistence[email protected])./postfix/accounts.cf./postfix/virtualdocker pull crivella1/docker-mailserver
docker build -t crivella1/docker-mailserver .
docker run --name mail -v "$(pwd)/postfix":/tmp/postfix -p "25:25" -p "143:143" -p "587:587" -p "993:993" -h mail.my-domain.com -t crivella1/docker-mailserver
mail:
# image: crivella1/docker-mailserver
build: .
hostname: mail
domainname: my-domain.com
ports:
- "25:25"
- "143:143"
volumes:
- ./postfix:/tmp/postfix/
Volumes allow to:
docker-compose up -d mail
# imap
username: <[email protected]>
password: <username1password>
server: <your-server-ip-or-hostname>
imap port: 143
imap path prefix: INBOX
auth method: plain login md5 challenge-response
# smtp
smtp port: 25
username: <[email protected]>
password: <username1password>
auth method: md5 challenge-response
Content type
Image
Digest
sha256:816788d7f…
Size
123.2 MB
Last updated
almost 3 years ago
docker pull crivella1/docker-mailserver