Skip to content

Restricting SMTP Relay (To) Domains #393

Closed Answered by sniper9191
sniper9191 asked this question in Q&A
Discussion options

You must be logged in to vote

I couldn't find any way to make use of the memberOf LDAP attribute.
However, I no longer needed to do this, so I gave up on it.

For the requirement to "require authentication for senders from any domain, except XYZ.com domain" -
this was tricky, as it was not possible to read the sender_domain before the AUTH stage is completed.
i.e. in order for senders using XYZ.com to be exempted from authentication, they first had to authenticate in order for the server check the sender's domain

I instead had to disable authentication == required at the AUTH stage
and during the next stage, MAIL, I added a script which then checks the envelope:to:domain, and exempts authentication if it is XYZ.com domain

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sniper9191
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant