#freeze
**設定 [#mfc9da58]

#contents

1.x系の設定。~
2.x系の設定は後日・・・~

----
***dovecot.conf [#s639d0d6]
 ## Dovecot configuration file
 #base_dir = /var/run/dovecot/
 protocols = pop3 pop3s imap imaps
 protocol imap {
     listen = xxx.xxx.xxx.xxx:143 yyy.yyy.yyy.yyy:143
     ssl_listen = *:993
 }
 protocol pop3 {
     listen = *:110
     ss_listen = *:995
 }
 複数設定する場合は、スペースでセパレートする。
 
 disable_plaintext_auth = yes
 shutdown_clients = yes
 
 ##
 ## Logging
 ##
 #log_path =
 #info_log_path =
 #log_timestamp = "%b %d %H:%M:%S "
 #syslog_facility = mail
 デフォルトでmaillogに吐くので放置。
 
 ##
 ## SSL settings
 ##
 #ssl_listen =
 ssl = yes
 ssl_cert_file = /xxx/xxx/mail.crt
 ssl_key_file = /xxx/xxx/mail.key
 #ssl_key_password =
 #ssl_ca_file =
 #ssl_verify_client_cert = no
 #ssl_cert_username_field = commonName
 #ssl_parameters_regenerate = 168
 ssl_cipher_list = TLSv1:SHA:!MD5:!RC4:!DES:!NULL:@STRENGTH
 #verbose_ssl = no
 
 ##
 ## Login processes
 ##
 #login_dir = /var/run/dovecot/login
 #login_chroot = yes
 #login_user = dovecot
 #login_process_size = 64
 #login_process_per_connection = yes
 #login_processes_count = 3
 #login_max_processes_count = 128
 #login_max_connections = 256
 login_greeting = Dovecot ready.
 #login_trusted_networks =
 #login_log_format_elements = user=<%u> method=%m rip=%r lip=%l %c
 #login_log_format = %$: %s
 
 ##
 ## Mailbox locations and namespaces
 ##
 mail_location = maildir:~/Maildir
 #namespace private {
    #separator =
    #prefix =
    #location =
    #inbox = no
    #hidden = yes
    #list = yes
    #subscriptions = yes
 #}
 #namespace shared {
    #separator = /
    #prefix = shared/%%u/
    #location = maildir:%%h/Maildir:INDEX=~/Maildir/shared/%%u
    #subscriptions = no
    #list = children
 #}
 #mail_uid =
 #mail_gid =
 #mail_privileged_group =
 #mail_access_groups =
 #mail_full_filesystem_access = no
 
 ##
 ## Mail processes
 ##
 #mail_debug = no
 #mail_log_prefix = "%Us(%u): "
 #mail_log_max_lines_per_sec = 10
 #mmap_disable = no
 #dotlock_use_excl = yes
 #fsync_disable = no
 #mail_nfs_storage = no
 #mail_nfs_index = no
 #lock_method = fcntl
 #mail_drop_priv_before_exec = no
 #verbose_proctitle = no
 #first_valid_uid = 500
 #last_valid_uid = 0
 #first_valid_gid = 1
 #last_valid_gid = 0
 #max_mail_processes = 512
 #mail_process_size = 256
 #mail_max_keyword_length = 50
 #valid_chroot_dirs =
 #mail_chroot =
 
 ##
 ## Mailbox handling optimizations
 ##
 #mail_cache_min_mail_count = 0
 #mailbox_idle_check_interval = 30
 #mail_save_crlf = no
 
 ##
 ## Maildir-specific settings
 ##
 #maildir_stat_dirs = no
 #maildir_copy_with_hardlinks = yes
 #maildir_copy_preserve_filename = no
 #maildir_very_dirty_syncs = no
 
 ##
 ## mbox-specific settings
 ##
 #mbox_read_locks = fcntl
 #mbox_write_locks = dotlock fcntl
 #mbox_lock_timeout = 300
 #mbox_dotlock_change_timeout = 120
 #mbox_dirty_syncs = yes
 #mbox_very_dirty_syncs = no
 #mbox_lazy_writes = yes
 #mbox_min_index_size = 0
 
 ##
 ## dbox-specific settings
 ##
 #dbox_rotate_size = 2048
 #dbox_rotate_min_size = 16
 #dbox_rotate_days = 0
 
 ##
 ## IMAP specific settings
 ##
 protocol imap {
   login_executable = /usr/local/libexec/dovecot/imap-login
   mail_executable = /usr/local/libexec/dovecot/imap
   #imap_max_line_length = 65536
   #mail_max_userip_connections = 10
   #mail_plugins =
   #mail_plugin_dir = /usr/lib/dovecot/imap
   #imap_logout_format = bytes=%i/%o
   #imap_capability =
   #imap_idle_notify_interval = 120
   #imap_id_send =
   #imap_id_log =
   imap_client_workarounds = outlook-idle tb-extra-mailbox-sep
 }
 
 ##
 ## POP3 specific settings
 ##
 protocol pop3 {
   login_executable = /usr/local/libexec/dovecot/pop3-login
   mail_executable = /usr/local/libexec/dovecot/pop3
   #pop3_no_flag_updates = no
   #pop3_enable_last = no
   #pop3_reuse_xuidl = no
   #pop3_lock_session = no
   pop3_uidl_format = %08Xu%08Xv
   #pop3_save_uidl = no
   pop3_logout_format = top=%t/%p, retr=%r/%b, del=%d/%m, size=%s
   #mail_max_userip_connections = 3
   #mail_plugins =
   #mail_plugin_dir = /usr/lib/dovecot/pop3
   pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
 }
 
 ##
 ## LDA specific settings
 ##
 protocol lda {
   #postmaster_address =
   #hostname =
   #mail_plugins =
   #mail_plugin_dir = /usr/lib/dovecot/lda
   #quota_full_tempfail = no
   #deliver_log_format = msgid=%m: %$
   #sendmail_path = /usr/lib/sendmail
   #rejection_subject = Rejected: %s
   #rejection_reason = Your message to <%t> was automatically rejected:%n%r
   #auth_socket_path = /var/run/dovecot/auth-master
 }
 
 ##
 ## Authentication processes
 ##
 auth_executable = /usr/local/libexec/dovecot/dovecot-auth
 #auth_process_size = 256
 #auth_cache_size = 0
 #auth_cache_ttl = 3600
 #auth_cache_negative_ttl = 3600
 #auth_realms =
 #auth_default_realm =
 #auth_username_chars =  abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@
 #auth_username_translation =
 #auth_username_format =
 #auth_master_user_separator =
 #auth_anonymous_username = anonymous
 #auth_verbose = no
 #auth_debug = no
 #auth_debug_passwords = no
 #auth_worker_max_count = 30
 #auth_gssapi_hostname =
 #auth_krb5_keytab =
 #auth_use_winbind = no
 #auth_winbind_helper_path = /usr/bin/ntlm_auth
 #auth_failure_delay = 2
 
 auth default {
   mechanisms = cram-md5 ntlm apop plain
   #passdb passwd-file {
     # File contains a list of usernames, one per line
     #args = /etc/dovecot.deny
     #deny = yes
   #}
   passdb passwd-file {
       args = /xxx/xxx/xxx
   }
   passdb passwd-file {
       args = /xxx/xxx/yyy
   }
   passdb pam {
     #args = dovecot
   }
   #passdb passwd {
     # [blocking=yes] - See userdb passwd for explanation
     #args =
   #}
   #passdb shadow {
     # [blocking=yes] - See userdb passwd for explanation
     #args =
   #}
   #passdb passwd-file {
     # [scheme=<default password scheme>] [username_format=<format>]
     # <Path for passwd-file>
     #args =
   #}
   #passdb checkpassword {
     # Path for checkpassword binary
     #args =
   #}
   #passdb sql {
     # Path for SQL configuration file, see doc/dovecot-sql-example.conf
     #args =
   #}
   #passdb ldap {
     # Path for LDAP configuration file, see doc/dovecot-ldap-example.conf
     #args =
   #}
   #passdb vpopmail {
     # [cache_key=<key>] - See cache_key in PAM for explanation.
     # [quota_template=<template>] - %q expands to Maildir++ quota
     #   (eg. quota_template=quota_rule=*:backend=%q)
     #args =
   #}
 
   #userdb prefetch {
   #}
   userdb passwd {
     #args =
   }
   userdb passwd-file {
       args = /xxx/xxx/xxx
   }
   userdb passwd-file {
       args = /xxx/xxx/yyy
   }
   #userdb checkpassword {
     # Path for checkpassword binary
     #args =
   #}
   #userdb static {
     #args =
   #}
   #userdb sql {
     # Path for SQL configuration file, see doc/dovecot-sql-example.conf
     #args =
   #}
   #userdb ldap {
     #args =
   #}
   #userdb vpopmail {
   #}
   user = 
   #chroot =
   #count = 1
   #ssl_require_client_cert = no
   #ssl_username_from_cert = no
   socket listen {
     #master {
       #path = /var/run/dovecot/auth-master
       #mode = 0600
       #user =
       #group =
     #}
     client {
       path = /var/spool/postfix/private/auth
       mode = 0660
       user = postfix
       group = postfix
       Postfixの認証で使用するときの設定
     }
   }
 }
 #auth external {
 #  socket connect {
 #    master {
 #      path = /var/run/dovecot/auth-master
 #    }
 #  }
 #}
 
 ##
 ## Dictionary server settings
 ##
 dict {
   #quota = mysql:/etc/dovecot-dict-quota.conf
   #expire = db:/var/lib/dovecot/expire.db
 }
 #dict_db_config =
 
 ##
 ## Plugin settings
 ##
 plugin {
   #quota = maildir
   #acl = vfile:/etc/dovecot-acls:cache_secs=300
   #acl_shared_dict = file:/var/lib/dovecot/shared-mailboxes
   #convert_mail = mbox:%h/mail
   #convert_skip_broken_mailboxes = no
   #convert_skip_dotdirs = no
   #convert_alt_hierarchy_char = _
   #trash = /etc/dovecot-trash.conf
   #expire = Trash 7 Spam 30
   #expire_dict = proxy::expire
   #lazy_expunge = .EXPUNGED/ .DELETED/ .DELETED/.EXPUNGED/
   #mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename
   #mail_log_group_events = no
   #mail_log_fields = uid box msgid size
 }
 #!include /etc/dovecot/conf.d/*.conf
 #!include_try /etc/dovecot/extra.conf

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS