LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-19-2003, 06:15 AM   #1
Nerd2
Member
 
Registered: Apr 2003
Location: Brissle, England
Posts: 97

Rep: Reputation: 19
Sendmail relaying problem (1/2 Noob!)


Hello guys!

I need some help here. I have a IMAP / SMTP server using sendmail 8.12.8 for the SMTP. (REDHAT 8.0) The problem i'm having is that whereever I send email using my server, it relays perfectly. As far as I can see, from wherever I am, I can relay with my server with no authentication. Eek!!

What I want it to do is require a username/password to send the mail.

I've been trawling through masses of security documentation, most of which says that it shouldn't be relaying be default. I've looked in sendmail.mc and /etc/mail/access, both of which imply that relaying is denied.

Please help!

Nerd2
 
Old 08-19-2003, 12:28 PM   #2
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
What do you mean by from where ever you are, on a completely different computer outside your network?
 
Old 08-19-2003, 05:48 PM   #3
Nerd2
Member
 
Registered: Apr 2003
Location: Brissle, England
Posts: 97

Original Poster
Rep: Reputation: 19
Yes.

I am here, logged onto freeserve.

Sending email to:

My server, on blueyonder broadband. (10 miles away)

Forwarding the email to:

anyone (x miles away)
 
Old 08-19-2003, 06:07 PM   #4
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
What are the contents of your /etc/mail/access ?
 
Old 08-20-2003, 05:06 AM   #5
Nerd2
Member
 
Registered: Apr 2003
Location: Brissle, England
Posts: 97

Original Poster
Rep: Reputation: 19
It did have:

Code:
127.0.0.1
localhost
localhost.localdomain
But I got rid of them, just to be sure. It now just has:

Code:
# Check the /usr/share/doc/sendmail/README.cf file for a description
# of the format of this file. (search for access_db in that file)
# The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc
# package.
#
# by default we allow relaying from localhost..
Thanks

Nerd2

N.B. For reference: My sendmail.mc:

with comments

without comments
 
Old 08-20-2003, 07:14 AM   #6
Nerd2
Member
 
Registered: Apr 2003
Location: Brissle, England
Posts: 97

Original Poster
Rep: Reputation: 19
I've figured it out.

When I telneted to port 25 on my server (to see what sendmail version responded), I got a response from a completely different server. It it now clear that freeserve are redirecting all port 25 queries to their own SMTP server. That is why it appeared that my server was relaying my emails.

Thanks anyway guys.

Nerd2
 
Old 08-20-2003, 06:37 PM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,409
Blog Entries: 55

Rep: Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582
Does that mean you put the access restrictions back in?
 
Old 08-21-2003, 05:35 PM   #8
Nerd2
Member
 
Registered: Apr 2003
Location: Brissle, England
Posts: 97

Original Poster
Rep: Reputation: 19
The access restrications were always in. I thought my server was relaying without authorization, when in fact it was the freeserve server that was relaying, with authoization (from me logging on to their dial-up)

My server is now on another port, and doesn't work anyhooo!
 
  


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 problem mhatre kedar Linux - Networking 4 03-18-2005 05:49 PM
Sendmail Relaying R4z0r Linux - Networking 2 10-03-2004 03:15 PM
relaying in sendmail spikes57 Linux - Networking 6 02-27-2004 11:44 AM
Problem with Sendmail unknown user relaying (LUSER_RELAY)... A08 Linux - Networking 5 07-04-2003 08:34 AM
sendmail 8.12.9 relaying problem dunc Linux - Networking 3 04-28-2003 10:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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