qpsmtpd Wiki

[[resources:questions]]

You are here: start » resources » questions

Login

You are currently not logged in! Enter your authentication credentials below to log in. You need to have cookies enabled to log in.

Login

You don't have an account yet? Just get one: Register

Forgotten your password? Get a new one: Set new password

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

resources:questions [2007/01/12 23:19]
jamtur01 Document moved from questions
resources:questions [2010/09/09 22:06] (current)
raykwebster
Line 18: Line 18:
  
 I was wondering if anybody has played around with qpsmtdp as a spam trap. I get a lot of spam attempts to silly addresses like [[errorstousername@almqvist.net]] and [[deliveredtousername@almqvist.net]] that are obviously results of braindead header parsing; and I know any message to these addresses is complete spam so I'd like to blacklist the sender's IP and feed the message to ''spamassassin -r'' or at least to ''sa-learn --spam''. But to do so, I'd have to accept the message... I was wondering if anybody has played around with qpsmtdp as a spam trap. I get a lot of spam attempts to silly addresses like [[errorstousername@almqvist.net]] and [[deliveredtousername@almqvist.net]] that are obviously results of braindead header parsing; and I know any message to these addresses is complete spam so I'd like to blacklist the sender's IP and feed the message to ''spamassassin -r'' or at least to ''sa-learn --spam''. But to do so, I'd have to accept the message...
 +
 +===== Coding Question =====
 +
 +Version: 0.32
 +
 +I want to add an entry to the header after it is confirmed that the sending server is a valid MX record. The plugin I think I should use is require_resolvable_fromhost. Here is single line of code that I added to the file just before it returned DECLINED;
 +
 +  $transaction->header->new('X-Matched');
 +
 +Nothing happened to the header
 +
 +The log gives the following;
 +
 +PLUGIN ERROR:  Can't call method "new" on an undefined value at ./plugins/require_resolvable_fromhost.20100909 line 38
 +
 +I get the same error if I use method add or replace.
 +
 +Any ideas to add the header line would be appreciated.
 + --- //[[rkwebster@comcast.net|Ray Webster]] 2010/09/09 21:58//