LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 01-31-2009, 10:16 AM   #1
dombrowsky
Member
 
Registered: Dec 2005
Location: New York
Distribution: Debian/GNU
Posts: 235

Rep: Reputation: 31
exim4, how to allow relay for local net, but not the entire internet?


I know the answer to this must be staring me in the face, but I can't find it.

I have the whole smarthost thing setup with exim4 running on my server, happily receiving mail for local delivery all day and blocking the 10-per-second spam attacks trying to use my server to relay spam.

Sending mail is another beast. I can't seem to get the right combination. Granted, all I've tried is using "dpkg-reconfigure exim4-config" and haven't dived into editing the config template file directly because I don't want to. Basically, I want what I would consider a normal setup:

1) don't relay anything if the SMTP connection comes from the internet interface

2) relay everything if it comes from the interface on 192.168.1.*

3) accept local mail deliveries on internet facing port

Using the click-through config tool, I can only set relay rules for the DESTINATION addresses, not the source. I could always work around it by running another instance of exim4 using a different config file listening on a different port/interface, but this problem seems so basic I didn't think I'd have to do that.

Last edited by dombrowsky; 01-31-2009 at 10:29 AM.
 
Old 03-28-2009, 12:38 AM   #2
dombrowsky
Member
 
Registered: Dec 2005
Location: New York
Distribution: Debian/GNU
Posts: 235

Original Poster
Rep: Reputation: 31
answer: use TLS

answer: use TLS with plain text instructions

http://jeremy.zawodny.com/blog/archives/000453.html
 
  


Reply

Tags
email, exim4, relay


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
Exim4 SMTP Relay richinsc Debian 4 03-25-2008 07:36 PM
exim4 relay upload-3 Linux - Networking 0 06-28-2006 03:49 PM
Exim4 relay to hosting prob ALInux Debian 1 05-08-2006 04:07 PM
Exim4 relay to hosting prob ALInux Linux - Networking 2 05-08-2006 02:23 AM
New kernel: local net ok, can't connect to internet. gian2oo1 Slackware 6 01-26-2006 11:08 AM


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