niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
· nixdoc.net · man pages · Linux HOWTOs · FreeBSD Tips · Forums
navigation Forum index » Apps » Qmail
Qmail / SpamControl => Check if DNS exist ?
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Author Message
Phibee NOC
*nix forums beginner


Joined: 22 Mar 2005
Posts: 31

PostPosted: Thu Jul 20, 2006 4:51 am    Post subject: Qmail / SpamControl => Check if DNS exist ? Reply with quote

Hi

i receive a big quantity of mails from a "domain generator" :

dsjfklsdjflksjdf.com
kjdflsk.com

can i said to my qmail that see on the DNS if the domain are
created, and if no, reject email ?

thanks
Back to top
Kyle Wheeler
*nix forums Guru Wannabe


Joined: 07 Jan 2005
Posts: 208

PostPosted: Thu Jul 20, 2006 5:39 am    Post subject: Re: Qmail / SpamControl => Check if DNS exist ? Reply with quote

On Thursday, July 20 at 06:51 AM, quoth Noc Phibee:
Quote:
can i said to my qmail that see on the DNS if the domain are
created, and if no, reject email ?

Presuming that your qmail is set up similar to the Life With Qmail
document describes, one easy way would be to use a script to wrap
around it (i.e. use it like rblsmtpd). You’ll want to give tcpserver
the -h flag to make this work. Such a script might look like this:

#!/bin/sh
if test -z "$TCPREMOTEHOST" ; then
echo 421 try again when you have DNS working.
echo blocked connection from $TCPREMOTEIP >&2
exit
fi
shift
exec "$@"

~Kyle
--
Morality, like art, means drawing a line someplace.
-- Oscar Wilde
Back to top
Charles Cazabon
*nix forums Guru


Joined: 08 Jan 2005
Posts: 805

PostPosted: Thu Jul 20, 2006 2:28 pm    Post subject: Re: Qmail / SpamControl => Check if DNS exist ? Reply with quote

Noc Phibee <noc@phibee.net> wrote:
Quote:

i receive a big quantity of mails from a "domain generator" :

dsjfklsdjflksjdf.com
kjdflsk.com

can i said to my qmail that see on the DNS if the domain are
created, and if no, reject email ?

Yes. See qmail.org for a patch by Nagy Balazs that refuses mail if the
envelope sender domain isn't valid.

Charles
--
--------------------------------------------------------------------------
Charles Cazabon <qmail@discworld.dyndns.org>
Read http://pyropus.ca/personal/writings/12-steps-to-qmail-list-bliss.html
My services include qmail consulting. See http://pyropus.ca/ for details.
--------------------------------------------------------------------------
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
The time now is Mon Sep 01, 2014 1:37 pm | All times are GMT
navigation Forum index » Apps » Qmail
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Transfer qmail email account to postfix server tallman Postfix 0 Thu Jun 05, 2008 12:43 pm
No new posts access method "gin" does not exist Kevin Murphy PostgreSQL 0 Thu Jul 20, 2006 4:25 pm
No new posts equivalent to .qmail for outgoing? Bill Gradwohl Qmail 1 Thu Jul 20, 2006 3:37 pm
No new posts how to run qmail on two ips in a single server anu bhaskar Qmail 6 Thu Jul 20, 2006 9:13 am
No new posts Force linker to check all the implementation toton C++ 1 Thu Jul 20, 2006 6:08 am

Copyright © 2004-2005 DeniX Solutions SRL
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum |  email marketing service
 
Privacy Policy
[ Time: 0.0318s ][ Queries: 16 (0.0046s) ][ GZIP on - Debug on ]