OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: restrict sending of mails

From: /dev/rob0 (rob0gmx.co.uk)
Date: Wed Nov 23 2005 - 12:50:34 CST


On Wednesday 2005-November-23 12:18, Robert Cerny wrote:
> I'm trying to restrict sending of emails to some domains (gmail.com,
> hotmail.com, etc.) for some users. I did find some info on postfix
> web pages <http://www.postfix.org/RESTRICTION_CLASS_README.html> but

DEBUG_README might help, as well as SMTPD_ACCESS_README.

> I cannot solve following problem:
>
> I did create a local_domains file with following contents:
>
> gmail.com REJECT
> hotmail.com REJECT

And how are you calling this file?

> but I need to add 'everything else is OK'. Does anyone have an idea
> how to do it?

Easily. Add a permitting restriction ("permit", oddly enough, would
serve the purpose) after you call this local_domains file as a
check_recipient_access restriction.

> I did try a lot of options but nothing work.

You didn't mention what you tried. You didn't post "postconf -n". You
didn't post logs.
--
    mail to this address is discarded unless "/dev/rob0"
    or "not-spam" is in Subject: header