OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Re: smtp_*_restrictions / relay_domains
From: Ralf Hildebrandt (news-list.postfix.usersinnominate.de)
Date: Fri Sep 29 2000 - 17:12:26 CDT


On 28 Sep 2000 15:32:51 +0200, Timothy O'Sullivan <Timokana.com> wrote:
>postfix is running on a server with clients sending and receiving mail no
>problem.
>I need to limit the server from sending mail to any other domain then it's
>own.

Why not simply use a

... other restrictions ...
check_recipient_access hash:/etc/postfix/recipient_access
reject
# this is the last restriction

and in recipient_access

bar.com OK

???

>the server's domain is "im.foo.bar.com" and it needs to send mail to other
>server within the
>bar.com domain and subdomains from there down, useing internal dns mx
>records.
>I need to prevent this machine from sending email outside the company. (ie:
>anything outside bar.com)
>I've tried relay_domains, transport (postmap), smtpd_recipient_restrictions,
>relay_domain
>I'm still missing something. Perhaps improper syntax in the main.cf or the
>text file prior to running postmap to create the *.db file
>
>Tim
>

-- 
ralf.hildebrandtinnominate.de
Dipl.-Informatiker                                       innominate AG
system engineer                                      networking people
tel: +49.30.308806-62  fax: -77   http://innominate.de  pgp at request