Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Mar 29, 2007 8:34 pm 
Offline
Senior Member
User avatar

Joined: Wed Jan 24, 2007 12:04 am
Posts: 90
Website: http://www.smiffysplace.com
Location: Rural South Australia
I've always been a bit suspect of the Postfix mynetworks option - should it not be myhosts?

That aside, my real question is this:

If I am specifying mynetworks and want to include single hosts (like my Linodes and not everyone else at the data centre), do I just put the IP addresses in thus?

mynetworks = 127.0.0.0/8, 192.168.1.9, 10.8.6.88


Top
   
 Post subject:
PostPosted: Fri Mar 30, 2007 12:54 am 
Offline
Senior Newbie

Joined: Fri Jun 24, 2005 6:46 pm
Posts: 14
I think you can use normal IP addresses. This was cut and pasted from ORA's Postfix, the Definitive Guide:

Quote:
By default Postfix is not an open relay. The parameters mynetworks_style and mynetworks determine what other systems can use your mail server to send messages. The default configuration allows relaying only from other machines that are connected to the same IP subnet as your server. You can limit or broaden the range of addresses that should be allowed to relay by setting the parameter mynetworks_style. If you prefer to limit relaying to the local machine only, set mynetworks_style to "host". You can also set mynetworks_style to "class" to allow relaying by any host within the same class A, B, or C network as your server. For many networks a class setting opens relaying to too many systems. If you aren't familiar with IP address classes, stick to the default "subnet" or more restrictive "host" settings.

Alternatively, you can explicitly indicate the hosts that should be allowed to relay mail by setting mynetworks. If you set mynetworks, the mynetworks_style parameter is ignored. You can list individual IP addresses or specify subnets using the network/netmask notation -- for example, 192.168.100.0/28. This parameter is handy if you need to provide mail relay to hosts outside of your network because you can list specific IP addresses regardless of their relationship to your own subnet. If, for example, you want to provide relaying to remote users, you simply add an IP address to your list. In this case, your remote users need a static IP address, or at least an address assigned from a limited range of addresses. If your remote users do not have static IP addresses, then you have to configure some kind of SMTP authentication.


Top
   
 Post subject:
PostPosted: Fri Mar 30, 2007 3:26 am 
Offline
Senior Member
User avatar

Joined: Wed Jan 24, 2007 12:04 am
Posts: 90
Website: http://www.smiffysplace.com
Location: Rural South Australia
Thanks - that's pretty much what I wanted.

I keep forgetting about my Safari subscription - I must get that book in my online bookcase an have a look. Thanks for the pointer to that, too.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group