Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow recepient domains #53

Closed
demigor opened this issue Jan 29, 2021 · 3 comments
Closed

Allow recepient domains #53

demigor opened this issue Jan 29, 2021 · 3 comments

Comments

@demigor
Copy link

demigor commented Jan 29, 2021

Hi,

I'm new to postfix so any help would be appreciated.
I need to limit postfix to send mails only to specific domains only. We use it as a development SMTP server and don't want to send mails outside the company.

Is it possible to configure docker container with postfix to somehow limit target domains (white list).

Thank you,
Kind regards

@bokysan
Copy link
Owner

bokysan commented Jan 29, 2021

If you're in need of a development SMTP server, may I suggest Sendria, MailHog or MailCatcher?

@demigor
Copy link
Author

demigor commented Jan 29, 2021

Thank you for the hint, we may use MailHog for real mail testing functionality.

However what we want is not exactly what development SMTPs (Sendria, MailHog, MailCatcher) currently offer.
We want to white list target domains, so any other mails should not leave the company.

This is somehow possible with postfix, because there is already ALLOWED_SENDER_DOMAINS parameter.
I just cannot find something like ALLOWED_RECEPIENT_DOMAINS.

Kind regards

@bokysan
Copy link
Owner

bokysan commented Jan 29, 2021

Sorry,

this kind of functionality is outside of the scope of this image. This, however, might be supported by Postfix itself and you can influence it either by setting POSTFIX_<name> variables and/or putting your init scripts into a /docker-init.db directly.

I suggest you look at:

and/or ask with your local devops/Linux groups.

@bokysan bokysan closed this as completed Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants