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 02-06-2012, 07:34 AM   #1
Spuddy
Member
 
Registered: Jul 2010
Posts: 83

Rep: Reputation: 15
SMTP Relay.


Dear All,

I run a mailserver at home for 4/5 personal domains. Outgoing SMTP mail is relayed through my ISPs SMTP server due to my home IP being on a residential range and some recipient servers blocking email from my IP. This has until recently been ok, however recently proved quite flaky and I'm looking for somewhere else to relay through.

I have a dedicated server running Debian. How would I go about setting up a mailserver, not to host mail but merely to deliver the mail that is offloaded from my mailserver at home?

How would I ensure it is not an open relay?

Thanks,
 
Old 02-06-2012, 08:50 AM   #2
rgdacosta
Member
 
Registered: Jun 2007
Location: South Africa
Distribution: Linux Mint,Fedora, openSUSE, RHEL, SLES, Scientific Linux
Posts: 70

Rep: Reputation: 24
On your home MTA, and if you use postfix:

Code:
relayhost = [mailserver.isp.tld or an.ip.add.ress]
you could use that parameter to specify your ISP's SMTP server through which mail will be relayed by your home MTA. Don't forget the []'s

Code:
mynetworks = 192.168.1.0/24, 127.0.0.0/8
would be used to specify who your SMTP clients are so that you're not an open relay box.

HTH
 
Old 02-08-2012, 12:00 AM   #3
TopCoder
LQ Newbie
 
Registered: Feb 2012
Posts: 3

Rep: Reputation: Disabled
If you use Exim, Here's the code that prevents it from being an open relay in the .conf

Code:
accept hosts = +relay_hosts
accept hosts = +auth_relay_hosts
endpass
message = authentication required
authenticated = *
deny message = relay not permitted

# default at end of acl causes a "deny", but line below will give
# an explicit error message:
deny message = relay not permitted
You can always check to see if it's an open relay by command line or using an online tool that checks it like this one..

Open Relay Test Tool
 
  


Reply

Tags
email, relay, smtp


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
configuring smtp relay shaijuseb Linux - Server 2 12-17-2009 03:51 AM
Can I use SMTP relay as smarthost? mlewis Linux - Software 6 11-11-2008 12:53 PM
SMTP "open relay" and SMTP AUTH aikempshall Linux - Security 3 10-11-2006 09:19 AM
Smtp Relay john8675309 Linux - Networking 2 02-12-2004 01:14 AM
SMTP relay problem chuck77 Linux - General 0 06-30-2003 03:09 AM


All times are GMT -5. The time now is 06:02 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration