aquaballoon

Mail Server

Sep 18th, 2011
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.68 KB | None | 0 0
  1. Mail Server
  2.  
  3. Postfix
  4.  
  5. $ sudo gedit /etc/hostname
  6.  
  7. aquaballoon.net
  8.  
  9. $ sudo apt-get install postfix
  10.  
  11. $ sudo dpkg-reconfigure postfix
  12.  
  13. Internet Site
  14. aquaballoon.net
  15. Jason Lee
  16. aquaballoon.net, localhost
  17. No
  18. 127.0.0.0/8
  19. 0
  20. +
  21. all
  22.  
  23. $ sudo apt-get install dovecot-postfix
  24.  
  25. $ sudo /etc/init.d/postfix restart
  26.  
  27. $ sudo gedit /etc/postfix/main.cf
  28.  
  29. # See /usr/share/postfix/main.cf.dist for a commented, more complete version
  30.  
  31. # Debian specific:  Specifying a file name will cause the first
  32. # line of that file to be used as the name.  The Debian default
  33. # is /etc/mailname.
  34. #myorigin = /etc/mailname
  35.  
  36. smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
  37. biff = no
  38.  
  39. # appending .domain is the MUA's job.
  40. append_dot_mydomain = no
  41.  
  42. # Uncomment the next line to generate "delayed mail" warnings
  43. #delay_warning_time = 4h
  44.  
  45. readme_directory = no
  46.  
  47. # TLS parameters
  48. smtpd_tls_cert_file = /etc/ssl/certs/ssl-mail.pem
  49. smtpd_tls_key_file = /etc/ssl/private/ssl-mail.key
  50. smtpd_use_tls = yes
  51. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  52. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  53.  
  54. # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
  55. # information on enabling SSL in the smtp client.
  56.  
  57. alias_maps = hash:/etc/aliases
  58. alias_database = hash:/etc/aliases
  59. myorigin = $mydomain
  60. mydestination = aquaballoon.net, localhost
  61. mynetworks = 127.0.0.0/8
  62. mailbox_size_limit = 0
  63. recipient_delimiter = +
  64.  
  65.  
  66. Imap / POP3
  67.  
  68. $ sudo apt-get install dovecot-imapd dovecot-pop3d dovecot-common
  69.  
  70. $ sudo gedit /etc/dovecot/dovecot.conf
  71.  
  72. mail_location = mbox:~/mail/:INBOX=/var/mail/%u
  73.  
  74. $ /etc/init.d/dovecot restart
Advertisement
Add Comment
Please, Sign In to add comment