Want more features on Pastebin? Sign Up, it's FREE!
Guest

postfix-suiadm

By: a guest on Nov 15th, 2011  |  syntax: Bash  |  size: 5.56 KB  |  views: 42  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. -------------------------------------------------------------------------------
  2. -- "cat /var/log/mail.log":
  3. -------------------------------------------------------------------------------
  4.  
  5. Nov 15 10:19:45 mydebianserver postfix/pickup[19631]: 99DA819C1B8: uid=1000 from=<administrator>
  6. Nov 15 10:19:45 mydebianserver postfix/cleanup[21586]: 99DA819C1B8: message-id=<20111115161945.99DA819C1B8@mydebianserver.localdomain>
  7. Nov 15 10:19:45 mydebianserver postfix/qmgr[19632]: 99DA819C1B8: from=<administrator@mydebianserver.localdomain>, size=334, nrcpt=1 (queue active)
  8. Nov 15 10:19:46 mydebianserver postfix/smtp[21588]: 99DA819C1B8: to=<i_substitudeted_my_real_addr@somedomain_i_own.com>, relay=none, delay=0.45, delays=0.45/0/0/0, dsn=5.4.6, status=bounced (mail for somedomain_i_own.com loops back to myself)
  9. Nov 15 10:19:46 mydebianserver postfix/cleanup[21586]: 0C7E519C1B9: message-id=<20111115161946.0C7E519C1B9@mydebianserver.localdomain>
  10. Nov 15 10:19:46 mydebianserver postfix/bounce[21589]: 99DA819C1B8: sender non-delivery notification: 0C7E519C1B9
  11. Nov 15 10:19:46 mydebianserver postfix/qmgr[19632]: 0C7E519C1B9: from=<>, size=2243, nrcpt=1 (queue active)
  12. Nov 15 10:19:46 mydebianserver postfix/qmgr[19632]: 99DA819C1B8: removed
  13. Nov 15 10:19:46 mydebianserver postfix/local[21590]: 0C7E519C1B9: to=<administrator@mydebianserver.localdomain>, relay=local, delay=0.13, delays=0.07/0/0/0.07, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
  14. Nov 15 10:19:46 mydebianserver postfix/qmgr[19632]: 0C7E519C1B9: removed
  15.  
  16. -------------------------------------------------------------------------------
  17. -- showing the most recent output from "sudo egrep '(warning|error|fatal|panic):' /var/log/mail.log | more" (the others are sure to be fixed already):
  18. -------------------------------------------------------------------------------
  19. Nov 15 10:19:13 mydebianserver postfix/local[21590]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
  20.  
  21. -------------------------------------------------------------------------------
  22. -- did "/usr/sbin/sendmail -bv i_substitudeted_my_real_addr@somedomain_i_own.com" and checked <root>s mail:
  23. -------------------------------------------------------------------------------
  24. Message XXXX:
  25. From MAILER-DAEMON  Tue Nov 15 10:11:25 2011
  26. X-Original-To: administrator@mydebianserver.localdomain
  27. Date: Tue, 15 Nov 2011 10:11:25 -0600 (CST)
  28. From: MAILER-DAEMON@mydebianserver.localdomain (Mail Delivery System)
  29. Subject: Undelivered Mail Returned to Sender
  30. To: administrator@mydebianserver.localdomain
  31. Auto-Submitted: auto-replied
  32. MIME-Version: 1.0
  33. Content-Type: multipart/report; report-type=delivery-status;
  34.         boundary="7B2CB19C1B8.1321373485/mydebianserver.localdomain"
  35.  
  36. This is a MIME-encapsulated message.
  37.  
  38. --7B2CB19C1B8.1321373485/mydebianserver.localdomain
  39. Content-Description: Notification
  40. Content-Type: text/plain; charset=us-ascii
  41.  
  42. This is the mail system at host mydebianserver.localdomain.
  43.  
  44. I'm sorry to have to inform you that your message could not
  45. be delivered to one or more recipients. It's attached below.
  46.  
  47. For further assistance, please send mail to postmaster.
  48.  
  49. If you do so, please include this problem report. You can
  50. delete your own text from the attached returned message.
  51.  
  52.                    The mail system
  53.  
  54. <i_substitudeted_my_real_addr@somedomain_i_own.com>: mail for somedomain_i_own.com loops back to
  55.     myself
  56.  
  57. --7B2CB19C1B8.1321373485/mydebianserver.localdomain
  58. Content-Description: Delivery report
  59. Content-Type: message/delivery-status
  60.  
  61. Reporting-MTA: dns; mydebianserver.localdomain
  62. X-Postfix-Queue-ID: 7B2CB19C1B8
  63. X-Postfix-Sender: rfc822; administrator@mydebianserver.localdomain
  64. Arrival-Date: Tue, 15 Nov 2011 10:11:25 -0600 (CST)
  65.  
  66. Final-Recipient: rfc822; i_substitudeted_my_real_addr@somedomain_i_own.com
  67. Action: failed
  68. Status: 5.4.6
  69. Diagnostic-Code: X-Postfix; mail for somedomain_i_own.com loops back to myself
  70.  
  71. --7B2CB19C1B8.1321373485/mydebianserver.localdomain
  72. Content-Description: Undelivered Message
  73. Content-Type: message/rfc822
  74.  
  75. Return-Path: <administrator@mydebianserver.localdomain>
  76. Received: by mydebianserver.localdomain (Postfix, from userid 1000)
  77.         id 7B2CB19C1B8; Tue, 15 Nov 2011 10:11:25 -0600 (CST)
  78. To: i_substitudeted_my_real_addr@somedomain_i_own.com
  79. Message-Id: <20111115161125.7B2CB19C1B8@mydebianserver.localdomain>
  80. Date: Tue, 15 Nov 2011 10:11:25 -0600 (CST)
  81. From: administrator@mydebianserver.localdomain (administrator)
  82.  
  83. test
  84.  
  85. --7B2CB19C1B8.1321373485/mydebianserver.localdomain--
  86.  
  87.  
  88.  
  89. -------------------------------------------------------------------------------
  90. -- showing a bit of /etc/postfix/master.cf (I use port 25000 because port 25 is used by other):
  91. -------------------------------------------------------------------------------
  92.  
  93. # ==========================================================================
  94. # service type  private unpriv  chroot  wakeup  maxproc command + args
  95. #               (yes)   (yes)   (yes)   (never) (100)
  96. # ==========================================================================
  97. #smtp      inet  n       -       -       -       -       smtpd
  98. 25000   inet    n       -       -       -       -       smtpd
  99.  
  100.  
  101.  
  102. -------------------------------------------------------------------------------
  103. "tcpdump -w file.out -s 0 host somedomain_i_own.com and port 25000":
  104. -------------------------------------------------------------------------------
  105.  
  106. tcpdump: listening on eth1, link-type EN10MB (Ethernet), capture size 65535 bytes
  107. ^C0 packets captured
  108. 4 packets received by filter
  109. 0 packets dropped by kernel
  110.  
  111.  
clone this paste RAW Paste Data