Guest User

Untitled

a guest
Feb 22nd, 2018
353
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.95 KB | None | 0 0
  1. # Default rules for rsyslog.
  2. #
  3. # For more information see rsyslog.conf(5) and /etc/rsyslog.conf
  4.  
  5. #
  6. # First some standard log files. Log by facility.
  7. #
  8. auth,authpriv.* /var/log/auth.log
  9. *.*;auth,authpriv.none -/var/log/syslog
  10. # cron.* /var/log/cron.log
  11. #daemon.* -/var/log/daemon.log
  12. kern.* -/var/log/kern.log
  13. #lpr.* -/var/log/lpr.log
  14. mail.* -/var/log/mail.log
  15. & ~
  16. #user.* -/var/log/user.log
  17.  
  18. #
  19. # Logging for the mail system. Split it up so that
  20. # it is easy to write scripts to parse these files.
  21. #
  22. mail.info -/var/log/mail.info
  23. mail.warn -/var/log/mail.warn
  24. mail.err -/var/log/mail.err
  25. mail.none /var/log/syslog
  26.  
  27. #
  28. # Logging for INN news system.
  29. #
  30. news.crit /var/log/news/news.crit
  31. news.err /var/log/news/news.err
  32. news.notice -/var/log/news/news.notice
  33.  
  34. #
  35. # Some "catch-all" log files.
  36. #
  37. #*.=debug;
  38. # auth,authpriv.none;
  39. # news.none;mail.none -/var/log/debug
  40. #*.=info;*.=notice;*.=warn;
  41. # auth,authpriv.none;
  42. # cron,daemon.none;
  43. # mail,news.none -/var/log/messages
  44.  
  45. #
  46. # Emergencies are sent to everybody logged in.
  47. #
  48. *.emerg :omusrmsg:*
  49.  
  50. #
  51. # I like to have messages displayed on the console, but only on a virtual
  52. # console I usually leave idle.
  53. #
  54. #daemon,mail.*;
  55. # news.=crit;news.=err;news.=notice;
  56. # *.=debug;*.=info;
  57. # *.=notice;*.=warn /dev/tty8
  58.  
  59. # The named pipe /dev/xconsole is for the `xconsole' utility. To use it,
  60. # you must invoke `xconsole' with the `-file' option:
  61. #
  62. # $ xconsole -file /dev/xconsole [...]
  63. #
  64. # NOTE: adjust the list below, or you'll go crazy if you have a reasonably
  65. # busy site..
  66. #
  67. # daemon.*;mail.*;
  68. daemon.*;
  69. news.err;
  70. *.=debug;*.=info;
  71. *.=notice;*.=warn |/dev/xconsole
  72.  
  73. # Don't log Dovecot logins
  74. :msg, contains, "imap-login" ~
  75.  
  76. # /etc/rsyslog.conf Configuration file for rsyslog.
  77. #
  78. # For more information see
  79. # /usr/share/doc/rsyslog-doc/html/rsyslog_conf.html
  80. #
  81. # Default logging rules can be found in /etc/rsyslog.d/50-default.conf
  82.  
  83.  
  84. #################
  85. #### MODULES ####
  86. #################
  87.  
  88. module(load="imuxsock") # provides support for local system logging
  89. module(load="imklog") # provides kernel logging support
  90. #module(load="immark") # provides --MARK-- message capability
  91.  
  92. # provides UDP syslog reception
  93. #module(load="imudp")
  94. #input(type="imudp" port="514")
  95.  
  96. # provides TCP syslog reception
  97. #module(load="imtcp")
  98. #input(type="imtcp" port="514")
  99.  
  100. # Enable non-kernel facility klog messages
  101. $KLogPermitNonKernelFacility on
  102.  
  103. ###########################
  104. #### GLOBAL DIRECTIVES ####
  105. ###########################
  106.  
  107. #
  108. # Use traditional timestamp format.
  109. # To enable high precision timestamps, comment out the following line.
  110. #
  111. $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
  112.  
  113. # Filter duplicated messages
  114. $RepeatedMsgReduction on
  115.  
  116. #
  117. # Set the default permissions for all log files.
  118. #
  119. $FileOwner syslog
  120. $FileGroup adm
  121. $FileCreateMode 0640
  122. $DirCreateMode 0755
  123. $Umask 0022
  124. $PrivDropToUser syslog
  125. $PrivDropToGroup syslog
  126.  
  127. #
  128. # Where to place spool and state files
  129. #
  130. $WorkDirectory /var/spool/rsyslog
  131.  
  132. #
  133. # Include all config files in /etc/rsyslog.d/
  134. #
  135. $IncludeConfig /etc/rsyslog.d/*.conf
  136.  
  137. # 2.2.22 (fe789d2): /etc/dovecot/dovecot.conf
  138. # Pigeonhole version 0.4.13 (7b14904)
  139. # OS: Linux 4.4.0-112-generic x86_64 Ubuntu 16.04.3 LTS ext4
  140. auth_mechanisms = plain login
  141. log_path =
  142. mail_location = maildir:/var/mail/vmail/%d/%n
  143. mail_plugins = " quota"
  144. mail_privileged_group = vmail
  145. managesieve_notify_capability = mailto
  146. managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttext
  147. namespace inbox {
  148. inbox = yes
  149. location =
  150. mailbox Drafts {
  151. auto = subscribe
  152. special_use = Drafts
  153. }
  154. mailbox Junk {
  155. auto = subscribe
  156. special_use = Junk
  157. }
  158. mailbox Sent {
  159. auto = subscribe
  160. special_use = Sent
  161. }
  162. mailbox "Sent Messages" {
  163. special_use = Sent
  164. }
  165. mailbox Trash {
  166. auto = subscribe
  167. special_use = Trash
  168. }
  169. prefix =
  170. }
  171. passdb {
  172. args = /etc/dovecot/dovecot-sql.conf.ext
  173. driver = sql
  174. }
  175. plugin {
  176. quota = maildir:User quota
  177. quota_grace = 10%%
  178. quota_rule = *:storage=5G
  179. quota_rule2 = Trash:storage=+100M
  180. quota_status_overquota = 552 5.2.2 Mailbox is full
  181. sieve = ~/.dovecot.sieve
  182. sieve_after = /etc/dovecot/sieve/spamfilter.sieve
  183. sieve_dir = ~/sieve
  184. }
  185. postmaster_address = my@email.address.here
  186. protocols = " imap lmtp sieve"
  187. service auth {
  188. unix_listener /var/spool/postfix/private/auth {
  189. group = postfix
  190. mode = 0666
  191. user = postfix
  192. }
  193. }
  194. service imap-login {
  195. inet_listener imaps {
  196. port = 993
  197. ssl = yes
  198. }
  199. }
  200. service lmtp {
  201. unix_listener /var/spool/postfix/private/dovecot-lmtp {
  202. group = postfix
  203. mode = 0600
  204. user = postfix
  205. }
  206. }
  207. ssl = required
  208. ssl_cert = </etc/letsencrypt/live/my.domain.name.here/fullchain.pem
  209. ssl_key = </etc/letsencrypt/live/my.domain.name.here/privkey.pem
  210. userdb {
  211. args = /etc/dovecot/dovecot-sql.conf.ext
  212. driver = sql
  213. }
  214. protocol lmtp {
  215. mail_plugins = " quota sieve"
  216. }
  217. protocol lda {
  218. info_log_path =
  219. log_path =
  220. mail_plugins = " quota sieve"
  221. postmaster_address = [my own e-mail address]
  222. syslog_facility = mail
  223. }
  224. protocol imap {
  225. info_log_path =
  226. log_path =
  227. mail_plugins = " quota imap_quota"
  228. syslog_facility = mail
  229. }
  230.  
  231. Feb 22 10:00:31 n40l dovecot: imap-login: Login: user=<my@email.address>, method=PLAIN, rip=::1, lip=::1, mpid=16286, secured, session=<eg2dRsllCusAAAAAAAAAAAAAAAAAAAAB>
  232. Feb 22 10:00:31 n40l dovecot: imap(my@email.address): Logged out in=91 out=928
Add Comment
Please, Sign In to add comment