Jump to content
Froxlor Forum
  • 0

Einzelne Email-Adressen "local_only"


lonesomewalker

Question

Ich brauche etwas Denkhilfe...

Einzelne Emailadressen sollen NUR an die eigene Domain senden dürfen, aber nicht nach extern.
Da das in froxlor leider noch nicht geht *mitdemzaunpfahlwink*, wird es wohl auf die main.cf rauslaufen.

So, als erstes muß die Abfrage wohl an erste Stelle der smtpd_relay/sender/recipient_restrictions ...?

check_client_access hash:/etc/postfix/client_access,

/etc/postfix/client_access:

user@domain1.tld	domain1_only
user@domain2.tld	domain2_only

Danach kann ich ja beliebig viele smtpd_restriction_classes in der main.cf erzeugen

smtpd_restriction_classes = domain1_only, domain2_only

welchen ich dann je nach Bedarf sogar mehrere Empfänger-Domains erlauben könnte

domain1_only = check_recipient_access hash:/etc/postfix/domain1_domains, reject
domain2_only = check_recipient_access hash:/etc/postfix/domain2_domains, reject

/etc/postfix/domain1_domains:

domain1.tld	OK

So korrekt?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...