LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-04-2003, 02:25 PM   #1
mogumbo
LQ Newbie
 
Registered: Feb 2003
Distribution: RedHat 8.0
Posts: 13

Rep: Reputation: 0
Relay messages from remote client to anywhere with postfix


I'm connected to the internet at home with DSL and using Mozilla mail with IMAP. I'm trying to configure postfix on a machine in a different domain. Right now I can receive mail from anywhere, but I can only send it anywhere if I ssh to the mail server and send it from there. If I try to send a mail with Mozilla from here at home I can only send it to addresses under the domain that the mail server machine is on.

If I try to send from here at home with Mozilla to anywhere else in the world I get the message:

"An error occurred while sending mail. The mail server responded: <joe@blow.com>: Recipient address rejected: Relay access denied. Please check the message recipients and try again."

I've been reading posts for hours and I've tried playing with the files network_table, relay_domains , destinations, and main.cf. No luck so far.

Can anyone tell me *specifically* how to make this work? All I can find in all the posts I've read are little pieces of this puzzle, and none of them seem to work.
 
Old 12-04-2003, 02:37 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Take a look at:
http://www.postfix.org/basic.html#relaying

More specificly:
http://www.postfix.org/basic.html#mynetworks
 
Old 12-04-2003, 02:54 PM   #3
mogumbo
LQ Newbie
 
Registered: Feb 2003
Distribution: RedHat 8.0
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks for the reply David. I read a lot of that stuff on postfix.org last night. Right now I have

main.cf:mynetworks = hash:/etc/postfix/network_table
network_table:xxx.xxx.0.0/16 relay

There are, of course, numbers instead of x's to identify my DSL ip. And I did that "postmap network_table" thing, which builds network_table.db. But none of that has fixed the problem.
 
Old 12-04-2003, 07:06 PM   #4
mogumbo
LQ Newbie
 
Registered: Feb 2003
Distribution: RedHat 8.0
Posts: 13

Original Poster
Rep: Reputation: 0
Okay, I fixed this one on accident. On a whim, I did an nslookup and replaced my home computer's IP with it's domain name in the network_table file. I don't know why it worked, but it did. So I guess under some conditions you have to use a domain name instead of an IP.

I still don't know how secure this is. I still have to log into IMAP with my password, so I believe this prevents other people on the same DSL domain from relaying through my mail server. Please correct me if I'm wrong about this.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[postfix] allow relay from 1 ip narmida Linux - Software 3 12-01-2005 12:20 PM
Postfix as a mail relay (getting relay access denied) hypexr Linux - Software 3 09-13-2005 07:15 PM
Postfix Relay eeades Linux - Software 0 02-01-2005 03:44 PM
Postfix - Open relay or not? darklogik_org Linux - Software 2 01-29-2004 05:30 AM
relay postfix SkYzOpReNiCk Linux - Networking 5 01-22-2002 10:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration