Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

SMTP relay for trusted I.P. addresses

Posted on 2004-10-08
1
Medium Priority
?
290 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 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month9 days, 2 hours left to enroll

877 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