Quote:
Originally Posted by timothyalangorman Is there a spamassasin way to do this... I understand that thsi is not a SA forum so I'll move over these if everyone thinks I'm nutz. |
Well, I'm not so sure about SA, but there are Postfix ways of doing this, and perhaps Amavisd ways of doing this.
However, we have a similar desire at my workplace (or at least, the higher-ups do, I just do what I'm told ;-)
Rather than deal with maintaining a list of users in Postfix or Amavis or whatever, what we did was make up our own domain name suffix... instead of domainname.com, we named it domainname.internal.
Then, we setup our DNS servers so that domainname.internal's MX record pointed to our Zimbra server.
So now, the only people who could send email to anyone with a
user@domainname.internal address are those using our internal DNS servers.
If that's undesirable for whatever reason, Postfix can solve it too.
In Zimbra's main.cf, you'd need a smtpd_recipient_restrictions line with a check_sender_access statement to specify who can send external mail.
To restrict who can receive messages, you'd want to add a smtpd_restriction_classes and check_recipient_access line.
I haven't done this in Zimbra, but there's no reason I can think of that should prevent it from working.
Hope that helps,
-Eric