Relay messages from remote client to anywhere with postfix
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.