o4oren / Ad-Hoc-Email-Server

An ad-hoc disposable temporary mail server. Create and use ad hoc disposable mailboxes for testing or any other purpose.
Apache License 2.0
381 stars 92 forks source link

cannot add multiple allowed domains in docker-compose.yml #89

Closed PackingCenter closed 1 year ago

PackingCenter commented 1 year ago

Hi!

AHEM works properly only with one domain in format in docker-compose.yml

allowedDomains=domain.com

If i try use multiple domains, for example:

allowedDomains=domain1.com,domain2.com

or:

allowedDomains=["domain1.com","domain2.com"]

it doesnt work, i cant select domain.. Can anybody helps?

gcleaves commented 1 year ago

The correct format is this: allowedDomains=domain1.com,domain2.com

This works as designed. The server will allow incoming mail to any of those domains. All domains are treated as if they are the same. Email to @. and @. will go into the same "mailbox". The allowedDomains variable is not used to select a domain via the UI.

On Tue, Aug 22, 2023 at 4:25 PM PackingCenter @.***> wrote:

Hi!

AHEM works properly only with one domain in format in docker-compose.yml

allowedDomains=domain.com

If i try use multiple domains, for example:

allowedDomains=domain1.com,domain2.com

or:

allowedDomains=["domain1.com","domain2.com"]

it doesnt work, i cant select domain.. Can anybody helps?

— Reply to this email directly, view it on GitHub https://github.com/o4oren/Ad-Hoc-Email-Server/issues/89, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAH6GZKSGU3KK5GIJQAIRRLXWS6O5ANCNFSM6AAAAAA32APRZE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

PackingCenter commented 1 year ago

The correct format is this: allowedDomains=domain1.com,domain2.com This works as designed. The server will allow incoming mail to any of those domains. All domains are treated as if they are the same. Email to @. and @. will go into the same "mailbox". The allowedDomains variable is not used to select a domain via the UI. On Tue, Aug 22, 2023 at 4:25 PM PackingCenter @.> wrote: Hi! AHEM works properly only with one domain in format in docker-compose.yml allowedDomains=domain.com If i try use multiple domains, for example: allowedDomains=domain1.com,domain2.com or: allowedDomains=["domain1.com","domain2.com"] it doesnt work, i cant select domain.. Can anybody helps? — Reply to this email directly, view it on GitHub <#89>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAH6GZKSGU3KK5GIJQAIRRLXWS6O5ANCNFSM6AAAAAA32APRZE . You are receiving this because you are subscribed to this thread.Message ID: @.>

thanks, understand, checked this - all works good