diff options
author | sheldonh <sheldonh@FreeBSD.org> | 2001-05-29 23:53:14 +0800 |
---|---|---|
committer | sheldonh <sheldonh@FreeBSD.org> | 2001-05-29 23:53:14 +0800 |
commit | 9cba4600ecf4208c002ad708f31d6483f7a8f12e (patch) | |
tree | 202b69d044e12d6bdc9ae9154cb46e42b0329e60 /mail | |
parent | d7ee26808f55dd83715c8dd1ee1051cee805612b (diff) | |
download | freebsd-ports-gnome-9cba4600ecf4208c002ad708f31d6483f7a8f12e.tar.gz freebsd-ports-gnome-9cba4600ecf4208c002ad708f31d6483f7a8f12e.tar.zst freebsd-ports-gnome-9cba4600ecf4208c002ad708f31d6483f7a8f12e.zip |
Add patches that:
1) Lower the syslog priority of various messages so that only serious
application problems are sent to /var/log/messages and the console
using the standard syslog.conf.
2) Log successful login attempts to that POP-before-SMTP log watchers
can make use of popd's syslog output.
The author has already agreed to incorporate these patches, but will
probably not roll a new release just for this.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/popd/files/patch-mbox_maildir.c | 10 | ||||
-rw-r--r-- | mail/popd/files/patch-mbox_mbf.c | 11 | ||||
-rw-r--r-- | mail/popd/files/patch-popd.c | 19 |
3 files changed, 40 insertions, 0 deletions
diff --git a/mail/popd/files/patch-mbox_maildir.c b/mail/popd/files/patch-mbox_maildir.c new file mode 100644 index 000000000000..699ad6697708 --- /dev/null +++ b/mail/popd/files/patch-mbox_maildir.c @@ -0,0 +1,10 @@ +--- mbox_maildir.c.orig Tue Apr 17 05:09:26 2001 ++++ mbox_maildir.c Wed May 16 08:52:34 2001 +@@ -212,6 +212,7 @@ + continue; + } + } ++ facility = LOG_INFO; + syslog(facility, "%s: retr %d leave %d %d byte%s %d error%s D%d(%d) " + "E%d(%d) R%d(%d)", + user->auth_string, ret, user->mbx.mail.num - del - exp - rem, diff --git a/mail/popd/files/patch-mbox_mbf.c b/mail/popd/files/patch-mbox_mbf.c new file mode 100644 index 000000000000..0df30b9d0baa --- /dev/null +++ b/mail/popd/files/patch-mbox_mbf.c @@ -0,0 +1,11 @@ +--- mbox_mbf.c.orig Tue Apr 17 05:09:26 2001 ++++ mbox_mbf.c Wed May 16 08:52:34 2001 +@@ -178,7 +178,7 @@ + size_t left, bytes, len; + char buffer[MAXBUFLEN]; + +- facility = LOG_NOTICE; ++ facility = LOG_INFO; + ret = del = exp = rem = errors = 0; + dst = -1; + for (i = 0; i <= user->mbx.num; i++) { diff --git a/mail/popd/files/patch-popd.c b/mail/popd/files/patch-popd.c new file mode 100644 index 000000000000..6176902ed794 --- /dev/null +++ b/mail/popd/files/patch-popd.c @@ -0,0 +1,19 @@ +--- popd.c.orig Tue Apr 17 05:09:26 2001 ++++ popd.c Wed May 16 09:00:39 2001 +@@ -501,6 +503,7 @@ + closesigpipe(); + opensigpipe(); + setsignals(); ++ facility = LOG_INFO; + if (config.daemonise || config.debug) + getnameinfo((struct sockaddr *)&addr, addr.ss_len, + ip, sizeof(ip), NULL, 0, +@@ -518,6 +521,8 @@ + sendline("+OK %s ready %s", IDENT, config.timestamp); + switch (authenticate(&user)) { + case TRUE: ++ syslog(facility, "Login user=%s host=[%s]", ++ user->username, ip); + if (!config.proxy) + transaction(user); + else |