LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-01-2005, 10:43 PM   #1
Chris Murphy
LQ Newbie
 
Registered: Nov 2004
Distribution: Debian
Posts: 12

Rep: Reputation: 0
secret whitelist for qmail


I have set up the qmail MTA. I want it to only accept emails where the sender has one of a very few email addresses. Obviously I don't want spammers to know these addresses. Is there a simple way to do this with qmail? I have a Debian distribution.

I have already implemented 'only from specific IP addresses' using /etc/tcp.smtp. Unfortunately the range of IP addresses that I can use is not granular enough, hence the need to check the sender as well.

thanks - Chris Murphy
 
Old 01-03-2005, 12:35 AM   #2
Chris Murphy
LQ Newbie
 
Registered: Nov 2004
Distribution: Debian
Posts: 12

Original Poster
Rep: Reputation: 0
I got an answer to this from the qmail mail list. This is the answer:

<

Thanks very much Charles.

I used relay-ctrl and it worked well once I got my head around Bruce Guenter's very brief notes at http://untroubled.org/relay-ctrl/. (The debian qmail package I used doesn't need daemontools, thus envdir was a bit of a mystery at first).

References used:
http://www.palomine.net/qmail/relaying.html
http://untroubled.org/relay-ctrl/

- Chris Murphy

Charles Cazabon wrote:
Chris Murphy <cjmurphy@smartchat.net.au> wrote:

I have set up the qmail MTA on a server machine that is connected to the
internet. I want it to only accept emails where the "Sender:" is one of
a few email addresses. Is there a simple way to do this with qmail?

Apply one of the various "goodmailfrom" patches that have been implemented for
qmail, analogous to the built-in badmailfrom functionality. Put your list of
secret "good" addresses in the associated control file and you're done.


This server machine has a Debian distribution. No emails are delivered
locally. Insead they go to POP accounts on a client machines that have
broadband connections. The crux of the problem is that these client
machines have dynamically assigned IP address.


... ? That doesn't matter, unless by "accept emails" you actually mean "allow
senders to relay" ...


I have already implemented 'only from specific IP addresses' using
/etc/tcp.smtp. This sets a range of IP addresses as being valid. (The
dynamically assiged range). To protect the mail server from being used
as an open relay from addresses within that range I want qmail to have a
secret whitelist of valid senders.


You're talking about relaying, not accepting mail. There's a qmail relaying
FAQ, or you could simply use a POP-before-SMTP solution to grant relaying
privileges to your dynamically-addressed users. Bruce Guenter's relay-ctrl is
the most common one used with qmail.

Charles

>
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
secret lukeleia3 General 12 12-03-2004 07:16 PM
Spamassassin 3 whitelist ignored gquiring Linux - Software 0 10-04-2004 08:11 AM
qmail +qmail-qfilter + qmail-scanner-queue+qmail-user-masq.pl problem countcobolt Linux - Networking 0 07-08-2004 11:29 AM
Okay, what's the secret? PlanetNEO Linux - Newbie 8 01-25-2003 01:44 PM
Share Secret ccarminati Linux - General 2 04-23-2002 08:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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