Bug Report
Context
Mailbox contents remain in maildata subdirectory after running sudo ./setup.sh email del [email protected].
What is affected by this bug?
Deleting mailboxes.
When does this occur?
When deleting a mailbox with the setup.sh script.
How do we replicate the issue?
sudo ./setup.sh email del [email protected]
Password:
sed: can't read /tmp/docker-mailserver/postfix-virtual.cf: No such file or directory
Do you want to delete the mailbox as well(all mails will be removed)?(y/n) y
Mailbox deleted.
Check contents of maildata subdirectory.
Behavior
Actual Behavior
The mailbox is no longer listed when running sudo ./setup.sh email list. But the test mailbox and its contents are still in the maildata subdirectory.
Expected Behavior
The mailbox contents should have been deleted.
Your Environment
Synology DS918+ with latest DSM and Docker version 18.09.8, build bfed4f5.
Environment Variables
---
version: "2"
# Define services
services:
roundcubemail:
image: roundcube/roundcubemail:latest
container_name: roundcubemail
restart: unless-stopped
volumes:
- /v/d/roundcube/www:/var/www/html
- /v/d/roundcube/sqlite:/var/roundcube/db
ports:
- 127.0.0.1:8000:80
environment:
- ROUNDCUBEMAIL_DB_TYPE=sqlite
- ROUNDCUBEMAIL_SKIN=elastic
- ROUNDCUBEMAIL_DEFAULT_HOST=ssl://mail.example.com
- ROUNDCUBEMAIL_SMTP_SERVER=ssl://mail.example.com
- ROUNDCUBEMAIL_DEFAULT_PORT=993
- ROUNDCUBEMAIL_SMTP_PORT=465
solr:
container_name: mailserver_solr
image: lmmdock/dovecot-solr:latest
volumes:
- /v/d/solr-dovecot:/opt/solr/server/solr/dovecot
restart: always
mailserver:
image: docker.io/mailserver/docker-mailserver:latest
hostname: mail
domainname: example.com
container_name: mailserver
ports:
- "465:465"
- "993:993"
volumes:
- /v/d/mailserver/maildata:/var/mail
- /v/d/mailserver/mailstate:/var/mail-state
- /v/d/mailserver/maillogs:/var/log/mail
- /v/d/mailserver/config:/tmp/docker-mailserver/
- /v/d/ssl/output:/tmp/ssl:ro
- /v/d/mailserver/solr-dovecot/10-plugin.conf:/etc/dovecot/conf.d/10-plugin.conf:ro
environment:
- SSL_TYPE=manual
- SSL_CERT_PATH=/tmp/ssl/fullchain.pem
- SSL_KEY_PATH=/tmp/ssl/privkey.pem
- POSTFIX_MESSAGE_SIZE_LIMIT=102400000
- ENABLE_SPAMASSASSIN=0
- ENABLE_CLAMAV=0
- ENABLE_FAIL2BAN=0
- ENABLE_POSTGREY=0
- ENABLE_SASLAUTHD=0
- ONE_DIR=1
- DMS_DEBUG=0
cap_add:
- NET_ADMIN
- SYS_PTRACE
restart: always
Workaround?
Contents of mailbox are deleted when running sudo docker exec mailserver rm -R /var/mail/example.com/test/ afterwards.
Bug Report
Context
Mailbox contents remain in
maildatasubdirectory after runningsudo ./setup.sh email del [email protected].What is affected by this bug?
Deleting mailboxes.
When does this occur?
When deleting a mailbox with the
setup.shscript.How do we replicate the issue?
Check contents of
maildatasubdirectory.Behavior
Actual Behavior
The mailbox is no longer listed when running
sudo ./setup.sh email list. But thetestmailbox and its contents are still in themaildatasubdirectory.Expected Behavior
The mailbox contents should have been deleted.
Your Environment
Synology DS918+ with latest DSM and Docker version 18.09.8, build bfed4f5.
Environment Variables
Workaround?
Contents of mailbox are deleted when running
sudo docker exec mailserver rm -R /var/mail/example.com/test/afterwards.