Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Jan 24th, 2010 | Syntax: None | Size: 4.26 KB | Hits: 186 | Expires: Never
Copy text to clipboard
  1. procmailrc
  2. ----------
  3. LOGFILE=/var/log/procmail.log
  4. DROPPRIVS=yes
  5.  
  6. :0fw: spamc.lock
  7. * < 256000
  8. | /usr/bin/spamc
  9.  
  10. DATE=`/bin/date +&Y-%m-%d`
  11. MAILBOX=/var/spool/mail/spam
  12.  
  13. :0:
  14. * ^X-Spam-Status: YES
  15. $MAILBOX/$DATE
  16.  
  17. :0:
  18. | /usr/sbin/sendmail -io "$@"
  19.  
  20.  
  21.  
  22.  
  23. master.cf
  24. ----------
  25. smtp      inet  n       -       -       -       -       smtpd -o content_filter=procmail:filter
  26. #submission inet n       -       -       -       -       smtpd
  27. #  -o smtpd_tls_security_level=encrypt
  28. #  -o smtpd_sasl_auth_enable=yes
  29. #  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  30. #  -o milter_macro_daemon_name=ORIGINATING
  31. #smtps     inet  n       -       -       -       -       smtpd
  32. #  -o smtpd_tls_wrappermode=yes
  33. #  -o smtpd_sasl_auth_enable=yes
  34. #  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  35. #  -o milter_macro_daemon_name=ORIGINATING
  36. #628      inet  n       -       -       -       -       qmqpd
  37. pickup    fifo  n       -       -       60      1       pickup
  38. cleanup   unix  n       -       -       -       0       cleanup
  39. qmgr      fifo  n       -       n       300     1       qmgr
  40. #qmgr     fifo  n       -       -       300     1       oqmgr
  41. tlsmgr    unix  -       -       -       1000?   1       tlsmgr
  42. rewrite   unix  -       -       -       -       -       trivial-rewrite
  43. bounce    unix  -       -       -       -       0       bounce
  44. defer     unix  -       -       -       -       0       bounce
  45. trace     unix  -       -       -       -       0       bounce
  46. verify    unix  -       -       -       -       1       verify
  47. flush     unix  n       -       -       1000?   0       flush
  48. proxymap  unix  -       -       n       -       -       proxymap
  49. proxywrite unix -       -       n       -       1       proxymap
  50. smtp      unix  -       -       -       -       -       smtp -o content_filter=procmail:filter
  51. # When relaying mail as backup MX, disable fallback_relay to avoid MX loops
  52. relay     unix  -       -       -       -       -       smtp
  53.         -o smtp_fallback_relay=
  54. #       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
  55. showq     unix  n       -       -       -       -       showq
  56. error     unix  -       -       -       -       -       error
  57. retry     unix  -       -       -       -       -       error
  58. discard   unix  -       -       -       -       -       discard
  59. local     unix  -       n       n       -       -       local
  60. virtual   unix  -       n       n       -       -       virtual
  61. lmtp      unix  -       -       -       -       -       lmtp
  62. anvil     unix  -       -       -       -       1       anvil
  63. scache    unix  -       -       -       -       1       scache
  64. #
  65. # ====================================================================
  66. # Interfaces to non-Postfix software. Be sure to examine the manual
  67. # pages of the non-Postfix software to find out what options it wants.
  68. #
  69. # Many of the following services use the Postfix pipe(8) delivery
  70. # agent.  See the pipe(8) man page for information about ${recipient}
  71. # and other message envelope options.
  72. # ====================================================================
  73. #
  74. # maildrop. See the Postfix MAILDROP_README file for details.
  75. # Also specify in main.cf: maildrop_destination_recipient_limit=1
  76. #
  77. maildrop  unix  -       n       n       -       -       pipe
  78.   flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
  79. uucp      unix  -       n       n       -       -       pipe
  80.   flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
  81. #
  82. # Other external delivery methods.
  83. #
  84. ifmail    unix  -       n       n       -       -       pipe
  85.   flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
  86. bsmtp     unix  -       n       n       -       -       pipe
  87.   flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
  88. scalemail-backend unix  -       n       n       -       2       pipe
  89.   flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
  90. mailman   unix  -       n       n       -       -       pipe
  91.   flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  92.   ${nexthop} ${user}
  93.  
  94. procmail  unix  -       n       n       -       -       pipe
  95.     flags=Rq user=spamd argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender} ${recipient}