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: limit access to one domain while others can send freely
From: Wietse Venema (wietseporcupine.org)
Date: Wed Feb 09 2000 - 05:30:51 CST


Right. I have put your fix in the FAQ example.

        Wietse

Claus Guttesen:
> Hi.
>
> I wrote a mail long ago regarding limitation to a specific domain, in my
> situation a subdomain for vessels.
>
> The proposed solution works fine although it was tweaked a bit.
>
> The line in main.cf called restriction_classes = vessel_restrictions had to
> be changed to smtpd_restriction_classes = ...
>
> That was indicated in the maillog-file with the entry warning: unknown smtpd
> restriction: "vessel_restrictions" so I changed that.
>
> Thank you for your support.
>
> regards
> Claus
>
>
> > /etc/postfix/main.cf:
> > restriction_classes = vessel_restrictions
> >
> > vessel_restrictions =
> > check_sender_access regexp:/etc/postfix/vessel_sender.regexp
> >
> > smtpd_recipient_restrictions =
> > hash:/etc/postfix/recipient_access
> > ... other restrictions...
> >
> > /etc/postfix/recipient_access:
> > vessel.my.domain vessel_restrictions
> >
> > /etc/postfix/vessel_sender.regexp:
> > /some\.domain$/ OK
> > /other\.domain$/ OK
> > /./ REJECT
>
> > Would all this solve the problem that you describe?
> >
> > Wietse
>
>
>