On Wed, Apr 05, 2023 at 02:37:25AM +0000, Mik J wrote:
> Hello,
> Sometimes I'm getting spam because I have a weakness in my configuration
> At the moment I have
> action TO-CLAM_SMTPD_IN relay host smtp://127.0.0.1:10027
> match from src <clients> for domain <domaines> action TO-CLAM_SMTPD_IN
> match from any for domain <domaines> action TO-CLAM_SMTPD_IN
> The table clients is a file that contains IPs including 127.0.0.1, the table 
> domaines is a list of domains that I host on my mail server
>
> My problem is that a spammer is able to send mails to me when it uses a 
> domain that I host.For example, the file domaines contains mydomain1.org and 
> mydomain2.orgThe spammer doesehlo emtpmail from: 
> <[email protected]>rcpt to: <[email protected]>data
> subject: This is a spam
> Spamspamspam
> .
>
> So I would tend to write a rule such asmatch ! from domain <domaines> for 
> domain <domaines> action TO-CLAM_SMTPD_INConsidering that users that write 
> from mydomain2.org to mydomain1.org match the first rule since they are local 
> or authenticated or coming from one of the known IPs.But this rule is not 
> correct
>
> Thank you

--
with best regards,
Slavik Svyrydiuk

web: www.svyrydiuk.eu

Reply via email to