Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'It's easier than this hint says' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
It's easier than this hint says
Authored by: davidmorr on May 20, '04 01:05:41AM
Open up /etc/postfix/main.cf, and edit these lines to reflect your setup. These are examples from my setup; yours might be different.
  • LINE 67: myhostname = stibnite.oeyvind.org
  • LINE 75: mydomain = oeyvind.org
  • LINE 91: myorigin = $mydomain
  • LINE 105: inet_interfaces = all
  • LINE 152: mydestination = $myhostname, localhost.$mydomain
  • LINE 239: mynetworks_style = subnet
  • LINE 253: mynetworks = 192.168.0.0/23, 127.0.0.0/8
Save your work, and exit the file.
If your Mac is properly configured (ie, you provided host name and domain when you installed Panther), you do not need to change any of these values to get postfix to work. In every case, what has been changed here is exactly the default postfix will use if you do not change them.

The only thing you do have to change in main.cf is the lines:
# THE FOLLOWING DEFAULTS ARE SET BY APPLE
#
# bind to localhost only
#
inet_interfaces = localhost

# turn off relaying for local subnet
#
mynetworks_style = host
Comment out both of these lines by inserting a # in column 1 to prevent them overriding the values defined earlier in the file.

Stop and start postfix and you are in business.

David


[ Reply to This | # ]
re: It's easier than this hint says
Authored by: davidmorr on May 20, '04 01:53:25AM

It's probably not a good idea in general to allow your Mac to relay mail from anyone on your subnet. If one of those machines gets hacked, then it could start sending spam or worse through your Mac.

To prevent this, leave this line enabled:

# THE FOLLOWING DEFAULTS ARE SET BY APPLE
#
...
# turn off relaying for local subnet
#
mynetworks_style = host

Postfix will accept messages originating on the same machine for any Internet address. However, it will not accept mail from anywhere else unless the destination is an address on postfix's machine.

David



[ Reply to This | # ]