Hey! I installed the latest docker-mailserver and nearly everything works fine.
I am able to send and receive mails. but when sending emails the FROM value looks a little bit weird..
My Dockerhost's hostname is id.vendor.com
My Docker's is mail.host.com
I have mydomain.com which MX records points to id.vendor.com
My account [email protected] exists, [email protected] not.
Is this an expected behavior? Some clients(rainloop eg) are not displaying the senders name, they display the weird from value. Thunderbird's source code view states from as my original email and return-path as the weird one.
When you need further information please feel free to ask :)
docker_compose.yml:
version: '2'
services:
mail:
image: tvial/docker-mailserver:latest
hostname: mail
domainname: host.com
container_name: mail
ports:
- "25:25"
- "143:143"
- "587:587"
- "993:993"
- "4190:4190"
volumes:
- maildata:/var/mail
- mailstate:/var/mail-state
- ./config/:/tmp/docker-mailserver/
- /etc/letsencrypt/:/etc/letsencrypt/
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
environment:
- ENABLE_SPAMASSASSIN=1
- ENABLE_CLAMAV=1
- ENABLE_FAIL2BAN=1
- ENABLE_MANAGESIEVE=1
- ENABLE_POSTGREY=1
- SSL_TYPE=letsencrypt
- ONE_DIR=1
- DMS_DEBUG=0
- OVERRIDE_HOSTNAME=id.vendor.com
cap_add:
- NET_ADMIN
- SYS_PTRACE
restart: always
Mail log:
Feb 19 14:17:14 mail postfix/submission/smtpd[1715]: 3474D201015: client=client.domain.com[CLIENT_IP], sasl_method=PLAIN, [email protected]
Feb 19 14:17:14 mail postfix/sender-cleanup/cleanup[1721]: 3474D201015: message-id=<[email protected]>
Feb 19 14:17:14 mail postfix/sender-cleanup/cleanup[1721]: 3474D201015: replace: header MIME-Version: 1.0 from client.domain.com[CLIENT_IP]; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<[SOME_IP]>: Mime-Version: 1.0
Feb 19 14:17:14 mail opendkim[257]: 3474D201015: DKIM-Signature field added (s=mail, d=mydomain.com)
Feb 19 14:17:14 mail postfix/qmgr[1133]: 3474D201015: from=<[email protected]>, size=357, nrcpt=1 (queue active)
Feb 19 14:17:14 mail postfix/submission/smtpd[1715]: disconnect from client.domain.com[CLIENT_IP] ehlo=2 starttls=1 auth=1 mail=1 rcpt=1 data=1 quit=1 commands=8
Feb 19 14:17:14 mail dovecot: imap([email protected]): Logged out in=1574 out=2668
Feb 19 14:17:15 mail postfix/smtpd[1731]: connect from localhost[127.0.0.1]
Feb 19 14:17:15 mail postfix/smtpd[1731]: 16F11201017: client=localhost[127.0.0.1]
Feb 19 14:17:15 mail postfix/cleanup[1732]: 16F11201017: message-id=<[email protected]>info
Feb 19 14:17:15 mail postfix/qmgr[1133]: 16F11201017: from=<[email protected]>, size=1076, nrcpt=1 (queue active)
Feb 19 14:17:15 mail amavis[1037]: (01037-01) Passed CLEAN {RelayedOpenRelay}, [CLIENT_IP]:24887 [CLIENT_IP] <[email protected]> -> <[email protected]>, Queue-ID: 3474D201015, Message-ID: <[email protected]>, mail_id: OZYKbL-x9f1B, Hits: 5.356, size: 850, queued_as: 16F11201017, 773 ms
Feb 19 14:17:15 mail postfix/smtp[1724]: 3474D201015: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.93, delays=0.15/0.01/0.01/0.77, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 16F11201017)
Feb 19 14:17:15 mail postfix/qmgr[1133]: 3474D201015: removed
Feb 19 14:17:16 mail postfix/smtp[1735]: Trusted TLS connection established to mail.target.com[TARGET_IP]:25: TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)
Feb 19 14:17:16 mail postfix/smtp[1735]: 16F11201017: to=<[email protected]>, relay=mail.target.com[TARGET_IP]:25, delay=1.1, delays=0.02/0.02/0.9/0.14, dsn=2.0.0, status=sent (250 ok: Message 150692822 accepted)
Feb 19 14:17:16 mail postfix/qmgr[1133]: 16F11201017: removed
Hey! I installed the latest docker-mailserver and nearly everything works fine.
I am able to send and receive mails. but when sending emails the FROM value looks a little bit weird..
My Dockerhost's hostname is id.vendor.com
My Docker's is mail.host.com
I have mydomain.com which MX records points to id.vendor.com
My account [email protected] exists, [email protected] not.
Is this an expected behavior? Some clients(rainloop eg) are not displaying the senders name, they display the weird from value. Thunderbird's source code view states from as my original email and return-path as the weird one.
When you need further information please feel free to ask :)
docker_compose.yml:
Mail log: