title: filtering postfix log which mail was sent or bounced
body: <p>I have a problem with filtering log of postfix in /var/log/maillog.</p>
  
  <p>I do a command <code>cat maillog | grep bounced | grep said</code> and filtering which mails didn't sent and reason of its like this: </p>
  
  <p>Nov 10 10:48:40 host-10-190-10-26 postfix/smtp[7075]: 7AF986C13: to=, relay=gmail-smtp-in.l.google.com</p>
  
  <p>[74.125.28.26]:25, delay=2.1, delays=0.04/0/1.9/0.2, dsn=5.1.1, status=bounced (host gmail-smtp-in.l.google.com[74.125.28.26] said: </p>
  
  <p>550-5.1.1 The email account that you tried to reach does not exist. Please try 550-5.1.1 double-checking the recipient's email address </p>
  
  <p>for typos or 550-5.1.1 unnecessary spaces. Learn more at 550 5.1.1 <a href="http://support.google.com/mail/bin/answer.py?answer=6596" rel="nofollow">http://support.google.com/mail/bin/answer.py?answer=6596</a> </p>
  
  <p>wv1si15262329pab.224 - gsmtp (in reply to RCPT TO command))
  Nov 13 10:47:28 host-10-190-10-26 postfix/smtp[28250]: B0D491E80: to=, relay=gmail-smtp-in.l.google.com</p>
  
  <p>[74.125.20.27]:25, delay=3, delays=0.02/0.02/2.8/0.23, dsn=5.1.1, status=bounced (host gmail-smtp-in.l.google.com[74.125.20.27] said: </p>
  
  <p>550-5.1.1 The email account that you tried to reach does not exist. Please try 550-5.1.1 double-checking the recipient's email address </p>
  
  <p>for typos or 550-5.1.1 unnecessary spaces. Learn more at 550 5.1.1 <a href="http://support.google.com/mail/bin/answer.py?answer=6596" rel="nofollow">http://support.google.com/mail/bin/answer.py?answer=6596</a> </p>
  
  <p>ce9si24575145pdb.68 - gsmtp (in reply to RCPT TO command))
  Nov 13 10:49:41 host-10-190-10-26 postfix/smtp[28278]: 525811E80: to=, relay=www.haha.com[140.174.93.116]:25, delay=7.2, </p>
  
  <p>delays=0.05/0.01/6.6/0.53, dsn=5.3.0, status=bounced (host www.haha.com[140.174.93.116] said: 553 5.3.0 ... User unknown </p>
  
  <p>(in reply to RCPT TO command))</p>
  
  <p>and now I need to export the following fields: <em>to</em> and <em>said:</em> into a file with 2 columm</p>
  
  <p>Someone help me or give a some idea.</p>