Solved

Receiving mail with postfix

Posted on 2003-11-09
6
253 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
ID: 9716197
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
ID: 9736239
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
ID: 10010944
mydestination = $myhostname, localhost.$mydomain $mydomain
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 10303216
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

785 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