Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 02-06-2012, 06:34 AM   #1
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?

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

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

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

mynetworks =,
would be used to specify who your SMTP clients are so that you're not an open relay box.

Old 02-07-2012, 11:00 PM   #3
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

accept hosts = +relay_hosts
accept hosts = +auth_relay_hosts
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


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

All times are GMT -5. The time now is 11:55 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration