So, until now I've been using an "accept all" rule for MTA functionality. Specifically:

        accept from local for any relay hostname $HOSTNAME

Which was fine when I was the only one using the server, but now that I'm adding potentially untrustworthy users, I don't want any authenticated user to be able to send mail as any other user. Ideally, if I had an entry for `[email protected]` in my passwd file, then a user logged in as `[email protected]` would only be able to send mail with the sender `[email protected]` and any other address would be rejected.

My first attempt at this went a little something like:

        accept from local for any relay as "%{user.username}" hostname $HOSTNAME

But from looking at my logs, it appears that variable expansion isn't being done in the relay "as" statement.

The docs seem particularly vague on doing something like this. Has anyone achieved this?

Thanks,
Josh Kunz

--
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]

Reply via email to