On 2015-04-12 13:05, jseb wrote:
This one works:
accept from any for domain <domains> virtual <catchall> deliver to maildir accept from any for domain <domains> alias <aliases> deliver to maildir

But in this case all will be catched!

Yes.
Reading other answers, i tried to add a blacklist file with rule:

table forbidden_users file:/etc/smtpd/forbidden_users

accept from any for domain <domains> recipient !<forbidden_users>
virtual <catchall> deliver to maildir


(content of /etc/smtpd/forbidden_users):
#just the email to be filtered
#(here, AT replaces @ because of gmane addresses filtering)
filtremoiATgammaray.finiderire.com

When i send an email to "filtremoi...", it is filtered.

Note that it didn't work when i tried with the B+usualB; database syntax, that is:
filteredATbidule.net filteredATbidule.net

they use this syntax here:
http://www.openbsd-edu.net/index.php?title=Le_mail_sous_OpenBSD#Blacklister_un_utilisateur

You see:
touch /etc/mail/blacklist-recipients
echo "patricklecassepiedATgmail.com patricklecassepiedATgmail.com" >>
/etc/mail/blacklist-recipients

But if you do that, you have errors like B+invalid use of RECIPIENT tableB;. So i tried with only one occurence of email address to block, and it worked.


Also, i'm now in B+catch-all but not too muchB; (that means, that some
accounts are for others users than me).
e.g. :

table catchall { "@" => me, "root@" => root }

It seems to work, but that's another story.

I did it similar like you. I put all users defined in userbase in recipients file and added recipient ! <recipients> to the rule. It works, but makes the configuration more complex. Nevertheless "domain" seems to work like ED wrote. So I will lose the "alias" functionality.

I decided to not do a catchall cause it is ok for me that a mail will be rejected if there is no mailbox. It is still a test system.



--
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]

Reply via email to