These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for postfix: block emails to external addresses on the new forum.
I have two virtual hosts on one server. One of the hosts is used for internal networking only and the other host is an external site.
Eventually email will be used on both hosts but at the moment the internal host is the only one running email.
Emails are working fine through VPN. The issue is I am able to send emails from this internal host to real external FQDN email addresses. Is there a way restrict these email accounts from doing this?
I read that a possibility could be 'recipient_dependent_relayhost_maps' but I can't figure out the syntax or if you add it to 'Restrictions on recipient addresses'.
Thanks for any help.
Ubuntu Linux 12.04.2 Webmin version 1.610 Virtualmin version 3.98.gpl GPL
Hi Johnster,
The problem as described, "The issue is I am able to send emails from this internal host to real external FQDN email addresses. Is there a way restrict these email accounts from doing this?" is not clear.
Please clarify.
Hi miner,
Thanks for responding, I was wondering if there was a way to block users on one virtual host from sending email outside their domain?
Or is it better to somehow block the virtual host from communicating to the outside world. Only allow incoming/outgoing connections from localnets?
Hopefully that clears up the aim.
Try using a transport(5) table:
/etc/postfix/main.cf
transport_maps = hash:/etc/postfix/transport
etc/postfix/transport:
example.org :
* error:destination unauthorized