Masegaloeh:
> On Mon, Mar 26, 2012 at 6:05 PM, Wietse Venema <wie...@porcupine.org> wrote:
> > Masegaloeh:
> >> > First of all, sorry for my bad english.... :)
> >> > I would like to implement smtpd_client_*_count/rate_limit restrictions
> >> > in my box. But, when I look up the stats in my maillog (to determine
> >> > the limit), there is no such stats there. Furthermore, I find out that
> >> > there is no 'anvil process' in maillog.
> >
> > Does anvil send syslog information? If the answer is "no" then
> > that is the problem.
> >
> > Does the syslog daemon receive that information? If the answer
> > is "no" then that is the problem.
> >
> > ? ? ? ?Wietse
> 
> As far as I know, syslog configuration can be found in syslog.conf,
> but it is just default FreeBSD syslog.conf.
> 
> Pardon me, but I'm not expert with kind of syslog or some unix stuff.
> I'm just someone who interested in this mail system. Could you teach
> me how to track that syslog issue?

The following is for FreeBSD. If this does not work, then you
need to find help from people who have more time than I have.

        Wietse

Turn off ANVIL exceptions.
    # postconf smtpd_client_event_limit_exceptions=
    # postfix reload

Stop syslogd.
    # sh /etc/rc.d/syslogd stop

Start syslogd BY HAND in debug mode:
    # syslogd -d

Leave syslogd running like this.

Open a new window.
Connect to the Postfix SMTP port.
    # telnet 127.0.0.1 25

You should see syslogd debug output from smtpd.

    logmsg: pri 26, flags 0, from laptop, msg Mar 26 09:21:18 
postfix/smtpd[2651]: connect from laptop.example.com[127.0.0.1]

Force anvil to produce statistics.
    # postfix reload

You should see syslogd debug output from anvil.

    logmsg: pri 26, flags 0, from laptop, msg Mar 26 09:22:06 
postfix/postfix-script[2678]: refreshing the Postfix mail system
    Logging to FILE /var/log/maillog
    logmsg: pri 26, flags 0, from laptop, msg Mar 26 09:22:06 
postfix/master[2329]: reload -- version 2.10-20120308, configuration 
/etc/postfix
    Logging to FILE /var/log/maillog
    logmsg: pri 26, flags 0, from laptop, msg Mar 26 09:22:06 
postfix/anvil[2653]: statistics: max connection rate 1/60s for (smtp:127.0.0.1) 
at Mar 26 09:21:18
    Logging to FILE /var/log/maillog
    logmsg: pri 26, flags 0, from laptop, msg Mar 26 09:22:06 
postfix/anvil[2653]: statistics: max connection count 1 for (smtp:127.0.0.1) at 
Mar 26 09:21:18
    Logging to FILE /var/log/maillog
    logmsg: pri 26, flags 0, from laptop, msg Mar 26 09:22:06 
postfix/anvil[2653]: statistics: max cache size 1 at Mar 26 09:21:18

Reply via email to