Okay I know the reason why now, my mistake.
I need to set the value of CUSTOM2_LOG to /var/log/maillog, it is working now.
Thanks again.
Search found 3 matches
- 03 May 2016, 08:59
- Forum: General Discussion (csf)
- Topic: csf custom regex not working
- Replies: 6
- Views: 4679
- 03 May 2016, 07:41
- Forum: General Discussion (csf)
- Topic: csf custom regex not working
- Replies: 6
- Views: 4679
Re: csf custom regex not working
Hi infinitech07. Your issue is the $1 that you are trying to block. Remeber that anything inside each pair of "( )" will be saved as $1, $2, $3, etc. So, in your log: $1="mona.bmstech.com.au" $2="203.33.248.10" $3="Raymond_Elmo@domain.com" With that in mind, ...
- 03 May 2016, 04:11
- Forum: General Discussion (csf)
- Topic: csf custom regex not working
- Replies: 6
- Views: 4679
Re: csf custom regex not working
Hello, I have the similar issue. I would like to catch the pattern in the log file as below: Apr 29 21:50:41 server postfix/smtpd[20416]: NOQUEUE: reject: RCPT from mona.bmstech.com.au[203.33.248.10]: 450 4.1.1 <Raymond_Elmo@domain.com>: Recipient address rejected: User unknown in virtual mailbox ta...