1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162
|
.\" -*- mode: troff; coding: utf-8 -*-
.\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43)
.\"
.\" Standard preamble:
.\" ========================================================================
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Vb \" Begin verbatim text
.ft CW
.nf
.ne \\$1
..
.de Ve \" End verbatim text
.ft R
.fi
..
.\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>.
.ie n \{\
. ds C` ""
. ds C' ""
'br\}
.el\{\
. ds C`
. ds C'
'br\}
.\"
.\" Escape single quotes in literal strings from groff's Unicode transform.
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\"
.\" If the F register is >0, we'll generate index entries on stderr for
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
.\" entries marked with X<> in POD. Of course, you'll have to process the
.\" output yourself in some meaningful fashion.
.\"
.\" Avoid warning from groff about undefined register 'F'.
.de IX
..
.nr rF 0
.if \n(.g .if rF .nr rF 1
.if (\n(rF:(\n(.g==0)) \{\
. if \nF \{\
. de IX
. tm Index:\\$1\t\\n%\t"\\$2"
..
. if !\nF==2 \{\
. nr % 0
. nr F 2
. \}
. \}
.\}
.rr rF
.\" ========================================================================
.\"
.IX Title "PFTOBYFROM 1"
.TH PFTOBYFROM 1 2025-05-22 1.1.13 "User Contributed Perl Documentation"
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
.nh
.SH NAME
pftobyfrom \- List "to" addresses by "from" whom in Postfix log file
.PP
Copyright (C) 2007\-2025 by James S. Seymour, Release 1.3
.SH "SYNOPSIS pftobyfrom \-[bhrRv] <sender> [mailfile]"
.IX Header "SYNOPSIS pftobyfrom -[bhrRv] <sender> [mailfile]"
.Vb 1
\& If no file(s) specified, reads from stdin. Output is to stdout.
.Ve
.SH DESCRIPTION
.IX Header "DESCRIPTION"
.Vb 2
\& pftobyfrom parses Postfix log files to generate a list of "to" addresses,
\& based on a specified "from" address or address fragment.
.Ve
.SH OPTIONS
.IX Header "OPTIONS"
.Vb 1
\& \-b Include bounces
\&
\& \-h Emit help message and exit
\&
\& \-r Include rejects
\&
\& \-R Hard rejects only
\&
\& \-v Emit version and exit
.Ve
.SH "RETURN VALUE"
.IX Header "RETURN VALUE"
.Vb 1
\& pftobyfrom doesn\*(Aqt return anything of interest to the shell.
.Ve
.SH ERRORS
.IX Header "ERRORS"
.Vb 1
\& Error messages are emitted to stderr.
.Ve
.SH EXAMPLES
.IX Header "EXAMPLES"
.Vb 1
\& pftobyfrom example.com /var/log/maillog
\&
\& Generates a list of all the recipients of email from any senders
\& in "example.com"
\&
\& As a convenience, pftobyfrom tries to intelligently determine how to
\& handle regexp meta\-characters. If it\*(Aqs passed a search expression
\& that does NOT contain meta\-character escapes ("\e"), it will assume
\& that "." and "+" are literals, and will escape them for you. In the
\& example above, the "." in the FQDN part of the search term would\*(Aqve
\& been automatically escaped for the user. Likewise:
\&
\& pftobyfrom username+foo@example.com /var/log/maillog
\&
\& would have the "+" and "." escaped. If you wanted to find all
\& plussed senders for "username," you\*(Aqd have to do:
\&
\& pftobyfrom \*(Aqusername\e+.+@example\e.com\*(Aq /var/log/maillog
.Ve
.SH "SEE ALSO"
.IX Header "SEE ALSO"
.Vb 1
\& pflogsumm, pffrombyto
.Ve
.SH NOTES
.IX Header "NOTES"
.Vb 1
\& All search terms and searched fields are lower\-cased.
\&
\& The pftobyfrom Home Page is at:
\&
\& http://jimsun.LinxNet.com/postfix_contrib.html
.Ve
.SH REQUIREMENTS
.IX Header "REQUIREMENTS"
.Vb 1
\& Perl
.Ve
.SH LICENSE
.IX Header "LICENSE"
.Vb 4
\& This program is free software; you can redistribute it and/or
\& modify it under the terms of the GNU General Public License
\& as published by the Free Software Foundation; either version 2
\& of the License, or (at your option) any later version.
\&
\& This program is distributed in the hope that it will be useful,
\& but WITHOUT ANY WARRANTY; without even the implied warranty of
\& MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\& GNU General Public License for more details.
\&
\& You may have received a copy of the GNU General Public License
\& along with this program; if not, write to the Free Software
\& Foundation, Inc., 59 Temple Place \- Suite 330, Boston, MA 02111\-1307,
\& USA.
\&
\& An on\-line copy of the GNU General Public License can be found
\& http://www.fsf.org/copyleft/gpl.html.
.Ve
|