Differences between current version and revision by previous author of POPbeforeSMTP.
Other diffs: Previous Major Revision, Previous Revision, or view the Annotated Edit History
Newer page: | version 5 | Last edited on Tuesday, September 16, 2003 4:01:36 pm | by CraigBox | |
Older page: | version 4 | Last edited on Tuesday, September 16, 2003 9:31:32 am | by DanielLawson | Revert |
@@ -38,11 +38,12 @@
The following like will naively match. It works for me :)
match (login): .*\[[([[0-9\.]*)\] ([[^ ]*)
If you have ipv6 enabled cyrus, it seems you need some extra magic in your regex to deal with this. 'normal' ipv4 addresses are reported as
-<pre>
-Sep 16 09:22:49 hydrogen cyrus/pop3d[16212]: login: dsl33-66.world-net.co.nz[::ffff:210.54.33.66] monkey__feet_net_nz plaintext
-</pre>
+
+ Sep 16 09:22:49 hydrogen cyrus/pop3d[
[16212]: login: dsl33-66.world-net.co.nz \
+ [
[::ffff:210.54.33.66] monkey__feet_net_nz plaintext
+
The ::ffff: here screws things up - so I added :f to the inner regex above:
match (login): .*\[[([[:f0-9\.]*)\] ([[^ ]*)