LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-18-2008, 10:37 PM   #1
extendedping
Member
 
Registered: Feb 2004
Posts: 210

Rep: Reputation: 30
need a sendmail question (what is relaying) answered


well I have read up on this and to my understanding relaying is the process or having a sendmail server forward mail that did not originate from that server, out of that server...well I thought I had it. so I setup 2 centos boxes. I put them both on the example.com domain. the sendmail server is on station17.example.com which is also called mail.example.com in my dns (set up with a mx record). my client which is running evolution is on server1.example.com. now...I started dovecot and sendmail on station17 and made sure to enable protocols pop so I could receive mail. I opened up sendmail.mc and made only 2 changes...I commented out (dnl) the 127/localhost line which to my understanding meant sendmail could receive mail from outside the local machine...then I went to the line that says LOCAL_DOMAIN(`localhost.localdomain') and did a yy/p so that the line was copied below. then changed localhost.localdomain to "example.com". I then left the mail directory and ran make -C /etc/mail, and then service sendmail restart.

I then setup a user called casper on the sendmail box (station17). I sent a message to that user using the mail command and it showed up in the /var/spool/mail/casper file. --- here is where I am confused. I went to my other machine "server1.example.com" and setup evolution. well I was able to receive the message via pop that I had sent to casper...but when I tried to send a message to casper it says
RCPT TO <casper@mail.example.com> failed: <casper@mail.example.com>... Relaying denied

hmm...I am trying to send to a user on that very machine...and I opened commented out the 127 line in sendmail and put the domain both machines are on (example.com) in the LOCAL_DOMAIN part of the sendmail file...so why should it say I am trying to relay? I am sending to a local client on the sendmail server and since I got a pop message from that client I assume sendmail knows casper is on its own server. so what gives...am I totally not understanding what relaying is or what I need to get this working? I know there is a access file in the /etc/mail directory in which you can put domains allowed to use the server to relay...but I am not trying to relay just to send to a local user named casper I setup...

thanks much I am sure I am missing something simple.
 
Old 03-19-2008, 07:29 AM   #2
extendedping
Member
 
Registered: Feb 2004
Posts: 210

Original Poster
Rep: Reputation: 30
btw I put the domain both machines are on...example.com in the access file and now it works...so I guess everything I have read about what relaying is is wrong?
 
  


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 Relaying marvin00001 Linux - Networking 2 09-22-2005 06:38 AM
relaying in sendmail spikes57 Linux - Networking 6 02-27-2004 10:44 AM
Sendmail Relaying Question Supp0rtLinux Linux - Networking 3 08-05-2002 05:16 PM
Sendmail Relaying Question Supp0rtLinux Linux - Software 3 08-02-2002 03:47 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 07:51 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