From: Gerrit Pape <pape@smarden.org>
Subject: Re: correct tcprules directory?
Date: Thu, 16 Mar 2006 10:56:10 +0000 [thread overview]
Message-ID: <20060316105610.25594.qmail@b06049115fed98.315fe32.mid.smarden.org> (raw)
In-Reply-To: <C03313EA.3807%deanpence@gmail.com>
On Tue, Mar 07, 2006 at 10:41:46AM -0500, Dean Hall wrote:
> I just want to confirm that I'm using ipsvd-cdb correctly to run qmail, b/c
> it's acting like an open relay when it shouldn't.
>
> I have a directory called qmail-smtpd. In it are two files:
>
> - 127.0.0.1
> - 192.168.1
>
> The contents of both of them is identical:
>
> +RELAYCLIENT=
>
> I built the cdb file from the parent directory like this:
>
> # ipsvd-cdb qmail-smtpd.cdb qmail-smtpd.cdb.tmp qmail-smtpd
>
> I'm running qmail-smtpd like this:
>
> exec \
> env - PATH="$PATH" \
> envuidgid "$USER" \
> tcpsvd -p \
> -l "$HOSTNAME" \
> -x "$TCPCDB" \
> -c "$CONCURRENCY" \
> "$IP" "$PORT" \
> recordio \
> qmail-smtpd
>
> And $TCPCDB is set to the path of the .cdb file I created above.
>
> Does this look correct? If so, any ideas why qmail-smtpd is acting like an
> open relay?
Pristine qmail-smtpd doesn't look at the UID and GID environment
variables. Unless you patched it, you probably want the -u switch to
tcpsvd instead of envuidgid.
Looks fine to me otherwise, try to make tcpsvd more verbose using -vv,
it'll then show in the logs which instructions are applied to each
connection.
HTH, Gerrit.
prev parent reply other threads:[~2006-03-16 10:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-07 15:41 Dean Hall
2006-03-16 10:56 ` Gerrit Pape [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060316105610.25594.qmail@b06049115fed98.315fe32.mid.smarden.org \
--to=pape@smarden.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).