LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 11-24-2005, 06:30 AM   #1
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Rep: Reputation: 30
Exim, restrict sending from ourdomain.com to local subnet


Hi,
I've got an Exim mail server and would like to stop people from being able to send smtp through it with the from field containing ourdomain.com unless the connection is established from the local subnet.

Does anybody know how to do this?
 
Old 11-24-2005, 04:34 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,731
Blog Entries: 4

Rep: Reputation: 65
Try:
Code:
hostlist   relay_from_hosts =  192.168.0.0/24
Exim disallows _all_ relay by default, so after adding this rule, only hosts in 192.168.0.0/24 subnet can send mail through this box...

Go ahead and use telnet to check (from outside your subnet )
 
Old 11-25-2005, 03:14 AM   #3
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
Thanks, the exim conf already has this.

Does anybody know of an internet based telnet portal or something? I found one ages ago and can't remember where now. I need to use it to test our mail server from outside.
 
Old 11-25-2005, 03:52 AM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,731
Blog Entries: 4

Rep: Reputation: 65
Here is a list of free shell providers. Most if not all should provide the telnet command:
http://www.ductape.net/~mitja/freeunix.shtml
 
Old 11-25-2005, 04:07 AM   #5
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
thanks for that! appreciate it. just what i needed
 
  


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
Sending mail through exim snipersock Linux - Networking 4 08-27-2008 02:08 AM
exim not sending external mail nvbauer Debian 3 02-05-2005 03:38 AM
sending with exim: need fully-qualified hostname otoomet Linux - Networking 1 01-06-2005 02:55 PM
EXIM - sending spam from PHP scrips GRisha Linux - Software 0 06-05-2004 11:07 AM
Sending system logs without having exim installed? frank2 Linux - Networking 0 02-28-2004 02:20 PM


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