Internal use only

Julian Field MailScanner at
Wed Jan 30 22:09:25 GMT 2008

Hash: SHA1

Dimitri Yioulos wrote:
> Hi, folks.
> A particular department in our company wants to restrict its employees to 
> sending email to, and receiving it from, our domain only.  I came across a 
> post that discusses that, using and internal.accounts.conf 
> (at least to limit sending to domain only).  I have a couple of questions:
> do I add &InternalActions to the directives I already, as in:
> "Non Spam Actions = deliver &InternalActions"
> "Spam Actions = store deliver &InternalActions"
No, you can use either the standard options, eg "store deliver" or a 
Custom Function (&InternalActions), but not both at the same time. You 
need to read a bit more about how Custom Functions work, and how their 
return value is used.

> etc.?
> Does this also limit inbound messages to the user to domain mail only?  If 
> not, how do I accomplish that?
> Anthing else I should know/do to limit a user to domain mail only?
Read up about Custom Functions, then study and look at 
the code to see what it does and how it works. You need to understand a 
bit of Perl to be able to use your own Custom Functions properly. Sorry.


- -- 
Julian Field MEng CITP CEng
Buy the MailScanner book at

MailScanner customisation, or any advanced system administration help?
Contact me at Jules at Jules.FM

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
PGP public key:

Version: PGP Desktop 9.7.0 (Build 1012)
Comment: Use Thunderbird's Enigmail add-on to verify this message
Charset: ISO-8859-1


This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

More information about the MailScanner mailing list