how to stop certain users from receiving mail from various domains?

This is a discussion on how to stop certain users from receiving mail from various domains? within the alt.comp.mail.postfix forums, part of the Mail Servers and Related category; Hi all, I've configured a mail server running Postfix and it's able to do the following: - allow users ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.postfix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-29-2008
Ecka
 
Posts: n/a
Default how to stop certain users from receiving mail from various domains?

Hi all,

I've configured a mail server running Postfix and it's able to do the
following:

- allow users listed in restricted_senders (below) to email domains listed
in local_domains (below)
- those not listed below can email anyone and receive emails from everyone

local_domains
-------------
domain1.com OK
domain2.com OK


restricted_senders
------------------

user1@mydomain.com local_only
user2@mydomain.com local_only


main.cf
-------
smtpd_recipient_restriction = check_sender_access
hash:/etc/postfix/restricted_senders, permit_mynetworks,
check_relay_domains, check_recipient_access maptype:mapname,
reject_non_fqdn_recipient, reject_unknown_recipient_domain

smtpd_restriction_classes = local_only

local_only = check_recipient_access hash:/etc/postfix/local_domains, reject

I'd like to be able to restrict the users listed in restricted_senders from
receiving emails from everyone. I'd like them to be able to only receive
emails from domains listed in local_domains. I tried adding
"check_recipient_access hash:/etc/postfix/restricted_senders" to
smtpd_recipient_restriction but it doesn't work. Does anyone know how to do
this?

Thanks in advance
Eric

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:40 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0