LinuxQuestions.org
Review your favorite Linux distribution.
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 05-23-2005, 02:34 PM   #1
littlenicker
LQ Newbie
 
Registered: Apr 2005
Posts: 8

Rep: Reputation: 0
Unhappy 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.
 
Old 05-23-2005, 05:38 PM   #2
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
have you looked at domain routing?
mailertable
 
Old 05-24-2005, 05:17 AM   #3
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
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.
 
Old 05-25-2005, 11:45 AM   #4
littlenicker
LQ Newbie
 
Registered: Apr 2005
Posts: 8

Original Poster
Rep: Reputation: 0
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_')
 
  


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
sendmail , the /etc/mail/relay-domains File kernelvn Linux - Networking 4 05-04-2005 12:25 PM
relay mail to sendmail relay server??? lemay_jeff Linux - Newbie 0 07-06-2004 04:54 PM
Postfix upgrade from 1.x to 2.0.19 can't relay to external domains issinflight Linux - Software 0 04-19-2004 10:42 PM
Relay email for specific domains to an external address on a non-standard port BaDaBooM Linux - Networking 2 03-18-2003 10:40 PM
Sendmail: relay-domains question d3funct Linux - General 0 02-22-2002 11:36 AM

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

All times are GMT -5. The time now is 03:39 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