Solved

Receiving mail with postfix

Posted on 2003-11-09
6
250 Views
Last Modified: 2010-04-21
I am sure I am doing something very simple, but I cannot get postfix to accept outside mail. It is being rejected.

I have myhostname and mydomain set
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain

Which is all I can find in any docs to set, i have played with a bunch of other settings to but keep getting the mail rejected.. here is the bounce back the emails get:

Recipient address rejected: Relay access denied
Giving up on


Any help would be greatly appreciated at this time

Thank you
0
Comment
Question by:SteveL5
6 Comments
 
LVL 20

Accepted Solution

by:
Gns earned 63 total points
Comment Utility
Postfix by default will not act as an open relay... This is what is "biting" you.

It will only relay between two "trusted" clients, and between a trusted client and a "stranger" client. It will reject anything that it thinks is between two "stranger" clients.
Left to the defaults this would probably mean that the subnet for the interface you bind postfix to (if you have more than one, perhaps all of them) would be trusted.
Try setting the network(s) explicitly with
mynetworks = x.x.x.x/m, y.y.y.y/n
where x.x.x.x/m and y.y.y.y/n would be the subnets you intend to relay for (in CIDR-like notation... 192.168.0.0/24 ...).

Tell a bit more about your topology, and how you plan to "route" mail, and perhaps we can be more specific than this:-).

-- Glenn
0
 
LVL 12

Expert Comment

by:mburdick
Comment Utility
It's quite a lengthy thread, but there's a lot of meat...

http://www.experts-exchange.com/Operating_Systems/Linux/Linux_Setup/Q_20749169.html

Anything that this thread doesn't answer (or any new questions it raises), post 'em here and I'll take care of 'em.
0
 
LVL 2

Expert Comment

by:arecord
Comment Utility
mydestination = $myhostname, localhost.$mydomain $mydomain
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
Comment Utility
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Answered by Gns
Please leave any comments here within the next four days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

khkremer
EE Cleanup Volunteer
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
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 …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

771 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