LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 06: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, 07:50 AM   #2
rgdacosta
Member
 
Registered: Jun 2007
Location: South Africa
Distribution: Linux Mint,Fedora, openSUSE, RHEL, SLES, Scientific Linux
Posts: 71

Rep: Reputation: 25
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-07-2012, 11:00 PM   #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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:50 AM.

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