Skip to main content

Name

prohibited_hosts — prevent mail from being delivered to invalid destinations

Synopsis

prohibited_hosts = ("127.0.0.1")

prohibited_hosts = ("127.0.0.1" "fe80::a00:1")

Description

Some providers use DNS tricks to deter systems they feel are abusing their resources. One technique is to return a loopback or other local address to you when you query their MX records.

There are some addresses you may never want to deliver mail to. For example, when configured as an outbound e-mail relay you have no reason to deliver mail to your own ip, or any loopback addresses on your machine. To prevent delivery to loopback addresses (127.0.0.0/8) or the null route 0.0.0.0, you can use the following line:

prohibited_hosts = ( "127.0.0.0/8" "0.0.0.0" )

Note

Note: This setting does not in any way affect where you can receive mail from, only where you can deliver mail to.

Scope

prohibited_hosts is valid in the global scope.

See Also

Was this page helpful?