LinuxQuestions.org
Visit the LQ Articles and Editorials section
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-03-2005, 12:26 PM   #1
kernelvn
Member
 
Registered: Aug 2004
Posts: 91

Rep: Reputation: 15
sendmail , the /etc/mail/relay-domains File


I'm going to config my sendmail server . When reading the document , I knew that the /etc/mail/relay-domains file is contain all domain that my mail server could relay to . But I would like to send to whatever domain I want and adding all of them to that file is so not comfortable .
So how should I do ? ( adding 0.0.0.0 to that file or adding 0.0.0.0 to /etc/mail/access ) .
Thank for reading
 
Old 05-04-2005, 08:19 AM   #2
linuxxed
Member
 
Registered: Feb 2004
Posts: 273

Rep: Reputation: 30
Re: sendmail , the /etc/mail/relay-domains File

Quote:
Originally posted by kernelvn
I'm going to config my sendmail server . When reading the document , I knew that the /etc/mail/relay-domains file is contain all domain that my mail server could relay to . But I would like to send to whatever domain I want and adding all of them to that file is so not comfortable .
So how should I do ? ( adding 0.0.0.0 to that file or adding 0.0.0.0 to /etc/mail/access ) .
Thank for reading
Don't EVER make your mail server as open relay!!!! Your mailserver will get blacklisted.

Suppose your mailserver is B. If A tries to send a mail to C using B, sendmail will deny the request by default to prevent spam. If you want to allow some domains to do that then configure relay-domains file or access file.
A better way is to use mailserver authentication to free you from adding and removing domains.



If a user on B tries to send a mail outside then no problem. No config needed.

If A tries to send a mail to a user on B then also no problem. No config needed.
 
Old 05-04-2005, 10:15 AM   #3
kernelvn
Member
 
Registered: Aug 2004
Posts: 91

Original Poster
Rep: Reputation: 15
yes ofcause I do not want to be in the blacklisted . But you know , I would like to make smtp must authenticate , and a people who could authenticate success could sendmail everywhere he want .

I think that is the better way , because as the administrator , you could not tell the client that which domain he could send to and which not .

So , thank you for answering my question , I've been wating this answer for long time , and , if you have any idea more about it , give me some of your experience.
 
Old 05-04-2005, 10:17 AM   #4
kernelvn
Member
 
Registered: Aug 2004
Posts: 91

Original Poster
Rep: Reputation: 15
hey , I forgot my purpose !

Back to the thead , how to make sendmail could send to everywhere I want ?
 
Old 05-04-2005, 12:25 PM   #5
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,744

Rep: Reputation: 70
You need to have your domain set (and only your domain) for relaying. This will take care of your problem. Do not set any other domain to be relayed and you should be alright.
 
  


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
Using sendmail to relay mail to ISP mail server Swift&Smart Linux - Software 26 11-09-2008 03:00 PM
Sendmail Relay-Domains From External Server littlenicker Linux - Networking 3 05-25-2005 11:45 AM
relay mail to sendmail relay server??? lemay_jeff Linux - Newbie 0 07-06-2004 04:54 PM
sendmail not sending mail to 2 existing domains dv3dv3 Linux - Software 0 07-02-2003 01:50 PM
Sendmail: relay-domains question d3funct Linux - General 0 02-22-2002 11:36 AM


All times are GMT -5. The time now is 04:32 AM.

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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration