Rasjid Wilcox <[EMAIL PROTECTED]> said:

> and the other lines say
> ...:allow,MAILRULES="/etc/mailrules/external.rules"
>
> I think that will do the trick.

That's certainly helping fill in the gaps :-)

I'll just add that Mitel is templated so what you need to look at is
actually the templated files and the way Mitel does things.

Appears they use a file named /etc/tcprules/tcp.smtp which is templated here:

/etc/e-smith/templates/etc/tcprules/tcp.smtp
10localhost
20norelayFromRouter
80relayFromLocalNetwork
90default
template-begin

The resulting /etc/tcprules/tcp.smtp file looks like:

# cat /etc/tcprules/tcp.smtp
127.0.0.1:allow,RELAYCLIENT=""
192.168.1.10:allow,RELAYCLIENT=""
192.168.1.:allow,RELAYCLIENT=""
:allow,MAILRULES="/var/qmail/control/mailrules.default"

The last line above is from 90default. I suppose this means 'from any
source', allow and use the mailrules.default file.  My next guess is we need
to define multiple rules files based on IP so we may have something like
this (xxx = extip):

192.168.1.:allow,MAILRULES="/var/qmail/control/mailrules.local"
xxx.xxx.xxx.:allow,MAILRULES="/var/qmail/control/mailrules.external"
:allow,MAILRULES="/var/qmail/control/mailrules.default"

I'm completely guessing here as this does not follow the mailfront docs
which state: 'The use of mail rules is controlled by the environment
variable $MAILRULES.'

Does anyone agree with the above?

Regards,

--
Darrell May
DMC Netsourced.com
http://myEZserver.com


--
Please report bugs to [EMAIL PROTECTED]
Please mail [EMAIL PROTECTED] (only) to discuss security issues
Support for registered customers and partners to [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Searchable archive at http://www.mail-archive.com/devinfo%40lists.e-smith.org

Reply via email to