[clug] [PMX:#] Postfix tweaking

Michael James clug at james.st
Tue Aug 31 04:35:12 GMT 2004


On Tue, 31 Aug 2004 09:56 am, Collins, Steve wrote:

> Thanks for the mail server help the past few days.
> What I'd like to do now is tweak it a little
> so that internal mail (someone at industry.gov.au)
> doesn't go through the mail relay, and that others do.   

That sort of control lives in /etc/postfix/transport
 which provides an ordered list of destinations,
 and what to do with them.

Your wish is a bit difficult,
 as you want the matched domain to be unspecified, (no relay)
 and the wildcard to be relayed.
Maybe unsetting relayhost and using this will work.

#########################
#       /etc/postfix/transport
#

my-host.industry.gov.au   local:

industry.gov.au			smtp:
.industry.gov.au			smtp:

*              smtp:relay-host.industry.gov.au

#	end  /etc/postfix/transport
###########################





Otherwise see if you can have a ! (not) operator in the rules.

michaelj

-- 
Michael James                         michael.james at csiro.au
System Administrator                    voice:  02 6246 5040
CSIRO Bioinformatics Facility             fax:  02 6246 5166


More information about the linux mailing list