[Postfixbuch-users] Frage zu debug_peer_list

Sven Schoeppner schoeppner at biotec.uni-bremen.de
Do Nov 11 11:19:31 CET 2004


Gutem Morgen zusammen,
Wie kann ich es anstellen, dass der Sender (FROM) den Auszug der 
Logdatei via Mail erhält, wenn er in der debug_list steht.

Also
debug_peer_list  = 192.168.10.5


Händisch würde ich den  Auszug
grep  [14023] | mail ajk at comnets.local.de


so mailen.

Wie komme ich an die Angabe der ProssesNummer (hier 14023) heran?


script
sender=From:<ajk at comnets.local.de>
ProssesNummer=14023

Grep $ProssesNummer | mail -s $ProssesNummer $sender



Logauszug
Nov 11 11:04:29 btsun1 postfix/smtpd[14023]: disconnect from 
stateless3.tiscali.cz[213.235.135.72]
Nov 11 11:05:06 btsun1 postfix/smtpd[14023]: connect from 
sam.comnets.local.de[192.168.0.5]
Nov 11 11:05:06 btsun1 postfix/smtpd[14023]: > 
sam.comnets.local.de[192.168.0.5]: 220 btsun1.biotec.local.de ESMTP
Nov 11 11:05:06 btsun1 postfix/smtpd[14023]: watchdog_pat: 0x807dae8
Nov 11 11:05:15 btsun1 postfix/smtpd[14023]: < 
sam.comnets.local.de[192.168.0.5]: EHLO bugs.comnets.local.de
Nov 11 11:05:15 btsun1 postfix/smtpd[14023]: > 
sam.comnets.local.de[192.168.0.5]: 250-btsun1.biotec.local.de
Nov 11 11:05:15 btsun1 postfix/smtpd[14023]: > 
sam.comnets.local.de[192.168.0.5]: 250-PIPELINING
Nov 11 11:05:15 btsun1 postfix/smtpd[14023]: > 
sam.comnets.local.de[192.168.0.5]: 250-SIZE 80240000
Nov 11 11:05:15 btsun1 postfix/smtpd[14023]: > 
sam.comnets.local.de[192.168.0.5]: 250-VRFY
Nov 11 11:05:15 btsun1 postfix/smtpd[14023]: > 
sam.comnets.local.de[192.168.0.5]: 250-ETRN
Nov 11 11:05:15 btsun1 postfix/smtpd[14023]: match_list_match: 
sam.comnets.local.de: no match
Nov 11 11:05:15 btsun1 postfix/smtpd[14023]: match_list_match: 
192.168.0.5: no match
Nov 11 11:05:15 btsun1 postfix/smtpd[14023]: > 
sam.comnets.local.de[192.168.0.5]: 250 8BITMIME
Nov 11 11:05:15 btsun1 postfix/smtpd[14023]: watchdog_pat: 0x807dae8
Nov 11 11:06:48 btsun1 postfix/smtpd[14023]: < 
sam.comnets.local.de[192.168.0.5]: MAIL From:<ajk at comnets.local.de>
Nov 11 11:06:48 btsun1 postfix/smtpd[14023]: extract_addr: input: 
<ajk at comnets.local.de>
Nov 11 11:06:48 btsun1 postfix/smtpd[14023]: smtpd_check_addr: 
addr=ajk at comnets.local.de



Mehr Informationen über die Mailingliste Postfixbuch-users