thufir

swaks + logs + config

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