On Wednesday 28 September 2011 05:50:56 Niccolò Belli wrote:
> 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

You can get away with reject_unknown_reverse_client_hostname with 
little or no unintended consequences, however. The big players do 
this, so you might as well do it also.

[your typo corrected]
> instead, I'd like to mark e-mails which fail
> reject_unknown_client_hostname as spam so that I will be
> able to move them to the junk folder with sieve. Is there any way
> to achieve it?

A check_client_access lookup:

smtpd_mumble_restrictions = [ ... ]
    check_client_access hash:$config_directory/unknown-junk[, ... ]

unknown-junk:
unknown         PREPEND X-Unknown-Client: Junk

And configure your sieve to deliver that header accordingly.
-- 
    Offlist mail to this address is discarded unless
    "/dev/rob0" or "not-spam" is in Subject: header

Reply via email to