|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Jan Ková (webmaster
novibra.cz)Date: Fri Dec 14 2001 - 07:33:25 CST
Hello.
I have two groups of users in company. We have our own domain. All users
should be able to send e-mail each others. But one group should have the
right to send (accept) e-mail to (from) different domains and the second
only in our local domain.
I have found a solution in FAQ from restricting sending of e-mails. I have
in main.cf this:
smtpd_recipient_restrictions =
check_sender_access hash:/etc/postfix/restricted_senders
permit_mynetworks
check_relay_domains
smtpd_restriction_classes = local_only
local_only = check_recipient_access hash:/etc/postfix/local_domains, reject
In file "restricted_senders" I have this:
osouch
novibra.cz local_only
pulcova
novibra.cz local_only
// There are more adresses there but there is no need to list them all.
In file "local_domains" I have this:
novibra.cz OK
--------------------------------------------------
When sender is one of people listed in file "restricted_senders" he can send
only e-mail to someone
novibra.cz.
Now I would need for the people listed in file "restricted_senders" to
restrict accepting e-mails from different domains. The result should be,
when e-mail comes from different domain and the recipient is one of the
people listed in "restricted_senders" it should be send back with "User does
not exists".
Is it possible? I have found smtpd_recipient_restrictions parameter and
check_recipient_access in FAQ, but I do not understand how to use it. Can
anyone paste a small example?
Thank you.
Sicnerelly
<signature>
Jan Kovar - IT ADMIN
Novibra Boskovice s.r.o.
phone: +420501528118
email: webmaster
novibra.cz
www: http://www.novibra.cz/
</signature>
-
To unsubscribe, send mail to majordomo
postfix.org with content
(not subject): unsubscribe postfix-users
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]