On 05/08/17 12:26, Markus Rosjat wrote:

Hi,

I have something like

bgp-spamd:\
         :black:\
         :msg="Your address %A has sent mail to a spamtrap\n\
          within the last 24 hours":\
         :method=file:\
         :file=/var/mail/spamd.black:

in /etc/mail/spamd.conf

and a cron job /bin/sh /etc/mail/bgp-spamd.black.sh which has

#!/bin/sh
AS=65066

bgpctl show rib community ${AS}:666 |
        sed -e '1,4d' -e 's/\/.*$//' -e 's/[ \*\>]*//' >
/var/mail/spamd.black

/usr/libexec/spamd-setup

# EOF

Just double checked and can see it is being updated.

$ ls -l /var/mail/spamd.black
-rw-r--r--  1 root  wheel  233006 May  8 05:20 /var/mail/spamd.black

Hope this helps,

Vijay


I don't want to copy the results in a list for now I simply want to get any results at all :)
so as long as

bgpctl show rib community 65066:666

doesn't give any results I won't see any IP's in a spamlist file at all

regards


Hello Markus,
just on a hunch, did you remove the deny blocks that are listed in /etc/examples/bgpd.conf?

Cheers
Kim

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to