| To: | qmail@list.cr.yp.to |
|---|---|
| Subject: | Re: Disable bounce message to remote recipients |
| From: | Jeremy Kitchen <kitchen@scriptkitchen.com> |
| Date: | Tue, 20 Mar 2007 15:47:48 -0700 |
| Delivered-to: | sp-com-lists@consult.net |
| Delivered-to: | gmail-qmail@securepoint.com |
| Delivered-to: | sp.com.list@gmail.com |
| Delivered-to: | mailing list qmail@list.cr.yp.to |
| In-reply-to: | <d29a314c0703201457i49c104e2uf8d0bf0cb3d408a4@mail.gmail.com> |
| Mailing-list: | contact qmail-help@list.cr.yp.to; run by ezmlm |
| References: | <d29a314c0703201334u1a34e786h2bf743edc9e6ff95@mail.gmail.com> <20070320212339.GA500@discworld.dyndns.org> <d29a314c0703201457i49c104e2uf8d0bf0cb3d408a4@mail.gmail.com> |
| User-agent: | Thunderbird 1.5.0.10 (Macintosh/20070221) |
Stefanovich wrote:
> Do you mean something like this:
>
> #!/usr/bin/perl
>
>
> $host = $ARGV[0];
>
> $sender = $ARGV[1];
>
>
> if ($sender eq '') {
>
> print 'K'.$host.' accepted message.';
>
> exit 0;
>
> }
>
> else {
>
> my $variables;
>
> foreach $var ($ARGV) {
>
> $variables .= "'".$var."' ";
>
> }
>
>
> `/var/qmail/bin/qmail-remote $variables`;
fortunately, qmail's permission separation would basically limit the
damages that could be caused by this to almost nothing, but this is bad
bad bad.
what if I sent an email to a known 'full' account with the envelope
sender of:
1;rm -rf /;@whateverifeellike.com
if you're going to use perl, use perl's exec() function appropriately.
however, I agree with Kyle, that this could/should be written in
something lighter weight, like C. It really would only be a few lines
of C code. I suck at C and I could probably bang it out in about 10
minutes ;)
-Jeremy
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Disable bounce message to remote recipients, Charles Cazabon |
|---|---|
| Next by Date: | Re: qmail-local taking a lot of CPU often, Jeremy Kitchen |
| Previous by Thread: | Re: Disable bounce message to remote recipients, Charles Cazabon |
| Next by Thread: | Introduction, Charles Williams |
| Indexes: | [Date] [Thread] [Top] [All Lists] |