Advertisement
thufir

swaks + logs + config

Jun 8th, 2014
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.33 KB | None | 0 0
  1. thufir@dur:~/Maildir$
  2. thufir@dur:~/Maildir$
  3. thufir@dur:~/Maildir$ sudo stop postfix
  4. stop: Unknown job: postfix
  5. thufir@dur:~/Maildir$ sudo stop dovecot
  6. dovecot stop/waiting
  7. thufir@dur:~/Maildir$ start postfix
  8. start: Unknown job: postfix
  9. thufir@dur:~/Maildir$ start dovecot
  10. start: Unknown job: dovecot
  11. thufir@dur:~/Maildir$
  12. thufir@dur:~/Maildir$ swaks
  13. To: thufir@localhost
  14. === Trying localhost:25...
  15. === Connected to localhost.
  16. <- 220 dur.bounceme.net ESMTP Postfix (Ubuntu)
  17. -> EHLO dur.bounceme.net
  18. <- 250-dur.bounceme.net
  19. <- 250-PIPELINING
  20. <- 250-SIZE 10240000
  21. <- 250-VRFY
  22. <- 250-ETRN
  23. <- 250-STARTTLS
  24. <- 250-ENHANCEDSTATUSCODES
  25. <- 250-8BITMIME
  26. <- 250 DSN
  27. -> MAIL FROM:<thufir@dur.bounceme.net>
  28. <- 250 2.1.0 Ok
  29. -> RCPT TO:<thufir@localhost>
  30. <- 250 2.1.5 Ok
  31. -> DATA
  32. <- 354 End data with <CR><LF>.<CR><LF>
  33. -> Date: Sun, 08 Jun 2014 02:59:05 -0700
  34. -> To: thufir@localhost
  35. -> From: thufir@dur.bounceme.net
  36. -> Subject: test Sun, 08 Jun 2014 02:59:05 -0700
  37. -> X-Mailer: swaks v20130209.0 jetmore.org/john/code/swaks/
  38. ->
  39. -> This is a test mailing
  40. ->
  41. -> .
  42. <- 250 2.0.0 Ok: queued as C115C221E18
  43. -> QUIT
  44. <- 221 2.0.0 Bye
  45. === Connection closed with remote host.
  46. thufir@dur:~/Maildir$
  47. thufir@dur:~/Maildir$ tail /var/log/mail.log
  48. Jun 8 02:58:42 dur dovecot: master: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
  49. Jun 8 02:58:42 dur dovecot: log: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
  50. Jun 8 02:59:05 dur postfix/smtpd[13848]: connect from localhost[127.0.0.1]
  51. Jun 8 02:59:05 dur postfix/smtpd[13848]: C115C221E18: client=localhost[127.0.0.1]
  52. Jun 8 02:59:05 dur postfix/cleanup[13851]: C115C221E18: message-id=<20140608095905.C115C221E18@dur.bounceme.net>
  53. Jun 8 02:59:05 dur postfix/qmgr[11382]: C115C221E18: from=<thufir@dur.bounceme.net>, size=463, nrcpt=1 (queue active)
  54. Jun 8 02:59:05 dur postfix/smtpd[13848]: disconnect from localhost[127.0.0.1]
  55. Jun 8 02:59:05 dur dovecot: lda(thufir): msgid=<20140608095905.C115C221E18@dur.bounceme.net>: saved mail to INBOX
  56. Jun 8 02:59:05 dur postfix/local[13852]: C115C221E18: to=<thufir@localhost>, relay=local, delay=0.15, delays=0.04/0.01/0/0.1, dsn=2.0.0, status=sent (delivered to command: /usr/lib/dovecot/deliver -c /etc/dovecot/dovecot.conf -m "${EXTENSION}")
  57. Jun 8 02:59:05 dur postfix/qmgr[11382]: C115C221E18: removed
  58. thufir@dur:~/Maildir$
  59. thufir@dur:~/Maildir$ ps -A | grep dovecot
  60. thufir@dur:~/Maildir$
  61. thufir@dur:~/Maildir$ cat /etc/postfix/main.cf
  62. # See /usr/share/postfix/main.cf.dist for a commented, more complete version
  63.  
  64.  
  65. # Debian specific: Specifying a file name will cause the first
  66. # line of that file to be used as the name. The Debian default
  67. # is /etc/mailname.
  68. #myorigin = /etc/mailname
  69.  
  70. smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
  71. biff = no
  72.  
  73. # appending .domain is the MUA's job.
  74. append_dot_mydomain = no
  75.  
  76. # Uncomment the next line to generate "delayed mail" warnings
  77. #delay_warning_time = 4h
  78.  
  79. readme_directory = no
  80.  
  81. # TLS parameters
  82. smtpd_tls_cert_file = /etc/dovecot/dovecot.pem
  83. smtpd_tls_key_file = /etc/dovecot/private/dovecot.pem
  84. smtpd_use_tls = yes
  85. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  86. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  87.  
  88. # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
  89. # information on enabling SSL in the smtp client.
  90.  
  91. smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
  92. myhostname = dur.bounceme.net
  93. alias_maps = hash:/etc/aliases
  94. alias_database = hash:/etc/aliases
  95. myorigin = /etc/mailname
  96. mydestination = dur.bounceme.net, localhost.bounceme.net, localhost
  97. relayhost =
  98. mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
  99. mailbox_size_limit = 0
  100. recipient_delimiter = +
  101. inet_interfaces = loopback-only
  102. default_transport = error
  103. relay_transport = error
  104. home_mailbox = Maildir/
  105. smtpd_sasl_auth_enable = yes
  106. smtpd_sasl_type = dovecot
  107. smtpd_sasl_path = private/dovecot-auth
  108. smtpd_sasl_authenticated_header = yes
  109. smtpd_sasl_security_options = noanonymous
  110. smtpd_sasl_local_domain = $myhostname
  111. broken_sasl_auth_clients = yes
  112. smtpd_recipient_restrictions = reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_unauth_pipelining, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
  113. smtpd_sender_restrictions = reject_unknown_sender_domain
  114. mailbox_command = /usr/lib/dovecot/deliver -c /etc/dovecot/dovecot.conf -m "${EXTENSION}"
  115. smtp_use_tls = yes
  116. smtpd_tls_received_header = yes
  117. smtpd_tls_mandatory_protocols = SSLv3, TLSv1
  118. smtpd_tls_mandatory_ciphers = medium
  119. smtpd_tls_auth_only = yes
  120. tls_random_source = dev:/dev/urandom
  121. thufir@dur:~/Maildir$
  122. thufir@dur:~/Maildir$ cat /etc/dovecot/dovecot.conf
  123. ## Dovecot configuration file
  124.  
  125. # If you're in a hurry, see http://wiki2.dovecot.org/QuickConfiguration
  126.  
  127. # "doveconf -n" command gives a clean output of the changed settings. Use it
  128. # instead of copy&pasting files when posting to the Dovecot mailing list.
  129.  
  130. # '#' character and everything after it is treated as comments. Extra spaces
  131. # and tabs are ignored. If you want to use either of these explicitly, put the
  132. # value inside quotes, eg.: key = "# char and trailing whitespace "
  133.  
  134. # Most (but not all) settings can be overridden by different protocols and/or
  135. # source/destination IPs by placing the settings inside sections, for example:
  136. # protocol imap { }, local 127.0.0.1 { }, remote 10.0.0.0/8 { }
  137.  
  138. # Default values are shown for each setting, it's not required to uncomment
  139. # those. These are exceptions to this though: No sections (e.g. namespace {})
  140. # or plugin settings are added by default, they're listed only as examples.
  141. # Paths are also just examples with the real defaults being based on configure
  142. # options. The paths listed here are for configure --prefix=/usr
  143. # --sysconfdir=/etc --localstatedir=/var
  144.  
  145. # Enable installed protocols
  146. !include_try /usr/share/dovecot/protocols.d/*.protocol
  147.  
  148. # A comma separated list of IPs or hosts where to listen in for connections.
  149. # "*" listens in all IPv4 interfaces, "::" listens in all IPv6 interfaces.
  150. # If you want to specify non-default ports or anything more complex,
  151. # edit conf.d/master.conf.
  152. #listen = *, ::
  153.  
  154. # Base directory where to store runtime data.
  155. #base_dir = /var/run/dovecot/
  156.  
  157. # Name of this instance. In multi-instance setup doveadm and other commands
  158. # can use -i <instance_name> to select which instance is used (an alternative
  159. # to -c <config_path>). The instance name is also added to Dovecot processes
  160. # in ps output.
  161. #instance_name = dovecot
  162.  
  163. # Greeting message for clients.
  164. #login_greeting = Dovecot ready.
  165.  
  166. # Space separated list of trusted network ranges. Connections from these
  167. # IPs are allowed to override their IP addresses and ports (for logging and
  168. # for authentication checks). disable_plaintext_auth is also ignored for
  169. # these networks. Typically you'd specify your IMAP proxy servers here.
  170. #login_trusted_networks =
  171.  
  172. # Space separated list of login access check sockets (e.g. tcpwrap)
  173. #login_access_sockets =
  174.  
  175. # With proxy_maybe=yes if proxy destination matches any of these IPs, don't do
  176. # proxying. This isn't necessary normally, but may be useful if the destination
  177. # IP is e.g. a load balancer's IP.
  178. #auth_proxy_self =
  179.  
  180. # Show more verbose process titles (in ps). Currently shows user name and
  181. # IP address. Useful for seeing who are actually using the IMAP processes
  182. # (eg. shared mailboxes or if same uid is used for multiple accounts).
  183. #verbose_proctitle = no
  184.  
  185. # Should all processes be killed when Dovecot master process shuts down.
  186. # Setting this to "no" means that Dovecot can be upgraded without
  187. # forcing existing client connections to close (although that could also be
  188. # a problem if the upgrade is e.g. because of a security fix).
  189. #shutdown_clients = yes
  190.  
  191. # If non-zero, run mail commands via this many connections to doveadm server,
  192. # instead of running them directly in the same process.
  193. #doveadm_worker_count = 0
  194. # UNIX socket or host:port used for connecting to doveadm server
  195. #doveadm_socket_path = doveadm-server
  196.  
  197. # Space separated list of environment variables that are preserved on Dovecot
  198. # startup and passed down to all of its child processes. You can also give
  199. # key=value pairs to always set specific settings.
  200. #import_environment = TZ
  201.  
  202. ##
  203. ## Dictionary server settings
  204. ##
  205.  
  206. # Dictionary can be used to store key=value lists. This is used by several
  207. # plugins. The dictionary can be accessed either directly or though a
  208. # dictionary server. The following dict block maps dictionary names to URIs
  209. # when the server is used. These can then be referenced using URIs in format
  210. # "proxy::<name>".
  211.  
  212. dict {
  213. #quota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
  214. #expire = sqlite:/etc/dovecot/dovecot-dict-sql.conf.ext
  215. }
  216.  
  217. # Most of the actual configuration gets included below. The filenames are
  218. # first sorted by their ASCII value and parsed in that order. The 00-prefixes
  219. # in filenames are intended to make it easier to understand the ordering.
  220. !include conf.d/*.conf
  221.  
  222. # A config file can also tried to be included without giving an error if
  223. # it's not found:
  224. !include_try local.conf
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232. protocols = pop3 pop3s imap imaps
  233. pop3_uidl_format = %08Xu%08Xv
  234. mail_location = maildir:/home/%u/Maildir
  235. disable_plaintext_auth = no
  236. thufir@dur:~/Maildir$
  237. thufir@dur:~/Maildir$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement