LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux > 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
 
Thread Tools
Old 02-26-2004, 11:15 AM   #1
spikes57
LQ Newbie
 
Registered: Feb 2004
Posts: 4
Thanked: 0
relaying in sendmail


[Log in to get rid of this advertisement]
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
spikes57 is offline     Reply With Quote
Old 02-26-2004, 12:07 PM   #2
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,018
Thanked: 0
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 12:12 PM..
benjithegreat98 is offline     Reply With Quote
Old 02-27-2004, 05:05 AM   #3
spikes57
LQ Newbie
 
Registered: Feb 2004
Posts: 4
Thanked: 0

Original Poster
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
spikes57 is offline     Reply With Quote
Old 02-27-2004, 07:54 AM   #4
linuxxed
Member
 
Registered: Feb 2004
Posts: 273
Thanked: 0
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.
linuxxed is offline     Reply With Quote
Old 02-27-2004, 09:30 AM   #5
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,018
Thanked: 0
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
benjithegreat98 is offline     Reply With Quote
Old 02-27-2004, 11:05 AM   #6
spikes57
LQ Newbie
 
Registered: Feb 2004
Posts: 4
Thanked: 0

Original Poster
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
spikes57 is offline     Reply With Quote
Old 02-27-2004, 11:44 AM   #7
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,018
Thanked: 0
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.
benjithegreat98 is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


All times are GMT -5. The time now is 08:22 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration