Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-23-2005, 02:34 PM
|
#1
|
|
LQ Newbie
Registered: Apr 2005
Posts: 8
Rep:
|
Sendmail Relay-Domains From External Server
Here's my situation:
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.
|
|
|
|
05-23-2005, 05:38 PM
|
#2
|
|
Senior Member
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-13.1
Posts: 1,010
Rep:
|
have you looked at domain routing?
mailertable
|
|
|
|
05-24-2005, 05:17 AM
|
#3
|
|
Member
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620
Rep:
|
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.
|
|
|
|
05-25-2005, 11:45 AM
|
#4
|
|
LQ Newbie
Registered: Apr 2005
Posts: 8
Original Poster
Rep:
|
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.
#
#
divert(0)
VERSIONID(`$Id: mailertable.m4,v 8.18 1999/07/22 17:55:35 gshapiro Exp $')
divert(-1)
define(`_MAILER_TABLE_', `')
LOCAL_CONFIG
# Mailer table (overriding domains)
Kmailertable ifelse(defn(`_ARG_'), `',
DATABASE_MAP_TYPE MAIL_SETTINGS_DIR`mailertable',
`_ARG_')
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:15 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|