|
|
|
|
|
|
| Author |
Message |
Phibee NOC *nix forums beginner
Joined: 22 Mar 2005
Posts: 31
|
Posted: Thu Jul 20, 2006 4:51 am Post subject:
Qmail / SpamControl => Check if DNS exist ?
|
|
|
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
|
Posted: Thu Jul 20, 2006 5:39 am Post subject:
Re: Qmail / SpamControl => Check if DNS exist ?
|
|
|
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
|
Posted: Thu Jul 20, 2006 2:28 pm Post subject:
Re: Qmail / SpamControl => Check if DNS exist ?
|
|
|
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 |
|
 |
|
|
The time now is Mon Dec 01, 2008 9:18 pm | All times are GMT
|
|
Credit Cards | Advertising | Plumbing | Credit Card | MySpace Layouts
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|