Wietse Venema wrote:
Claudio Prono:
Hi to all,
Just a question, there is any method to limit the outgoing mails ?
Something like domain.com allowed, domain.net not allowed, or
u...@domain.com allowed, u...@domain.net not allowed. And this can be
done for each user?

Postfix enforces such limits while RECEIVING mail:

    http://www.postfix.org/SMTPD_ACCESS_README.html

To stop mail from out-of-control web applications, use spam filters
as discussed today in the "lost credentials" thread.

If is possible, there is any web based or similar tool to manage this thing?

Gui support is not included.

        Wietse


I use this procedure to acomplish who one domain can send internet email and one domain can send only local mail.

r...@imss:~$ vi /etc/postfix/main.cf

smtpd_recipient_restrictions =
check_sender_access hash:/etc/postfix/Custom/sender_deny
permit_mynetworks,
permit_sasl_authenticated,
reject_unauth_destination

smtpd_client_restrictions =
permit_sasl_authenticated,
reject_unknown_client


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

r...@imss:~$ cat /etc/postfix/Custom/local_domains
###
# Acuerdate: postmap /etc/postfix/Custom/local_domains
###

xxx.lan OK
xxx.es OK

###
# Acuerdate: postmap /etc/postfix/Custom/sender_deny
###

os...@xxx.lan local_only

###
# Acuerdate: postmap /etc/postfix/Custom/virtual
###

os...@xxx.es oscar.xxx
os...@xxx.lan oscar.xxx

Reply via email to