Solved

Receiving mail with postfix

Posted on 2003-11-09
6
258 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

 Database Backup and Recovery Best Practices

Join Percona’s, Architect, Manjot Singh as he presents Database Backup and Recovery Best Practices (with a Focus on MySQL) on Thursday, July 27, 2017 at 11:00 am PDT / 2:00 pm EDT (UTC-7). In the case of a failure, do you know how long it will take to restore your database?

Question has a verified solution.

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

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
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,…
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

622 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