In the pre-commercial Internet, systems lacked direct connections. Emails for system D would be sent from system A to system B, and then to system C before being delivered to system D. The act of accepting an email on behalf of another is called relaying. The machines were acting as relays. Administrators configured their machines to relay as a matter of courtesy to others. By taking part in this relaying mechanism, the entire community shared the load.
The exploitation of relays by spammers led to administrators tightening up security and refusing to accept email from an unknown source, unless it was being sent to a local user. The machines still had to accept email for local users that was addressed to and from other domains.
A server should accept all email from its local users. Apart from that, it should only accept email for users or domains that it can deliver to. Accepting emails for other domains makes the server an open relay.
The MTA should be configured to:
Accept...