LinuxQuestions.org
Review your favorite Linux distribution.
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 08-31-2006, 06:59 AM   #1
DotHQ
Member
 
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?

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

Rep: Reputation: 162Reputation: 162
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 http://www.openspf.org/. SPF is a way of preventing return-path address forgery.
 
Old 11-09-2006, 01:36 AM   #3
imagineers7
Member
 
Registered: Mar 2006
Distribution: BackTrack, RHEL, FC, CentOS, IPCop, Ubuntu, 64Studio, Elive, Dream Linux, Trix Box
Posts: 310

Rep: Reputation: 30
HI,
add following in your
/etc/mail/mailertable for the domains which are on the vps
Code:
domain1.com 	smtp:[mail.domain1.com]
domain2.com 	smtp:[mail.domain2.com]
domain3.net 	smtp:[10.0.0.1]
Also add the domain names in following file:

Code:
 /etc/mail/relay-domains
domain1.com
domain2.com
domain3.com
Still, you have to go for spf, drbl and so on to minimize spam which cant be stopped completely!

http://en.wikipedia.org/wiki/Open_mail_relay
http://en.wikipedia.org/wiki/SMTP-AUTH
http://en.wikipedia.org/wiki/Extended_SMTP
http://en.wikipedia.org/wiki/Sender_Policy_Framework
http://en.wikipedia.org/wiki/DNSBL

aniruddhas.com : Aniruddha

Last edited by imagineers7; 11-11-2006 at 11:39 PM.
 
Old 11-17-2006, 01:39 AM   #4
gani
Member
 
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.

http://www.elandsys.com/resources/sendmail/dkim.html
 
  


Reply


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 03:59 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration