LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-26-2004, 10:15 AM   #1
spikes57
LQ Newbie
 
Registered: Feb 2004
Posts: 4

Rep: Reputation: 0
relaying in sendmail


Hi All,
I'm trying to set up my sendmail to relay mail on to an ms exchange box. all i want is for the server to accept mail and pass it on, but there are so many files, access . local-host-names . mailertable . etc can anyone just give me the basics eg. put the domain to relay in the access file.

also do i need to create local accounts for each user on the relayed domain? or will the relay just accept all mail addressed with that domain?

cheers,

spikes
 
Old 02-26-2004, 11:07 AM   #2
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
You don't need to create accounts. I do the same thing to a Lotus Domino Server to filter out spam.

You will need to add the domain name to the "relay-domains" file
yourcompany.net

You will need to add something like this to the mailertable file
.yourcompany.net smtp:10.22.15.2

(the smtp:10.22.15.2 is where your exchange server is).

You need to add and internal ip address or range in your access files
10.22.15 RELAY

Some other complications you may experience are internal DNS problems. If fixed that by using bind on the spam filter to get stuff flowing where it should.

You may have to change some stuff in your sendmail.cf/sendmail.mc file, but I can't remember for sure. I guess it depends on your default setup.

Last edited by benjithegreat98; 02-26-2004 at 11:12 AM.
 
Old 02-27-2004, 04:05 AM   #3
spikes57
LQ Newbie
 
Registered: Feb 2004
Posts: 4

Original Poster
Rep: Reputation: 0
thats some great advice with only one problem i dont have a 'relay-domains' file. i'm using the sendmail that comes default with fedora core 1.

your other points are noted though and i'll start aultering stuff based on them, please post back if you know what sendmail 8.12.10 uses instead of 'relay-domains'


many thanks,

spikes
 
Old 02-27-2004, 06:54 AM   #4
linuxxed
Member
 
Registered: Feb 2004
Posts: 273

Rep: Reputation: 30
Re: relaying in sendmail

Quote:
Originally posted by spikes57
Hi All,
I'm trying to set up my sendmail to relay mail on to an ms exchange box. all i want is for the server to accept mail and pass it on, but there are so many files, access . local-host-names . mailertable . etc can anyone just give me the basics eg. put the domain to relay in the access file.

also do i need to create local accounts for each user on the relayed domain? or will the relay just accept all mail addressed with that domain?

cheers,

spikes
sendmail.org has some excellent documentation.

All you would need is a relay domain because sendmail comes with anti relaying features.

FEATURE(RELAY_DOMAIN_FILE) in sendmail.mc ... check the syntax on sendmail.org. Compile using m4

In the relay domain file which is normally in /etc/mail/ , you need to add the domains which you want to relay. DO NOT add these domains to local-host-names or your sendmail will think that these accounts exist on the same box.

If the domains to which mails are sent have appropriate MX records then you don't even need a mailertable which is used to override MX records.

No you do not need to create any local accounts.

Again check docs on sendmail.org esp the faqs. check the null client configuration too.
 
Old 02-27-2004, 08:30 AM   #5
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
It should also be pointed out that sendmail is upto sendmail 8.10.11

ftp://ftp.sendmail.org/pub/sendmail/...8.12.11.tar.gz

Always good to be up to date. Fedora may have an rpm.. They do:

http://download.fedora.redhat.com/pu...1-3.2.i386.rpm
http://download.fedora.redhat.com/pu...1-3.2.i386.rpm
 
Old 02-27-2004, 10:05 AM   #6
spikes57
LQ Newbie
 
Registered: Feb 2004
Posts: 4

Original Poster
Rep: Reputation: 0
hey,
at the moment i do not want to upgrade my sendmail as i dont know what effect it will have on my mail filters, but i'll look into it soon.

but anyway, i have cleared so of the files as suggested and i am going to add indiviuals to the access file. as i cant get the relay domains file to exist. it works for me anyhow as i dont want unknow mail to reach the exchange box.

cheers for your help, i now know a little more about all the files in /etc/mail

spikes
 
Old 02-27-2004, 10:44 AM   #7
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
Quote:
Originally posted by spikes57
. as i cant get the relay domains file to exist.
Just create the file yourself and add the stuff you want. Then restart sendmail.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Relaying R4z0r Linux - Networking 2 10-03-2004 02:15 PM
Sendmail and Relaying Hessian Rider Linux - Networking 2 03-04-2003 07:53 AM
Sendmail relaying SchoolITguy Linux - Networking 0 10-18-2002 06:17 PM
sendmail relaying atin Linux - Software 1 10-01-2002 10:21 AM
Sendmail 8.11 relaying?? magyartoth Linux - General 3 04-29-2002 03:24 PM

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

All times are GMT -5. The time now is 09:42 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration