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.
I have a network at home that uses a slackware server as the router. Therefore when I connect to another computer on the internet it shows up as connecting FROM my servers IP. (lets use 111.111.111.111 as my home server for now)
At work I have the same exact kind of network setup with a slackware server as the router as well. (lets call my works server 222.222.222.222) I use my home server for webhosting and have my work server setup to redirect there. (Due to lack of space)
This works perfectly, but now I am trying to setup my works server to be my outgoing mail server for all my computers on my HOME network. As of right now, all the computers behind the server at WORK use the server as the outgoing mail server and it works perfectly. I accomplished this by putting in my local IPs in the relay-domains file. (192.168.1)
I then added the ip address range from my home server (111.111.111) to relay-domains. However, when I try to send an email from home, the work server gives me a relaying denied error. I tried to be more specific. I put 111.111.111.111 into the relay-domains file (on my work server). Still gives me the same error.
How come my work server redirects emails from all the computers internally on my works network, but denies all emails coming from my HOME network? I have the IP address entered correctly in relay-domains
Any help would be greatly appreciated! Thanks in advance.
Are you sure you don't have those relay entries in /etc/mail/access? Thats where I would put them.
BTW: When you add entries to the relay-domains file, sendmail would need to be bounced. When you add entries to the access file, sendmail does NOT need to be bounced, just rebuild the access database.
I am using an older version of sendmail that did not already have /etc/mail/relay-domains or /etc/mail/access. I had to create both files myself. I first created /etc/mail/access and it did nothing. (probably because I did not rebuild the database, since there was no database there in the first place) I then created relay-domains and deleted access. This worked perfectly for my local network, but not external.
After some tweaking and rebooting of my works server, I finally was able to get my home computers to use it as an outgoing mail server. (I think) I have not fully tested it yet. Apparently it only works if you put the EXACT IP address in. Not just a partial IP for the external network.
Lastly, my mailertable file has nothing configurable in it. Here's what that looks like, let me know if you see something configurable:::
divert(-1)
#
# Copyright (c) 1998, 1999 Sendmail, Inc. and its suppliers.
# All rights reserved.
# Copyright (c) 1983 Eric P. Allman. All rights reserved.
# Copyright (c) 1988, 1993
# The Regents of the University of California. All rights reserved.
#
# By using this file, you agree to the terms and conditions set
# forth in the LICENSE file which can be found at the top level of
# the sendmail distribution.
#
#
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.