Allow receiving and sending of local mail, disable remote relay on postfix

6,151

Postfix is secured that way by default. You have to explicitly misconfigure it to be an so called open relay.

For different requirements there is a documentation about several common scenarios: http://www.postfix.org/STANDARD_CONFIGURATION_README.html

Share:
6,151

Related videos on Youtube

Logan
Author by

Logan

Updated on September 18, 2022

Comments

  • Logan
    Logan almost 2 years

    I just installed mutt and postfix on my server and I've been playing around with it. Now, however, I want to make sure that no one can remotely send mail with my server as a SMTP relay.

    I don't know that much about Mail servers, so for the sake of being overly clear, I want to be able to receive messages to local user accounts, send messages from local accounts to outside addresses, but not remotely send messages through the server.

    Currently it receives and send's messages just how I want it, but I haven't been able to find a clear way of only disabling remote relaying.

    Does anyone have any suggestions? It's a default installation of mutt and postfix, I can post any details you request. Thank you, all!

  • Logan
    Logan almost 12 years
    is relay_domains in main.cf? Where are all of those variables set? It looks like exactly what I need, but I can't test it until I get home.
  • Ssingh
    Ssingh almost 12 years
    yeah everything is in the main.cf. To check all the config parameters just run postconf