Solved

SMTP relay for trusted I.P. addresses

Posted on 2004-10-08
1
274 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
ID: 12261885
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
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.

840 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