Matt Sergeant | 1 Feb 2008 01:43
Favicon

Re: qpsmtpd-async and dnsbl

On 30-Jan-08, at 5:14 PM, mark warren bracher wrote:

> Matt Sergeant wrote:
>> On 29-Jan-08, at 12:55 PM, prof.freud <at> googlemail.com wrote:
>>>> So I'll need more info about your configuration.
>>> ok, found something.  this only happens, when I use logging/ 
>>> adaptive.
>>> If I take that out, the dnsbl starts to work.
>> Can you send the output from enabling verbose mode (two -v flags)  
>> with current svn?
>
> with the latest svn, I now get the 220 banner line with async/dnsbl.

OK, and for prof.freud?...

Matt.

Ulrich Stärk | 1 Feb 2008 12:26
Picon

redirect plugin

Hi list,

I want to redirect spam (mail with X-Spam-Flag: YES) to a users spam 
folder after the spamassassin plugin has run.
My system is an imap setup where users can post mail to submailboxes by 
appending +<mailboxname> to their email address, e.g. foo+spam <at> bar.com 
would go to INBOX.spam for the user foo.
I'd like to have a plugin that can redirect spam to 
<userpart>+spam <at> <domainpart>.
The handler plugin (http://www.openfusion.com.au/labs/qpsmtpd/handler) 
is capable of redirecting mail to another mailbox based on the users 
name, e.g. "redirect_recipient -spam" would deliver spam mail to 
<userpart>-spam <at> <domainpart> but it is not capable of delimiting 
<userpart> and the spam submailbox with '+'.
Before I go and patch the handle plugin by hand I wanted to ask if there 
is a plugin which supports my needs.

Cheers,

Uli

Hanno Hecker | 1 Feb 2008 13:40
Picon

Re: redirect plugin

On Fri, 01 Feb 2008 12:26:40 +0100
Ulrich Stärk <uli <at> spielviel.de> wrote:
> I want to redirect spam (mail with X-Spam-Flag: YES) to a users spam 
> folder after the spamassassin plugin has run.
> My system is an imap setup where users can post mail to submailboxes by 
> appending +<mailboxname> to their email address, e.g. foo+spam <at> bar.com 
> would go to INBOX.spam for the user foo.
> I'd like to have a plugin that can redirect spam to 
> <userpart>+spam <at> <domainpart>.
> The handler plugin (http://www.openfusion.com.au/labs/qpsmtpd/handler) 
> is capable of redirecting mail to another mailbox based on the users 
> name, e.g. "redirect_recipient -spam" would deliver spam mail to 
> <userpart>-spam <at> <domainpart> but it is not capable of delimiting 
> <userpart> and the spam submailbox with '+'.
> Before I go and patch the handle plugin by hand I wanted to ask if there 
> is a plugin which supports my needs.

Something like this should do:

sub hook_queue_pre {
    my ($self,$transaction) =  <at> _;
    my  <at> flag = $transaction->header->get("X-Spam-Flag");
    return (DECLINED) unless (lc $flag[0] eq 'yes');
    my $user;
    foreach my $addr ($transaction->recipients) {
       ($user = $addr->user) =~ s/^([^+]+)\+.+$/$1/;
       $addr->user($user."+spam");
    }
    return(DECLINED);
}
(Continue reading)

James Turnbull | 3 Feb 2008 12:48
Gravatar

qpsmtpd and mailman


Hi all

Does anyone use qpsmtpd with Mailman?  Is there a recommended way to do
recipient checking?  I use check_goodrcptto currently and can obviously
add the addresses for lists into its config but is there a better way or
does someone have a custom plug-in for this that they would be willing
to share?

Thanks

James Turnbull

--
James Turnbull (james <at> lovedthanlost.net)
--
Author of:
Pulling Strings with Puppet
(http://www.amazon.com/gp/product/1590599780/)
Pro Nagios 2.0
(http://www.amazon.com/gp/product/1590596099/)
Hardening Linux
(http://www.amazon.com/gp/product/1590594444/)
Juerd Waalboer | 3 Feb 2008 14:30
Picon

Re: qpsmtpd and mailman

James Turnbull skribis 2008-02-03 22:48 (+1100):
> Does anyone use qpsmtpd with Mailman?  Is there a recommended way to do
> recipient checking?  I use check_goodrcptto currently and can obviously
> add the addresses for lists into its config but is there a better way or
> does someone have a custom plug-in for this that they would be willing
> to share?

If you use qmail, any level 3 or 4 solution listed in
http://search.cpan.org/~juerd/Qmail-Deliverable-1.03/lib/Qmail/Deliverable/Comparison.pod
can be used.

Note that check_goodrcptto is insufficient if you enable VERP.
--

-- 
Met vriendelijke groet,  Kind regards,  Korajn salutojn,

  Juerd Waalboer:  Perl hacker  <##### <at> juerd.nl>  <http://juerd.nl/sig>
  Convolution:     ICT solutions and consultancy <sales <at> convolution.nl>

James Turnbull | 3 Feb 2008 14:51
Gravatar

Re: qpsmtpd and mailman


Juerd Waalboer wrote:
| James Turnbull skribis 2008-02-03 22:48 (+1100):
|> Does anyone use qpsmtpd with Mailman?  Is there a recommended way to do
|> recipient checking?  I use check_goodrcptto currently and can obviously
|> add the addresses for lists into its config but is there a better way or
|> does someone have a custom plug-in for this that they would be willing
|> to share?
|
| If you use qmail, any level 3 or 4 solution listed in
|
http://search.cpan.org/~juerd/Qmail-Deliverable-1.03/lib/Qmail/Deliverable/Comparison.pod
| can be used.

I use Postfix rather than qmail.

Regards

James Turnbull

--
James Turnbull (james <at> lovedthanlost.net)
--
Author of:
Pulling Strings with Puppet
(http://www.amazon.com/gp/product/1590599780/)
Pro Nagios 2.0
(http://www.amazon.com/gp/product/1590596099/)
Hardening Linux
(http://www.amazon.com/gp/product/1590594444/)
(Continue reading)

David Nicol | 3 Feb 2008 22:04
Picon
Gravatar

Re: 'forking' transactions

> >
> > If the sender gets a tempfail for anything other than RCPT TO, I would
> > not expect the sender to split the resend, in fact, it's highly
> > unlikely.
>
> Right.

There were a variety of ESMTP proposals kicked around ASRG concerned with
putting the data before the recipient list; AFAIK nobody ever implemented any
of them.  (Mine imagined the data as a template, and an extended RCPT TO that
included key/value pairs for filling it, solving the non-problem (:))
of conserving
bandwidth for mass e-mail marketers)

--

-- 
`fortune`

prof.freud | 4 Feb 2008 09:13

Re: qpsmtpd-async and dnsbl

Good morning,

> OK, and for prof.freud?...
now it works.

Steve Kemp | 10 Feb 2008 16:14
Picon
Favicon
Gravatar

new plugin: common/require-rdns

  This is a simple plugin which has helped me out a fair bit.  It 
 ensures that connecting hosts have reverse DNS.  (Though it doesn't
 actually care what rdns is present.)

  I have it setup in this order:

common/hosts_allow
common/require-rdns
common/check_earlytalker

  Comments welcome ..  the only obvious comment is that the action is
 hard-wired, but I could change that if it were useful.

Steve
--

-- 
http://mail-scanning.com/

#!/usr/bin/perl -w

=head1 NAME

require-rdns - Test that connecting hosts have reverse DNS record(s).

=cut

=head1 DESCRIPTION

  The smtp servers which connect to us should have reverse DNS.  We don't
 care what it is, but it should be there..

(Continue reading)

Dave Rolsky | 12 Feb 2008 17:59
Gravatar

Re: qpsmtpd and mailman

On Sun, 3 Feb 2008, James Turnbull wrote:

> Does anyone use qpsmtpd with Mailman?  Is there a recommended way to do
> recipient checking?  I use check_goodrcptto currently and can obviously
> add the addresses for lists into its config but is there a better way or
> does someone have a custom plug-in for this that they would be willing
> to share?

I wrote a couple plugins to help me with this (and handling alias files 
nicely). Basically, there are a few pieces.

I have two plugins for determining whether or not the recipient is valid:

* note_local_recipient - this looks to see whether or not the recipient is 
valid by calling getpwnam($user) and then looking in the alias files. It's 
not all that smart, since it just looks at the user portion of the 
address, it doesn't really check that the domain matches (for aliases), 
but it's been helpful in turning away "random username" spam.

* note_mailman_recipient - looks to see if the recipient is a valid 
mailman address based on the lists I have on disk.

* require_connection_notes_key - this requires a key in 
$qp->connection()->notes(). The list of keys can be defined in the 
config, but in my case the valid keys are "local_recipient" or 
"mailman_list"

I'd actually like to see the connection notes thing integrated into 
qpsmtpd and other plugins, since it gives you a flexible way to write 
local plugins. The idea is that often you want to require any of 1 of N 
(Continue reading)


Gmane