Solved

SMTP relay for trusted I.P. addresses

Posted on 2004-10-08
1
265 Views
Last Modified: 2013-12-16
I have a postfix email server up and running. My users have just been using webmail for the last 6 months. I have pop3 up and running now and I would like to get SMTP relaying for a few trusted I.P. address. Basically I am acting as an ISP for 3 other companies that sit behind static I.P. addresses. I do not see a need to configure a complete Cyrus-SASL authintication setup because these users will only be using the SMTP server from within these 3 companies. Would someone mind telling me the safest way to do this with postfix? Can I just safely add the 3 I.P. address of the remote sites to mynetworks?

Thanks,
DMS
0
Comment
Question by:DMS-X
1 Comment
 
LVL 17

Accepted Solution

by:
owensleftfoot earned 500 total points
Comment Utility
Yeah, that would do it. From the docs.

You can specify the list of trusted networks in the main.cf file, or you can let Postfix deduce the list for you. The default is to let Postfix do the work for you.

Default:
    mynetworks_style = subnet

The meaning of the styles is as follows:

class
    Trust SMTP clients in the class A/B/C networks that Postfix is connected to. Don't do this with a dialup site - it would cause Postfix to "trust" your entire provider's network. Instead, specify an explicit mynetworks list by hand, as described below.

subnet (default)
    Trust SMTP clients in the IP subnetworks that Postfix is connected to.

host
    Trust only the local machine.

Alternatively, you can specify the mynetworks list by hand, in which case Postfix ignores the mynetworks_style setting. To specify the list of trusted networks by hand, specify network blocks in CIDR (network/mask) notation, for example:

    mynetworks = 168.100.189.0/28, 127.0.0.0/8

You can also specify the absolute pathname of a pattern file instead of listing the patterns in the main.cf file.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now