Register a domain and help support LQ
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 08-31-2006, 06:59 AM   #1
Registered: Mar 2006
Location: Ohio, USA
Distribution: Red Hat, Fedora, Knoppix,
Posts: 542

Rep: Reputation: 33
How to restrict email relaying?

I run a vps with multiple domains. I have been seeing email which appears to come from my domains, but I'm not sending it. If I restrict relaying would this fix the problem? If so, how do you restrict relaying?

Old 09-01-2006, 03:56 PM   #2
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,124

Rep: Reputation: 164Reputation: 164
Relaying is when someone uses your SMTP server to send mail somewhere else. If whoever sent the emails didn't send them through your server then stopping relaying won't fix the problem. If they are sending them through your server then stopping (or restricting) relaying will help. Can you provide more info on your mail server please?

By the way, you might also look at SPF is a way of preventing return-path address forgery.
Old 11-09-2006, 01:36 AM   #3
Registered: Mar 2006
Distribution: BackTrack, RHEL, FC, CentOS, IPCop, Ubuntu, 64Studio, Elive, Dream Linux, Trix Box
Posts: 310

Rep: Reputation: 30
add following in your
/etc/mail/mailertable for the domains which are on the vps
Code: 	smtp:[] 	smtp:[] 	smtp:[]
Also add the domain names in following file:

Still, you have to go for spf, drbl and so on to minimize spam which cant be stopped completely! : Aniruddha

Last edited by imagineers7; 11-11-2006 at 11:39 PM.
Old 11-17-2006, 01:39 AM   #4
Registered: Jun 2004
Location: Metro Manila, Philippines
Distribution: OpenBSD, Slackware, XP
Posts: 347

Rep: Reputation: 31
DKIM (DomainKeys Identified Mail) might help you on this also. DKIM signs every mail coming from your domain and thus being attested to legitimately coming from you. Sendmail has this already through dkim-milter which as well runs on Postfix that integrates with amavisd-new.

Also by providing my postfix mail with postgrey, amavisd-new, spamassassin and clamav, these sort of mails seems to be coming from my domain are getting blocked rightaway.


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
Unable to send email "Relaying denied" ejain Linux - Software 3 05-30-2005 10:31 AM
Unable to send email "Relaying denied" ejain Linux - Software 2 05-21-2005 09:02 AM
DISCUSSION: HOWTO Setup a Secure Relaying Email Server DavidPhillips LinuxAnswers Discussion 20 07-30-2004 12:46 PM
relaying to email server depaul Linux - Software 3 07-18-2003 03:12 PM
How to restrict email from users... Supp0rtLinux Linux - Software 1 01-08-2003 04:37 AM

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