Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 585518 Details for
Bug 812883
dovecot spam (as mail-proxy)
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
imporoved patch
logwatch-dovecot-proxy.patch (text/plain), 2.88 KB, created by
Harald Reindl
on 2012-05-19 00:41:40 UTC
(
hide
)
Description:
imporoved patch
Filename:
MIME Type:
Creator:
Harald Reindl
Created:
2012-05-19 00:41:40 UTC
Size:
2.88 KB
patch
obsolete
>Index: scripts/services/dovecot >=================================================================== >--- scripts/services/dovecot (revision 100) >+++ scripts/services/dovecot (revision 101) >@@ -198,6 +198,24 @@ > $Connection{$Host}++; > } > >+ # Dovecot 2.0 proxy >+ } elsif ( ($User, $Host) = ( $ThisLine =~ /^$dovecottag pop3-login: proxy\((.*)\): started proxying to .*: user=<.*>, method=.*, rip=(.*)/ ) ) { >+ if ($Host !~ /$IgnoreHost/) { >+ $ProxyLogin{$User}{$Host}++; >+ $ProxyLoginPOP3{$User}++; >+ $ProxyConnectionPOP3{$Host}++; >+ $ProxyConnection{$Host}++; >+ } >+ } elsif ( ($User, $Host) = ( $ThisLine =~ /^$dovecottag imap-login: proxy\((.*)\): started proxying to .*: user=<.*>, method=.*, rip=(.*)/ ) ) { >+ if ($Host !~ /$IgnoreHost/) { >+ $ProxyLogin{$User}{$Host}++; >+ $ProxyLoginIMAP{$User}++; >+ $ProxyConnectionIMAP{$Host}++; >+ $ProxyConnection{$Host}++; >+ } >+ } elsif ( ($Reason) = ( $ThisLine =~ /proxy\(.*\): disconnecting .* \(Disconnected (.*)\)/ ) ) { >+ $ProxyDisconnected{$Reason}++; >+ > } elsif ($ThisLine =~ /Disconnected (\[|top)/) { > $Disconnected{"no reason"}++; > } elsif (($Reason) = ($ThisLine =~ /Disconnected: (.*) \[/) ) { >@@ -485,6 +503,49 @@ > } > } > >+if ( ( $Detail >= 5 ) and (keys %ProxyLogin)) { >+ print "\n\nDovecot Proxy IMAP and POP3 Successful Logins:"; >+ $LoginCount = 0; >+ foreach my $User (sort keys %ProxyLogin) { >+ print "\n User $User:"; >+ if ( ($Detail >= 10) and ($ProxyLoginPOP3{$User} > 0 || $ProxyLoginIMAP{$User} > 0) ) { >+ print " ("; >+ if ($ProxyLoginPOP3{$User} > 0) { print "$ProxyLoginPOP3{$User} POP3"; }; >+ if ($ProxyLoginPOP3{$User} > 0 && $ProxyLoginIMAP{$User} > 0) { print "/"; }; >+ if ($ProxyLoginIMAP{$User} > 0) { print "$ProxyLoginIMAP{$User} IMAP"; }; >+ print ")"; >+ } >+ $UserCount = 0; >+ $NumHosts = 0; >+ foreach $Host (sort keys %{$ProxyLogin{$User}}) { >+ $NumHosts++; >+ $HostCount = $ProxyLogin{$User}{$Host}; >+# Cleanly display IPv4 addresses >+ $Host=~ s/::ffff://; >+ print "\n From $Host: $HostCount Time(s)" if ($Detail >= 10); >+ $UserCount += $HostCount; >+ } >+ $LoginCount += $UserCount; >+ if ($Detail >= 10) { >+ if ($NumHosts > 1) { >+ print "\n Total: $UserCount Time(s)\n"; >+ } else { >+ print "\n"; >+ } >+ } elsif ($Detail >= 5) { >+ print " $UserCount Time(s)"; >+ } >+ } >+ print "\nTotal: $LoginCount successful logins"; >+} >+ >+if (keys %ProxyDisconnected) { >+ print "\n\nDovecot Proxy disconnects:\n"; >+ foreach my $Reason (sort keys %ProxyDisconnected) { >+ print " $Reason: $ProxyDisconnected{$Reason} Time(s)\n"; >+ } >+} >+ > if (keys %OtherList) { > print "\n\n**Unmatched Entries**\n"; > foreach $line (sort {$a cmp $b} keys %OtherList) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 812883
: 585518