LinuxQuestions.org
Visit Jeremy's Blog.
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-19-2003, 04:52 PM   #1
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Rep: Reputation: 30
Question Sendmail and relaying (Deny it)


Hi everybody,

I am a linux-(no-longer-totally-)newbie.

I am a bit confused about my sendmail configuration. When reading the LogWatch, i can see that on a particular day 111 messages are sent. I have a small server with 5 users. I am pretty sure they didn't sent out 111 messages in one day. I would like to be sure that my server cannot be used as a spamming machine.

I have my own MX record for my domain, and this domain is in the /etc/mail/access file, as well as my internal IP-network.

Can I check somehow if i set it up correctly, or can I assume that my server cannot be used for spamming by external users?

I searched the web on this matter, but i must say that it's not very clear how this works.

Thanks for your help in advance.

Last edited by Satriani; 03-19-2003 at 04:58 PM.
 
Old 03-19-2003, 05:22 PM   #2
rohang
Member
 
Registered: Aug 2002
Location: Sydney, Australia
Distribution: Redhat, Open BSD, SuSe, Debian, CentOS
Posts: 177

Rep: Reputation: 31
What messages are you seeing from /var/log/maillog? Do you get any mail bounced back? If so what does sendmail report?
 
Old 03-19-2003, 06:20 PM   #3
m0rl0ck
Member
 
Registered: Nov 2002
Distribution: A totally 133t distro :)
Posts: 358

Rep: Reputation: 31
To test this you need to telnet from a remote location to port 25 of the server you want to test.

This is what it looks like:
--------------------------------------------------------------------
[darcy:07:13pm:m0rl0ck]> telnet m0rl0ck.ath.cx 25
Trying 66.181.96.21...
Connected to m0rl0ck.ath.cx.
Escape character is '^]'.
220 ///////////////////////// ESMTP
MAIL From:
503 5.0.0 Polite people say HELO first
helo
501 5.0.0 helo requires domain address
helo localhost
250 bunny.m0rl0ck.ath.cx Hello darcy.gwis.com [66.181.106.3], pleased to meet you
MAIL From: thepres@thebov.com
250 2.1.0 thepres@thebov.com... Sender ok
RCPT To: m0rl0ck@xxxxx.com
550 5.7.1 m0rl0ck@xxxxx.com... Relaying denied
---------------------------------------------------------------------

The above is me connecting to my mail server from my shell account with my isp.

1. after you get the sendmail shell enter a helo:
"helo localhost"
2. next type a:
MAIL From: user@domain.com
2. next type a nonlocal destinaton addy:
RCPT To: m0rl0ck@xxxxx.com

If you get relaying denied youre ok.
 
Old 03-19-2003, 06:26 PM   #4
m0rl0ck
Member
 
Registered: Nov 2002
Distribution: A totally 133t distro :)
Posts: 358

Rep: Reputation: 31
Heres a link or two on the subject:
http://www.linux-sec.net/Mail/openrelay.gwif.html
http://www.linux-sec.net/Mail/AntiSpam/

Open relay testing and also links to the monty python spam song
 
Old 03-24-2003, 07:02 AM   #5
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Original Poster
Rep: Reputation: 30
Thumbs up

I checked the things as mentioned above, and I feel alot safer than before: Testing with the TELNET 25 option indeed shows relay denied.

Also the website mentioned is great! Thank you all for helping me out!

Others with the same questions: Please read above messages.

Thanks again,

Satriani
 
  


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
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

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

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