On 3/5/2015 11:36 AM, btb wrote: > when reviewing postscreen entries in logs, it's difficult to quickly > grep for entries relevant to a particular session, since the only > unique value in the entry is the pid, which is quite long lived and > spans many sessions. i wondered how practical it might be to > include a unique id along with the log message, to assist in > exercises like this. > > -ben
The log entry contains the client IP and source port, which should be sufficiently unique. You can use "grep -F 'pattern' /path/to/logfile" to avoid the annoyance of escaping special characters. Postfix QUEUEID generation is fairly time-consuming, and not practical to use in postscreen. -- Noel Jones