It can do this in a limited fashion right now. If the improper To field is always "To: %from_email" (or something from a known set of bad values), you could use the header blacklist filter to block it. But at present, there's no way to block a message with a missing header line.
-- Sam Clippinger On Jun 24, 2015, at 10:40 AM, Shane Bywater via spamdyke-users <spamdyke-users@spamdyke.org> wrote: > Hi, > Does anyone know if spamdyke can reject an email if it contains > improper "from" and "to" fields (for example no from address)? I get > hundreds of entries daily in the maillog file as shown below and would rather > qmail not even try to send a bounce message to such emails. > > Jun 24 11:31:15 qmail-queue-handlers[20290]: Handlers Filter before-queue for > qmail started ... > Jun 24 11:31:15 qmail-queue-handlers[20290]: from= > Jun 24 11:31:15 qmail-queue-handlers[20290]: to=%from_email > Jun 24 11:31:15 qmail-queue-handlers[20290]: Unable to get sender domain by > sender mailname > Jun 24 11:31:15 qmail-queue-handlers[20290]: Unable to get sender domain by > sender mailname > Jun 24 11:31:15 qmail-queue-handlers[20290]: Unable to get sender domain by > sender mailname > Jun 24 11:31:15 qmail-queue-handlers[20290]: Unable to get sender domain by > sender mailname > Jun 24 11:31:15 qmail-queue-handlers[20290]: Incorrect recipient mailname : > %from_email > Jun 24 11:31:15 qmail: 1435159875.553019 warning: trouble injecting bounce > message, will try later > > Note: I'm using spamdyke 5.0.1 on a Plesk 10.4 CentOS 6 server. BTW > thanks to Sam for continuing to develop and improve spamdyke. > > Regards, > Shane Bywater > _______________________________________________ > spamdyke-users mailing list > spamdyke-users@spamdyke.org > http://www.spamdyke.org/mailman/listinfo/spamdyke-users
_______________________________________________ spamdyke-users mailing list spamdyke-users@spamdyke.org http://www.spamdyke.org/mailman/listinfo/spamdyke-users