LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 04-02-2004, 09:44 AM   #1
kemplej
Member
 
Registered: Dec 2003
Posts: 235

Rep: Reputation: 30
Qmail OPEN EMAIL RELAY QUESTION


Ok I recently set up QMAIL on Slackware 9.1 using the qmailrocks.org walkthrough. When I scan my pc for open relays I run into scans using username%domain@mydomain.com ,username@domain@mydomain.com,
username%domain, "username@domain"@mydomain.com. How do you block that kinda relaying from people?
 
Old 04-02-2004, 11:07 AM   #2
mako747
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware
Posts: 92

Rep: Reputation: 15
Allow relaying by ip address

http://www.palomine.net/qmail/selectiverelay.html
 
Old 04-02-2004, 12:03 PM   #3
kemplej
Member
 
Registered: Dec 2003
Posts: 235

Original Poster
Rep: Reputation: 30
I do..this is a copy of my tcp.smtp
# No Qmail-Scanner at all for mail from 127.0.0.1
127.:allow,RELAYCLIENT="",RBLSMTPD="",QMAILQUEUE="/var/qmail/bin/qmail-queue.pl"
# Use Qmail-Scanner without SpamAssassin on any mail from the local network
# [it triggers SpamAssassin via the presence of the RELAYCLIENT var]
200.:allow,RELAYCLIENT="",RBLSMTPD="",QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl"
#
# Use Qmail-Scanner with SpamAssassin on any mail from the rest of the world
:allow,QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl"
 
Old 04-02-2004, 01:46 PM   #4
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Did you check to see if those messages were actually relayed to a wrong domain, though? Just because qmail accepts the message with an address in that format doesn't mean it will get delivered to where the script thinks it will go.

The company I work for makes an e-mail security product and every once in a while a prospective customer will tell us that it's an open relay, but then we ask if they confirmed that the e-mail was delivered to the relay domain and they admit it wasn't. Our software silently rewrites addresses to make sense, rather than relaying them. I suspect your Qmail server does the same.

To properly test, use a second e-mail account that you have access to (your ISP, or something like that) so your test looks like ispuser%ispdomain@mydomain.com, etc... Then check your ISP e-mail account and see if you really got the messages.
 
  


Reply



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
qmail /service/qmail-send: unable to open supervise mangueJOE Linux - Networking 20 04-19-2016 11:27 PM
Spam, PostFix, OPen Relay question linchat Linux - Software 1 09-15-2005 03:22 PM
qmail + relay ... help.. rincewind Linux - Software 2 01-24-2005 09:49 AM
qmail open relay iwa Linux - Security 2 11-12-2003 07:40 AM
Qmail, can I use it a email relay? or someitng similar? ash0573 Linux - Newbie 2 05-17-2003 07:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:56 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
Open Source Consulting | Domain Registration