reject_unknown_client_hostname: move into the junk folder instead of rejecting the e-mail

2011-09-28 Thread Niccolò Belli
Hi, I'd like to use reject_unknown_client_hostname, unfortunately there are just too much misconfigured servers to whitelist them all :( I do not want to just use reject_unknown_reverse_client_hostname instead, I'd like to mark e-mails which fail reject_unknown_reverse_client_hostname as spam s

Re: reject_unknown_client_hostname: move into the junk folder instead of rejecting the e-mail

2011-09-28 Thread Niccolò Belli
Il 28/09/2011 12:50, Niccolò Belli ha scritto: I'd like to mark e-mails which fail reject_unknown_reverse_client_hostname Sorry, I obviously meant "reject_unknown_client_hostname"

Re: reject_unknown_client_hostname: move into the junk folder instead of rejecting the e-mail

2011-09-28 Thread Niccolò Belli
Il 28/09/2011 13:45, Noel Jones ha scritto: You can use a check_client_access table with something like unknown PREPEND X-My-Custom-Header: Unknown client and filter on that. It works, thanks. Probably better to install SpamAssassin. I already use spamass-milter, but how can I achieve it

Re: reject_unknown_client_hostname: move into the junk folder instead of rejecting the e-mail

2011-09-28 Thread Niccolò Belli
Il 28/09/2011 15:02, Noel Jones ha scritto: BTW, you should probably be using reject_unknown_reverse_client_hostname if not already. Yes, I added it instead of reject_unknown_client_hostname. Unfortunately if an user uses a custom sieve script the global one in sieve_global_path = /var/vmail/g

Re: reject_unknown_client_hostname: move into the junk folder instead of rejecting the e-mail

2011-09-28 Thread Niccolò Belli
Il 28/09/2011 15:20, Duane Hill ha scritto: You should look at sieve_before and sieve_after in the Dovecot documentation It works, but I have one last problem. I want it to automatically create the junk folder, so I added mail_plugins = autocreate in protocol imap { } and autocreate = Trash

Re: reject_unknown_client_hostname: move into the junk folder instead of rejecting the e-mail

2011-09-28 Thread Niccolò Belli
Il 28/09/2011 16:39, Steve Fatula ha scritto: You trying to create a Spam folder, or Trash where mail is thrown out when deleted? Your message indicates trash, which is not junk mail. Just a typo, I'm sorry: I wanted to create a SPAM folder. It seems you have to enable thunderbird's junk filte

Re: Rejecting Email by using RBL's

2011-09-29 Thread Niccolò Belli
Il 29/09/2011 20:39, Kaleb Hosie ha scritto: This seems like it should be a simple task but for some reason Postfix isn't rejecting email by using RBL lookups. I suggest you to use policyd-weight instead. Cheers, Niccolò

managesieve firewall

2011-09-29 Thread Niccolò Belli
Hi, This is the managesieve part of my mailserver's firewall: iptables -P INPUT DROP iptables -P OUTPUT DROP iptables -P FORWARD DROP [...] iptables -A MAILSERVER-in -i ${EXT1} -p tcp --dport 4190 -j ACCEPT iptables -A MAILSERVER-out -o ${EXT1} -p tcp --sport 4190 -m state --state ESTABLISHED -j

Re: managesieve firewall

2011-09-29 Thread Niccolò Belli
Il 29/09/2011 22:16, Niccolò Belli ha scritto: It starts working again only if I add _both_ the above rules to my laptop's firewall, which isn't something I may expect the user to do: iptables -A INPUT -p tcp --dport 4190 -j ACCEPT iptables -A INPUT -p tcp --sport 4190 -j ACCEPT Now

Re: managesieve firewall

2011-09-29 Thread Niccolò Belli
It probably is a thunderbird problem because it works randomly :@ I'm starting to hate this e-mail client... Niccolò

Re: managesieve firewall

2011-09-29 Thread Niccolò Belli
Il 29/09/2011 22:34, Reindl Harald ha scritto: first: this is not a component of postfix I'm sorry, I thought I sent it to the dovecot mailing list.