[GH-ISSUE #39] How to configure multiple domain ? #22

Closed
opened 2026-02-25 23:39:38 +03:00 by kerem · 1 comment
Owner

Originally created by @jfg on GitHub (Mar 23, 2022).
Original GitHub issue: https://github.com/HaschekSolutions/opentrashmail/issues/39

Hi,

First, thanks for your job.

I would like to configure multiple domain and tried this command :

docker run -d --restart=unless-stopped --name opentrashmail -e "DOMAINS=test.fr, test2.fr test3.fr" -e "DATEFORMAT='D.M.YYYY HH:mm'" -e "DISCARD_UNKNOWN=true" -e "DELETE_OLDER_THAN_DAYS=1" -p 80:80 -p 25:25 hascheksolutions/opentrashmail

But that did not works.

Is it possible ?

Thanks

Originally created by @jfg on GitHub (Mar 23, 2022). Original GitHub issue: https://github.com/HaschekSolutions/opentrashmail/issues/39 Hi, First, thanks for your job. I would like to configure multiple domain and tried this command : `docker run -d --restart=unless-stopped --name opentrashmail -e "DOMAINS=test.fr, test2.fr test3.fr" -e "DATEFORMAT='D.M.YYYY HH:mm'" -e "DISCARD_UNKNOWN=true" -e "DELETE_OLDER_THAN_DAYS=1" -p 80:80 -p 25:25 hascheksolutions/opentrashmail` But that did not works. Is it possible ? Thanks
kerem closed this issue 2026-02-25 23:39:38 +03:00
Author
Owner

@geek-at commented on GitHub (Mar 25, 2022):

Yes it should work. But try it without spaces and also you forgot a colon.

Try this: docker run -d --restart=unless-stopped --name opentrashmail -e "DOMAINS=test.fr,test2.fr,test3.fr" -e "DATEFORMAT='D.M.YYYY HH:mm'" -e "DISCARD_UNKNOWN=true" -e "DELETE_OLDER_THAN_DAYS=1" -p 80:80 -p 25:25 hascheksolutions/opentrashmail

<!-- gh-comment-id:1079450426 --> @geek-at commented on GitHub (Mar 25, 2022): Yes it should work. But try it without spaces and also you forgot a colon. Try this: `docker run -d --restart=unless-stopped --name opentrashmail -e "DOMAINS=test.fr,test2.fr,test3.fr" -e "DATEFORMAT='D.M.YYYY HH:mm'" -e "DISCARD_UNKNOWN=true" -e "DELETE_OLDER_THAN_DAYS=1" -p 80:80 -p 25:25 hascheksolutions/opentrashmail`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentrashmail#22
No description provided.