Janet - thanks. Yes, I can't access it now I have looked.
OK, had a longer look at this

I note that in /usr/share/qpsmtpd/plugins there is one called check_badmailfrom_patterns which may be either a) similar or b) do the job.
From the plugin :
Patterns are stored in the format pattern\sresponse, where pattern
is a Perl pattern expression. Don't forget to anchor the pattern
(front ^ and back $) if you want to restrict it from matching
anywhere in the string.
^streamsendbouncer@.*\.mailengine1\.com$ Your right-hand side VERP doesn't fool me
^return.*@.*\.pidplate\.biz$ I don't want it regardless of subdomain
^admin.*\.ppoonn400\.com$
So I am not sure if something like these would work (a bit of a stab in the dark !):
^*\.info$
I kludged a bit of code from the plugin to test as follows - you can try it to see if it works 'as expected'. Put the code in a file called domaintest.pl - amend the contents of $user and $domain to test and you should be able to run it on the CLI with perl domaintest.pl :
#!/usr/bin/perl
use strict;
my $user = 'John';
my $domain = 'blog';
my @badmailfrom = ('^*.info$', '^*.test$');
my ($self, $transaction, $sender, %param) = @_;
my $host = lc ($domain);
my $from = lc($user) . '@' . $host;
for (@badmailfrom) {
my ($pattern, $response) = split /\s+/, $_, 2;
next unless $from =~ /$pattern/;
$response = "Your envelope sender is in my badmailfrom_patterns list"
unless $response;
print $response;
}
To enable this plugin you will need to generate some custom templates.
The actual file that dictates which plugins are loaded is :
/var/service/qpsmtpd/config/peers/0
Try a template fragment here :
mkdir /etc/e-smith/templates-custom/var/service/qpsmtpd/config/plugins
echo "check_badmailfrom_patterns" >> /etc/e-smith/templates-custom/var/service/qpsmtpd/config/plugins/31check_badmailfrom_patterns
And we need a symlink :
mkdir /etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/0
cd /etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/0
ln -s ../../plugins/31check_badmailfrom_patterns 31check_badmailfrom_patterns
signal-event email-update
Check that the plugin is there :
cat /var/service/qpsmtpd/config/peers/0
Then you need a file for your patterns :
touch /var/service/qpsmtpd/config/check_badmailfrom_patterns
Then manually add your patterns to this file.
Please note that I make no guarantees about the above - test at your own risk. I'm no real coder so it is all done on a best guess estimate ! Please let us know if it works and it can be added to the wiki.
This could also be templated and added as part of the WBL contrib I guess - if you would like to see it then please open a bug