Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2937 connectés 

  FORUM HardWare.fr
  Linux et OS Alternatifs
  réseaux et sécurité

  Serveur Mail (Postfix + Cyrus Imap)

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Serveur Mail (Postfix + Cyrus Imap)

n°922926
makiaveli ​the don
Posté le 13-06-2007 à 18:32:07  profilanswer
 

Bonjour a tous, je suis entrain de réaliser un serveur Mail sous linux (mandriva 2005). J'ai installé mon Postfix et il marche parfaitement en local, par contre pour la partie Cyrus je n'arrive pas a recupérer les mails grace au serveur POP surement car je l'ai mal configurer. Je voulais savoir si Cyrus peut marcher sans Sasl et juste avec les Login et Password UNIX (utilisateurs créés sous mandriva).
 
 
Merci de votre aide.

mood
Publicité
Posté le 13-06-2007 à 18:32:07  profilanswer
 

n°922942
jo-iris
Posté le 13-06-2007 à 19:01:33  profilanswer
 

Salut,
 
tu veux absolument utiliser Cyrus comme serveur pop ?
 
Pour ma part, j'utilise dovecot comme serveur POP/IMAP avec login et password unix, et ca marche très bien.  
 
Pour cyrus,  je ne connais pas trop...

n°922944
makiaveli ​the don
Posté le 13-06-2007 à 19:03:58  profilanswer
 

Merci de ta réponse. Non pas spécialement je m'en fous, du moment que ça marche avec les logins et password Unix. :)
 
Alors petite question pour Dovecot, il est simple d'utilisation ou pas ??  
 
Et si t'avais un tuto sur Dovecot que tu t'étais servi je serais preneur !!!

n°922950
Charly303
Quand on veut on peut !
Posté le 13-06-2007 à 19:18:03  profilanswer
 

Salut,
 
j'ai eu les mêmes déboires. J'ai installé webmin et dovecot pour administrer tout ça.
 
Que ça soit Dovecot ou Cyrus-Imapd, il faut que tu indiques ton /var/mail ou /var/spool/mail. Si tu préfères l'IMAP (mon choix), un simple dossier Mail/ a été suffisant.
Tous mes utilisateurs peuvent se connecter via Internet sur le webmail en IMAPS et chacun peut ajouter des dossiers à la manière de hotmail/yahoo mail etc...
 
Bref, là où je m'étais planté, j'ai trouvé que c'était parce que:
 
1. Postfix va chercher tes mails et les place dans /var/mail (par exemple)
2. Dovecot/Cyrus Imapd DOIT pêcher les mails dans le même endroit ET il faut y indiquer soit /var/spool/mail/%u ou Mail/

n°922951
Charly303
Quand on veut on peut !
Posté le 13-06-2007 à 19:20:55  profilanswer
 

Question à 2 balles. Est-ce que c'est pour une utilisation chez toi ?
Parce que si ton FAI bloque le port 25, il te faudra ajouter une ligne à ton master.cf
 
Je pourrai mettre ici un fichier de config de main.cf, master.cf et dovecot.conf pour ceux qui ont besoin.

n°922955
makiaveli ​the don
Posté le 13-06-2007 à 19:24:51  profilanswer
 

Merci pour ta réponse, alors non c'est pas pour chez moi et oui le port 25 est bien ouvert. Mais je veux bien le fichier de config master.cf et dovecot.conf.
 

n°922975
Charly303
Quand on veut on peut !
Posté le 13-06-2007 à 20:34:30  profilanswer
 

Postfix
 
main.cf décommenté pour plus de lisibilité

Code :
  1. command_directory = /usr/sbin
  2. daemon_directory = /usr/libexec/postfix
  3. unknown_local_recipient_reject_code = 550
  4. alias_maps = hash:/etc/aliases
  5. alias_database = hash:/etc/aliases
  6. debug_peer_level = 2
  7. debugger_command =
  8.  PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
  9.  xxgdb $daemon_directory/$process_name $process_id & sleep 5
  10. sendmail_path = /usr/sbin/sendmail.postfix
  11. newaliases_path = /usr/bin/newaliases.postfix
  12. mailq_path = /usr/bin/mailq.postfix
  13. setgid_group = postdrop
  14. html_directory = no
  15. manpage_directory = /usr/share/man
  16. sample_directory = /usr/share/doc/postfix-2.3.3/samples
  17. readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
  18. mynetworks_style = host
  19. relayhost = [smtp.coditel.net]
  20. myorigin = $mydomain
  21. header_size_limit = 1024000
  22. qmgr_message_recipient_limit = 200000
  23. message_size_limit = 102400000
  24. mailbox_size_limit = 512000000
  25. home_mailbox = Mail/



dovecot.conf

 

Code :
  1. # Mes mails vont être lus ici !!!
  2. default_mail_env= maildir:/home/%u/Mail/
  3. ## Dovecot configuration file
  4. # If you're in a hurry, see http://wiki.dovecot.org/QuickConfiguration
  5. # '#' character and everything after it is treated as comments. Extra spaces
  6. # and tabs are ignored. If you want to use either of these explicitly, put the
  7. # value inside quotes, eg.: key = "# char and trailing whitespace  "
  8. # Default values are shown for each setting, it's not required to uncomment
  9. # any of the lines.
  10. # Base directory where to store runtime data.
  11. #base_dir = /var/run/dovecot/
  12. # Protocols we want to be serving: imap imaps pop3 pop3s
  13. # If you only want to use dovecot-auth, you can set this to "none".
  14. #protocols = imap imaps pop3 pop3s
  15. # IP or host address where to listen in for connections. It's not currently
  16. # possible to specify multiple addresses. "*" listens in all IPv4 interfaces.
  17. # "[:]" listens in all IPv6 interfaces, but may also listen in all IPv4
  18. # interfaces depending on the operating system.
  19. #
  20. # If you want to specify ports for each service, you will need to configure
  21. # these settings inside the protocol imap/pop3 { ... } section, so you can
  22. # specify different ports for IMAP/POP3. For example:
  23. #   protocol imap {
  24. #     listen = *:10143
  25. #     ssl_listen = *:10943
  26. #     ..
  27. #   }
  28. #   protocol pop3 {
  29. #     listen = *:10100
  30. #     ..
  31. #   }
  32. #listen = [:]
  33. listen = [:]
  34. # Disable LOGIN command and all other plaintext authentications unless
  35. # SSL/TLS is used (LOGINDISABLED capability). Note that if the remote IP
  36. # matches the local IP (ie. you're connecting from the same computer), the
  37. # connection is considered secure and plaintext authentication is allowed.
  38. #disable_plaintext_auth = no
  39. # Should all IMAP and POP3 processes be killed when Dovecot master process
  40. # shuts down. Setting this to "no" means that Dovecot can be upgraded without
  41. # forcing existing client connections to close (although that could also be
  42. # a problem if the upgrade is eg. because of a security fix). This however
  43. # means that after master process has died, the client processes can't write
  44. # to log files anymore.
  45. #shutdown_clients = yes
  46. ##
  47. ## Logging
  48. ##
  49. # Use this logfile instead of syslog(). /dev/stderr can be used if you want to
  50. # use stderr for logging (ONLY /dev/stderr - otherwise it is closed).
  51. #log_path =
  52. # For informational messages, use this logfile instead of the default
  53. #info_log_path =
  54. # Prefix for each line written to log file. % codes are in strftime(3)
  55. # format.
  56. #log_timestamp = "%b %d %H:%M:%S "
  57. # Syslog facility to use if you're logging to syslog. Usually if you don't
  58. # want to use "mail", you'll use local0..local7. Also other standard
  59. # facilities are supported.
  60. #syslog_facility = mail
  61. ##
  62. ## SSL settings
  63. ##
  64. # IP or host address where to listen in for SSL connections. Defaults
  65. # to above if not specified.
  66. #ssl_listen =
  67. ssl_listen = ton.adresse.ip.ici
  68. # Disable SSL/TLS support.
  69. ssl_disable = no
  70. # PEM encoded X.509 SSL/TLS certificate and private key. They're opened before
  71. # dropping root privileges, so keep the key file unreadable by anyone but
  72. # root. Included doc/mkcert.sh can be used to easily generate self-signed
  73. # certificate, just make sure to update the domains in dovecot-openssl.cnf
  74. #ssl_cert_file = /etc/pki/dovecot/certs/dovecot.pem
  75. #ssl_key_file = /etc/pki/dovecot/private/dovecot.pem
  76. ssl_cert_file = /etc/myshop/cacert.pem
  77. ssl_key_file = /etc/myshop/private/cakey.pem
  78. # If key file is password protected, give the password here. Alternatively
  79. # give it when starting dovecot with -p parameter.
  80. ssl_key_password = wn1PW4OP
  81. # File containing trusted SSL certificate authorities. Usually not needed.
  82. # The CAfile should contain the CA-certificate(s) followed by the matching
  83. # CRL(s). CRL checking is new in dovecot .rc1
  84. #ssl_ca_file =
  85. # Request client to send a certificate.
  86. #ssl_verify_client_cert = no
  87. # How often to regenerate the SSL parameters file. Generation is quite CPU
  88. # intensive operation. The value is in hours, 0 disables regeneration
  89. # entirely.
  90. #ssl_parameters_regenerate = 168
  91. # SSL ciphers to use
  92. #ssl_cipher_list = ALL:!LOW
  93. # Show protocol level SSL errors.
  94. #verbose_ssl = no
  95. ##
  96. ## Login processes
  97. ##
  98. # Directory where authentication process places authentication UNIX sockets
  99. # which login needs to be able to connect to. The sockets are created when
  100. # running as root, so you don't have to worry about permissions. Note that
  101. # everything in this directory is deleted when Dovecot is started.
  102. #login_dir = /var/run/dovecot/login
  103. # chroot login process to the login_dir. Only reason not to do this is if you
  104. # wish to run the whole Dovecot without roots.
  105. # http://wiki.dovecot.org/Rootless
  106. #login_chroot = yes
  107. # User to use for the login process. Create a completely new user for this,
  108. # and don't use it anywhere else. The user must also belong to a group where
  109. # only it has access, it's used to control access for authentication process.
  110. # Note that this user is NOT used to access mails.
  111. # http://wiki.dovecot.org/UserIds
  112. #login_user = dovecot
  113. # Set max. process size in megabytes. If you don't use
  114. # login_process_per_connection you might need to grow this.
  115. #login_process_size = 32
  116. # Should each login be processed in it's own process (yes), or should one
  117. # login process be allowed to process multiple connections (no)? Yes is more
  118. # secure, espcially with SSL/TLS enabled. No is faster since there's no need
  119. # to create processes all the time.
  120. #login_process_per_connection = yes
  121. # Number of login processes to keep for listening new connections.
  122. #login_processes_count = 3
  123. # Maximum number of login processes to create. The listening process count
  124. # usually stays at login_processes_count, but when multiple users start logging
  125. # in at the same time more extra processes are created. To prevent fork-bombing
  126. # we check only once in a second if new processes should be created - if all
  127. # of them are used at the time, we double their amount until the limit set by
  128. # this setting is reached.
  129. #login_max_processes_count = 128
  130. # Maximum number of connections allowed per each login process. This setting
  131. # is used only if login_process_per_connection=no. Once the limit is reached,
  132. # the process notifies master so that it can create a new login process.
  133. # You should make sure that the process has at least
  134. # 16 + login_max_connections * 2 available file descriptors.
  135. #login_max_connections = 256
  136. # Greeting message for clients.
  137. #login_greeting = Dovecot ready.
  138. # Space-separated list of elements we want to log. The elements which have
  139. # a non-empty variable value are joined together to form a comma-separated
  140. # string.
  141. #login_log_format_elements = user=<%u> method=%m rip=%r lip=%l %c
  142. # Login log format. %$ contains login_log_format_elements string, %s contains
  143. # the data we want to log.
  144. #login_log_format = %$: %s
  145. ##
  146. ## Mailbox locations and namespaces
  147. ##
  148. # Location for users' mailboxes. This is the same as the old default_mail_env
  149. # setting. The default is empty, which means that Dovecot tries to find the
  150. # mailboxes automatically. This won't work if the user doesn't have any mail
  151. # yet, so you should explicitly tell Dovecot the full location.
  152. #
  153. # If you're using mbox, giving a path to the INBOX file (eg. /var/mail/%u)
  154. # isn't enough. You'll also need to tell Dovecot where the other mailboxes are
  155. # and where Dovecot can place its index files. This is called the "root mail
  156. # directory", and it must be the first path given in the mail_location setting.
  157. #
  158. # There are a few special variables you can use, eg.:
  159. #
  160. #   %u - username
  161. #   %n - user part in user@domain, same as %u if there's no domain
  162. #   %d - domain part in user@domain, empty if there's no domain
  163. #   %h - home directory
  164. #
  165. # See doc/variables.txt for full list. Some examples:
  166. #
  167. #   mail_location = maildir:~/Maildir
  168. #   mail_location = mbox:~/mail:INBOX=/var/mail/%u
  169. #   mail_location = mbox:/var/mail/%d/%1n/%n:INDEX=/var/indexes/%d/%1n/%n
  170. #
  171. # http://wiki.dovecot.org/MailLocation
  172. #
  173. #mail_location =
  174. # If you need to set multiple mailbox locations or want to change default
  175. # namespace settings, you can do it by defining namespace sections:
  176. #
  177. # You can have private, shared and public namespaces. The only difference
  178. # between them is how Dovecot announces them to client via NAMESPACE
  179. # extension. Shared namespaces are meant for user-owned mailboxes which are
  180. # shared to other users, while public namespaces are for more globally
  181. # accessible mailboxes.
  182. #
  183. # REMEMBER: If you add any namespaces, the default namespace must be added
  184. # explicitly, ie. mail_location does nothing unless you have a namespace
  185. # without a location setting. Default namespace is simply done by having a
  186. # namespace with empty prefix.
  187. #namespace private {
  188.    # Hierarchy separator to use. You should use the same separator for all
  189.    # namespaces or some clients get confused. '/' is usually a good one.
  190.    # The default however depends on the underlying mail storage format.
  191.    #separator =
  192.    # Prefix required to access this namespace. This needs to be different for
  193.    # all namespaces. For example "Public/".
  194.    #prefix =
  195.    # Physical location of the mailbox. This is in same format as
  196.    # mail_location, which is also the default for it.
  197.    #location =
  198.    # There can be only one INBOX, and this setting defines which namespace
  199.    # has it.
  200.    #inbox = yes
  201.    # If namespace is hidden, it's not advertised to clients via NAMESPACE
  202.    # extension or shown in LIST replies. This is mostly useful when converting
  203.    # from another server with different namespaces which you want to depricate
  204.    # but still keep working. For example you can create hidden namespaces with
  205.    # prefixes "~/mail/", "~%u/mail/" and "mail/".
  206.    #hidden = yes
  207. #}
  208. # Grant access to these extra groups for mail processes. Typical use would be
  209. # to give "mail" group write access to /var/mail to be able to create dotlocks.
  210. #mail_extra_groups =
  211. # Allow full filesystem access to clients. There's no access checks other than
  212. # what the operating system does for the active UID/GID. It works with both
  213. # maildir and mboxes, allowing you to prefix mailboxes names with eg. /path/
  214. # or ~user/.
  215. #mail_full_filesystem_access = no
  216. ##
  217. ## Mail processes
  218. ##
  219. # Enable mail process debugging. This can help you figure out why Dovecot
  220. # isn't finding your mails.
  221. #mail_debug = no
  222. # Log prefix for mail processes. See doc/variables.txt for list of possible
  223. # variables you can use.
  224. #mail_log_prefix = "%Us(%u): "
  225. # Use mmap() instead of read() to read mail files. read() seems to be a bit
  226. # faster with my Linux/x86 and it's better with NFS, so that's the default.
  227. # Note that OpenBSD 3.3 and older don't work right with mail_read_mmaped = yes.
  228. #mail_read_mmaped = no
  229. # Don't use mmap() at all. This is required if you store indexes to shared
  230. # filesystems (NFS or clustered filesystem).
  231. #mmap_disable = no
  232. # Don't write() to mmaped files. This is required for some operating systems
  233. # which use separate caches for them, such as OpenBSD.
  234. #mmap_no_write = no
  235. # Locking method for index files. Alternatives are fcntl, flock and dotlock.
  236. # Dotlocking uses some tricks which may create more disk I/O than other locking
  237. # methods. NOTE: If you use NFS, remember to change also mmap_disable setting!
  238. #lock_method = fcntl
  239. # Drop all privileges before exec()ing the mail process. This is mostly
  240. # meant for debugging, otherwise you don't get core dumps. It could be a small
  241. # security risk if you use single UID for multiple users, as the users could
  242. # ptrace() each others processes then.
  243. #mail_drop_priv_before_exec = no
  244. # Show more verbose process titles (in ps). Currently shows user name and
  245. # IP address. Useful for seeing who are actually using the IMAP processes
  246. # (eg. shared mailboxes or if same uid is used for multiple accounts).
  247. #verbose_proctitle = no
  248. # Valid UID range for users, defaults to 500 and above. This is mostly
  249. # to make sure that users can't log in as daemons or other system users.
  250. # Note that denying root logins is hardcoded to dovecot binary and can't
  251. # be done even if first_valid_uid is set to 0.
  252. #first_valid_uid = 500
  253. #last_valid_uid = 0
  254. # Valid GID range for users, defaults to non-root/wheel. Users having
  255. # non-valid GID as primary group ID aren't allowed to log in. If user
  256. # belongs to supplementary groups with non-valid GIDs, those groups are
  257. # not set.
  258. #first_valid_gid = 1
  259. #last_valid_gid = 0
  260. # Maximum number of running mail processes. When this limit is reached,
  261. # new users aren't allowed to log in.
  262. #max_mail_processes = 1024
  263. # Set max. process size in megabytes. Most of the memory goes to mmap()ing
  264. # files, so it shouldn't harm much even if this limit is set pretty high.
  265. #mail_process_size = 256
  266. # Maximum allowed length for mail keyword name. It's only forced when trying
  267. # to create new keywords.
  268. #mail_max_keyword_length = 50
  269. # Default umask to use for mail files and directories.
  270. #umask = 0077
  271. # ':' separated list of directories under which chrooting is allowed for mail
  272. # processes (ie. /var/mail will allow chrooting to /var/mail/foo/bar too).
  273. # This setting doesn't affect login_chroot or auth_chroot variables.
  274. # WARNING: Never add directories here which local users can modify, that
  275. # may lead to root exploit. Usually this should be done only if you don't
  276. # allow shell access for users. See doc/configuration.txt for more information.
  277. #valid_chroot_dirs =
  278. # Default chroot directory for mail processes. This can be overridden for
  279. # specific users in user database by giving /./ in user's home directory
  280. # (eg. /home/./user chroots into /home). Note that usually there is no real
  281. # need to do chrooting, Dovecot doesn't allow users to access files outside
  282. # their mail directory anyway.
  283. #mail_chroot =
  284. ##
  285. ## Mailbox handling optimizations
  286. ##
  287. # Space-separated list of fields to initially save into cache file. Currently
  288. # these fields are allowed:
  289. #
  290. #  flags, date.sent, date.received, size.virtual, size.physical
  291. #  mime.parts, imap.body, imap.bodystructure
  292. #
  293. # Different IMAP clients work in different ways, so they benefit from
  294. # different cached fields. Some do not benefit from them at all. Caching more
  295. # than necessary generates useless disk I/O, so you don't want to do that
  296. # either.
  297. #
  298. # Dovecot attempts to automatically figure out what client wants and it keeps
  299. # only that. However the first few times a mailbox is opened, Dovecot hasn't
  300. # yet figured out what client needs, so it may not perform optimally. If you
  301. # know what fields the majority of your clients need, it may be useful to set
  302. # these fields by hand. If client doesn't actually use them, Dovecot will
  303. # eventually drop them.
  304. #
  305. # Usually you should just leave this field alone. The potential benefits are
  306. # typically unnoticeable.
  307. #mail_cache_fields =
  308. # Space-separated list of fields that Dovecot should never save to cache file.
  309. # Useful if you want to save disk space at the cost of more I/O when the fields
  310. # needed.
  311. #mail_never_cache_fields =
  312. # The minimum number of mails in a mailbox before updates are done to cache
  313. # file. This allows optimizing Dovecot's behavior to do less disk writes at
  314. # the cost of more disk reads.
  315. #mail_cache_min_mail_count = 0
  316. # When IDLE command is running, mailbox is checked once in a while to see if
  317. # there are any new mails or other changes. This setting defines the minimum
  318. # time to wait between those checks. Dovecot is however able to use dnotify
  319. # and inotify with Linux to reply immediately after the change occurs.
  320. #mailbox_idle_check_interval = 30
  321. # Save mails with CR+LF instead of plain LF. This makes sending those mails
  322. # take less CPU, especially with sendfile() syscall with Linux and FreeBSD.
  323. # But it also creates a bit more disk I/O which may just make it slower.
  324. # Also note that if other software reads the mboxes/maildirs, they may handle
  325. # the extra CRs wrong and cause problems.
  326. #mail_save_crlf = no
  327. ##
  328. ## Maildir-specific settings
  329. ##
  330. # By default LIST command returns all entries in maildir beginning with dot.
  331. # Enabling this option makes Dovecot return only entries which are directories.
  332. # This is done by stat()ing each entry, so it causes more disk I/O.
  333. # (For systems setting struct dirent->d_type, this check is free and it's
  334. # done always regardless of this setting)
  335. #maildir_stat_dirs = no
  336. # Copy mail to another folders using hard links. This is much faster than
  337. # actually copying the file. This is problematic only if something modifies
  338. # the mail in one folder but doesn't want it modified in the others. I don't
  339. # know any MUA which would modify mail files directly. IMAP protocol also
  340. # requires that the mails don't change, so it would be problematic in any case.
  341. # If you care about performance, enable it.
  342. #maildir_copy_with_hardlinks = no
  343. ##
  344. ## mbox-specific settings
  345. ##
  346. # Which locking methods to use for locking mbox. There are four available:
  347. #  dotlock: Create <mailbox>.lock file. This is the oldest and most NFS-safe
  348. #           solution. If you want to use /var/mail/ like directory, the users
  349. #           will need write access to that directory.
  350. #  fcntl  : Use this if possible. Works with NFS too if lockd is used.
  351. #  flock  : May not exist in all systems. Doesn't work with NFS.
  352. #  lockf  : May not exist in all systems. Doesn't work with NFS.
  353. #
  354. # You can use multiple locking methods; if you do the order they're declared
  355. # in is important to avoid deadlocks if other MTAs/MUAs are using multiple
  356. # locking methods as well. Some operating systems don't allow using some of
  357. # them simultaneously.
  358. #mbox_read_locks = fcntl
  359. #mbox_write_locks = fcntl
  360. # Maximum time in seconds to wait for lock (all of them) before aborting.
  361. #mbox_lock_timeout = 300
  362. # If dotlock exists but the mailbox isn't modified in any way, override the
  363. # lock file after this many seconds.
  364. #mbox_dotlock_change_timeout = 120
  365. # When mbox changes unexpectedly we have to fully read it to find out what
  366. # changed. If the mbox is large this can take a long time. Since the change
  367. # is usually just a newly appended mail, it'd be faster to simply read the
  368. # new mails. If this setting is enabled, Dovecot does this but still safely
  369. # fallbacks to re-reading the whole mbox file whenever something in mbox isn't
  370. # how it's expected to be. The only real downside to this setting is that if
  371. # some other MUA changes message flags, Dovecot doesn't notice it immediately.
  372. # Note that a full sync is done with SELECT, EXAMINE, EXPUNGE and CHECK
  373. # commands.
  374. #mbox_dirty_syncs = yes
  375. # Like mbox_dirty_syncs, but don't do full syncs even with SELECT, EXAMINE,
  376. # EXPUNGE or CHECK commands. If this is set, mbox_dirty_syncs is ignored.
  377. #mbox_very_dirty_syncs = no
  378. # Delay writing mbox headers until doing a full write sync (EXPUNGE and CHECK
  379. # commands and when closing the mailbox). This is especially useful for POP3
  380. # where clients often delete all mails. The downside is that our changes
  381. # aren't immediately visible to other MUAs.
  382. #mbox_lazy_writes = yes
  383. # If mbox size is smaller than this (in kilobytes), don't write index files.
  384. # If an index file already exists it's still read, just not updated.
  385. #mbox_min_index_size = 0
  386. ##
  387. ## dbox-specific settings
  388. ##
  389. # Maximum dbox file size in kilobytes until it's rotated.
  390. #dbox_rotate_size = 2048
  391. # Minimum dbox file size in kilobytes before it's rotated
  392. # (overrides dbox_rotate_days)
  393. #dbox_rotate_min_size = 16
  394. # Maximum dbox file age in days until it's rotated. Day always begins from
  395. # midnight, so 1 = today, 2 = yesterday, etc. 0 = check disabled.
  396. #dbox_rotate_days = 0
  397. ##
  398. ## IMAP specific settings
  399. ##
  400. protocol imap {
  401.   # Login executable location.
  402.   #login_executable = /usr/libexec/dovecot/imap-login
  403.   # IMAP executable location. Changing this allows you to execute other
  404.   # binaries before the imap process is executed.
  405.   #
  406.   # This would write rawlogs into ~/dovecot.rawlog/ directory:
  407.   #   mail_executable = /usr/libexec/dovecot/rawlog /usr/libexec/dovecot/imap
  408.   #
  409.   # This would attach gdb into the imap process and write backtraces into
  410.   # /tmp/gdbhelper.* files:
  411.   #   mail_executable = /usr/libexec/dovecot/gdbhelper /usr/libexec/dovecot/imap
  412.   #
  413.   #mail_executable = /usr/libexec/dovecot/imap
  414.   # Maximum IMAP command line length in bytes. Some clients generate very long
  415.   # command lines with huge mailboxes, so you may need to raise this if you get
  416.   # "Too long argument" or "IMAP command line too large" errors often.
  417.   #imap_max_line_length = 65536
  418.   # Support for dynamically loadable plugins. mail_plugins is a space separated
  419.   # list of plugins to load.
  420.   #mail_plugins =
  421.   #mail_plugin_dir = /usr/lib/dovecot/imap
  422.   # Send IMAP capabilities in greeting message. This makes it unnecessary for
  423.   # clients to request it with CAPABILITY command, so it saves one round-trip.
  424.   # Many clients however don't understand it and ask the CAPABILITY anyway.
  425.   #login_greeting_capability = no
  426.   # Override the IMAP CAPABILITY response.
  427.   #imap_capability =
  428.   # Workarounds for various client bugs:
  429.   #   delay-newmail:
  430.   #     Send EXISTS/RECENT new mail notifications only when replying to NOOP
  431.   #     and CHECK commands. Some clients ignore them otherwise, for example
  432.   #     OSX Mail. Outlook Express breaks more badly though, without this it
  433.   #     may show user "Message no longer in server" errors. Note that OE6 still
  434.   #     breaks even with this workaround if synchronization is set to
  435.   #     "Headers Only".
  436.   #   outlook-idle:
  437.   #     Outlook and Outlook Express never abort IDLE command, so if no mail
  438.   #     arrives in half a hour, Dovecot closes the connection. This is still
  439.   #     fine, except Outlook doesn't connect back so you don't see if new mail
  440.   #     arrives.
  441.   #   netscape-eoh:
  442.   #     Netscape 4.x breaks if message headers don't end with the empty "end of
  443.   #     headers" line. Normally all messages have this, but setting this
  444.   #     workaround makes sure that Netscape never breaks by adding the line if
  445.   #     it doesn't exist. This is done only for FETCH BODY[HEADER.FIELDS..]
  446.   #     commands. Note that RFC says this shouldn't be done.
  447.   #   tb-extra-mailbox-sep:
  448.   #     With mbox storage a mailbox can contain either mails or submailboxes,
  449.   #     but not both. Thunderbird separates these two by forcing server to
  450.   #     accept '/' suffix in mailbox names in subscriptions list.
  451.   # The list is space-separated.
  452.   #imap_client_workarounds = outlook-idle
  453. }
  454.  
  455. ##
  456. ## POP3 specific settings
  457. ##
  458. protocol pop3 {
  459.   # Login executable location.
  460.   #login_executable = /usr/libexec/dovecot/pop3-login
  461.   # POP3 executable location. See IMAP's mail_executable above for examples
  462.   # how this could be changed.
  463.   #mail_executable = /usr/libexec/dovecot/pop3
  464.   # Don't try to set mails non-recent or seen with POP3 sessions. This is
  465.   # mostly intended to reduce disk I/O. With maildir it doesn't move files
  466.   # from new/ to cur/, with mbox it doesn't write Status-header.
  467.   #pop3_no_flag_updates = no
  468.   # Support LAST command which exists in old POP3 specs, but has been removed
  469.   # from new ones. Some clients still wish to use this though. Enabling this
  470.   # makes RSET command clear all \Seen flags from messages.
  471.   #pop3_enable_last = no
  472.   # If mail has X-UIDL header, use it as the mail's UIDL.
  473.   #pop3_reuse_xuidl = no
  474.   # Keep the mailbox locked for the entire POP3 session.
  475.   #pop3_lock_session = no
  476.   # POP3 UIDL format to use. You can use following variables:
  477.   #
  478.   #  %v - Mailbox UIDVALIDITY
  479.   #  %u - Mail UID
  480.   #  %m - MD5 sum of the mailbox headers in hex (mbox only)
  481.   #  %f - filename (maildir only)
  482.   #
  483.   # If you want UIDL compatibility with other POP3 servers, use:
  484.   #  UW's ipop3d         : %08Xv%08Xu
  485.   #  Courier version 0   : %f
  486.   #  Courier version 1   : %u
  487.   #  Courier version 2   : %v-%u
  488.   #  Cyrus (<= 2.1.3)    : %u
  489.   #  Cyrus (>= 2.1.4)    : %v.%u
  490.   #  Older Dovecots      : %v.%u
  491.   #  tpop3d              : %Mf
  492.   #
  493.   # Note that Outlook 2003 seems to have problems with %v.%u format which was
  494.   # Dovecot's default, so if you're building a new server it would be a good
  495.   # idea to change this. %08Xu%08Xv should be pretty fail-safe.
  496.   #
  497.   # NOTE: Nowadays this is required to be set explicitly, since the old
  498.   # default was bad but it couldn't be changed without breaking existing
  499.   # installations. %08Xu%08Xv will be the new default, so use it for new
  500.   # installations.
  501.   #
  502.   #pop3_uidl_format = %08Xu%08Xv
  503. pop3_uidl_format = %v.%u
  504.   # POP3 logout format string:
  505.   #  %t - number of TOP commands
  506.   #  %p - number of bytes sent to client as a result of TOP command
  507.   #  %r - number of RETR commands
  508.   #  %b - number of bytes sent to client as a result of RETR command
  509.   #  %d - number of deleted messages
  510.   #  %m - number of messages (before deletion)
  511.   #  %s - mailbox size in bytes (before deletion)
  512.   #pop3_logout_format = top=%t/%p, retr=%r/%b, del=%d/%m, size=%s
  513.   # Support for dynamically loadable plugins. mail_plugins is a space separated
  514.   # list of plugins to load.
  515.   #mail_plugins =
  516.   #mail_plugin_dir = /usr/lib/dovecot/pop3
  517.   # Workarounds for various client bugs:
  518.   #   outlook-no-nuls:
  519.   #     Outlook and Outlook Express hang if mails contain NUL characters.
  520.   #     This setting replaces them with 0x80 character.
  521.   #   oe-ns-eoh:
  522.   #     Outlook Express and Netscape Mail breaks if end of headers-line is
  523.   #     missing. This option simply sends it if it's missing.
  524.   # The list is space-separated.
  525.   #pop3_client_workarounds =
  526. }
  527. ##
  528. ## LDA specific settings
  529. ##
  530. protocol lda {
  531.   # Address to use when sending rejection mails.
  532.   postmaster_address = postmaster@example.com
  533.   # Hostname to use in various parts of sent mails, eg. in Message-Id.
  534.   # Default is the system's real hostname.
  535.   #hostname =
  536.   # Support for dynamically loadable plugins. mail_plugins is a space separated
  537.   # list of plugins to load.
  538.   #mail_plugins =
  539.   #mail_plugin_dir = /usr/lib/dovecot/lda
  540.   # Binary to use for sending mails.
  541.   #sendmail_path = /usr/lib/sendmail
  542.   # UNIX socket path to master authentication server to find users.
  543.   #auth_socket_path = /var/run/dovecot/auth-master
  544. }
  545. ##
  546. ## Authentication processes
  547. ##
  548. # Executable location
  549. #auth_executable = /usr/libexec/dovecot/dovecot-auth
  550. # Set max. process size in megabytes.
  551. #auth_process_size = 256
  552. # Authentication cache size in kilobytes. 0 means it's disabled.
  553. # Note that bsdauth, PAM and vpopmail require cache_key to be set for caching
  554. # to be used. Also note that currently auth cache doesn't work very well if
  555. # you're using multiple passdbs with same usernames in them.
  556. #auth_cache_size = 0
  557. # Time to live in seconds for cached data. After this many seconds the cached
  558. # record is no longer used, *except* if the main database lookup returns
  559. # internal failure. We also try to handle password changes automatically: If
  560. # user's previous authentication was successful, but this one wasn't, the
  561. # cache isn't used. For now this works only with plaintext authentication.
  562. #auth_cache_ttl = 3600
  563. # Space separated list of realms for SASL authentication mechanisms that need
  564. # them. You can leave it empty if you don't want to support multiple realms.
  565. # Many clients simply use the first one listed here, so keep the default realm
  566. # first.
  567. #auth_realms =
  568. # Default realm/domain to use if none was specified. This is used for both
  569. # SASL realms and appending @domain to username in plaintext logins.
  570. #auth_default_realm =
  571. # List of allowed characters in username. If the user-given username contains
  572. # a character not listed in here, the login automatically fails. This is just
  573. # an extra check to make sure user can't exploit any potential quote escaping
  574. # vulnerabilities with SQL/LDAP databases. If you want to allow all characters,
  575. # set this value to empty.
  576. #auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@
  577. # Username character translations before it's looked up from databases. The
  578. # value contains series of from -> to characters. For example "#@/@" means
  579. # that '#' and '/' characters are translated to '@'.
  580. #auth_username_translation =
  581. # Username formatting before it's looked up from databases. You can use
  582. # the standard variables here, eg. %Lu would lowercase the username, %n would
  583. # drop away the domain if it was given, or "%n-AT-%d" would change the '@' into
  584. # "-AT-". This translation is done after auth_username_translation changes.
  585. #auth_username_format =
  586. # If you want to allow master users to log in by specifying the master
  587. # username within the normal username string (ie. not using SASL mechanism's
  588. # support for it), you can specify the separator character here. The format
  589. # is then <username><separator><master username>. UW-IMAP uses "*" as the
  590. # separator, so that could be a good choice.
  591. #auth_master_user_separator =
  592. # Username to use for users logging in with ANONYMOUS SASL mechanism
  593. #auth_anonymous_username = anonymous
  594. # More verbose logging. Useful for figuring out why authentication isn't
  595. # working.
  596. #auth_verbose = no
  597. # Even more verbose logging for debugging purposes. Shows for example SQL
  598. # queries.
  599. #auth_debug = no
  600. # In case of password mismatches, log the passwords and used scheme so the
  601. # problem can be debugged. Requires auth_debug=yes to be set.
  602. #auth_debug_passwords = no
  603. # Maximum number of dovecot-auth worker processes. They're used to execute
  604. # blocking passdb and userdb queries (eg. MySQL and PAM). They're
  605. # automatically created and destroyed as needed.
  606. #auth_worker_max_count = 30
  607. # Kerberos keytab to use for the GSSAPI mechanism. Will use the system
  608. # default (usually /etc/krb5.keytab) if not specified.
  609. #auth_krb5_keytab =
  610. auth default {
  611.   # Space separated list of wanted authentication mechanisms:
  612.   #   plain login digest-md5 cram-md5 ntlm rpa apop anonymous gssapi
  613.   mechanisms = plain
  614.   # Users can be temporarily disabled by adding a passdb with deny=yes.
  615.   # If the user is found from that database, authentication will fail.
  616.   # The deny passdb should always be specified before others, so it gets
  617.   # checked first. Here's an example:
  618.   #passdb passwd-file {
  619.     # File contains a list of usernames, one per line
  620.     #args = /etc/dovecot.deny
  621.     #deny = yes
  622.   #}
  623.   # PAM authentication. Preferred nowadays by most systems.
  624.   # Note that PAM can only be used to verify if user's password is correct,
  625.   # so it can't be used as userdb. If you don't want to use a separate user
  626.   # database (passwd usually), you can use static userdb.
  627.   # REMEMBER: You'll need /etc/pam.d/dovecot file created for PAM
  628.   # authentication to actually work.
  629.   # http://wiki.dovecot.org/PasswordDatabase/PAM
  630.   passdb pam {
  631.   }
  632.   # /etc/passwd or similar, using getpwnam()
  633.   # In many systems nowadays this uses Name Service Switch, which is
  634.   # configured in /etc/nsswitch.conf.
  635.   # http://wiki.dovecot.org/AuthDatabase/Passwd
  636.   #passdb passwd {
  637.   #}
  638.   # /etc/shadow or similiar, using getspnam(). Deprecated by PAM nowadays.
  639.   # http://wiki.dovecot.org/PasswordDatabase/Shadow
  640.   #passdb shadow {
  641.   #}
  642.   # PAM-like authentication for OpenBSD.
  643.   # http://wiki.dovecot.org/PasswordDatabase/BSDAuth
  644.   #passdb bsdauth {
  645.     # [cache_key=<key>] - See cache_key in PAM for explanation.
  646.     #args =
  647.   #}
  648.   # passwd-like file with specified location
  649.   # http://wiki.dovecot.org/AuthDatabase/PasswdFile
  650.   #passdb passwd-file {
  651.     # Path for passwd-file
  652.     #args =
  653.   #}
  654.   # checkpassword executable authentication
  655.   # NOTE: You will probably want to use "userdb prefetch" with this.
  656.   # http://wiki.dovecot.org/PasswordDatabase/CheckPassword
  657.   #passdb checkpassword {
  658.     # Path for checkpassword binary
  659.     #args =
  660.   #}
  661.   # SQL database
  662.   # http://wiki.dovecot.org/AuthDatabase/SQL
  663.   #passdb sql {
  664.     # Path for SQL configuration file, see doc/dovecot-sql.conf for example
  665.     #args =
  666.   #}
  667.   # LDAP database
  668.   # http://wiki.dovecot.org/AuthDatabase/LDAP
  669.   #passdb ldap {
  670.     # Path for LDAP configuration file, see doc/dovecot-ldap.conf for example
  671.     #args =
  672.   #}
  673.   # vpopmail authentication
  674.   # http://wiki.dovecot.org/AuthDatabase/VPopMail
  675.   #passdb vpopmail {
  676.     # [cache_key=<key>] - See cache_key in PAM for explanation.
  677.     #args =
  678.   #}
  679.   # /etc/passwd or similar, using getpwnam()
  680.   # In many systems nowadays this uses Name Service Switch, which is
  681.   # configured in /etc/nsswitch.conf. WARNING: nss_ldap is known to be broken
  682.   # with Dovecot. Don't use it, or users might log in as each others!
  683.   # http://wiki.dovecot.org/AuthDatabase/Passwd
  684.   userdb passwd {
  685.   }
  686.   # passwd-like file with specified location
  687.   # http://wiki.dovecot.org/AuthDatabase/PasswdFile
  688.   #userdb passwd-file {
  689.     # Path for passwd-file
  690.     #args =
  691.   #}
  692.   # static settings generated from template
  693.   # http://wiki.dovecot.org/UserDatabase/Static
  694.   #userdb static {
  695.     # Template for the fields. Can return anything a userdb could normally
  696.     # return. For example:
  697.     #
  698.     #  args = uid=500 gid=500 home=/var/mail/%u
  699.     #
  700.     #args =
  701.   #}
  702.   # SQL database
  703.   # http://wiki.dovecot.org/AuthDatabase/SQL
  704.   #userdb sql {
  705.     # Path for SQL configuration file, see doc/dovecot-sql.conf for example
  706.     #args =
  707.   #}
  708.   # LDAP database
  709.   # http://wiki.dovecot.org/AuthDatabase/LDAP
  710.   #userdb ldap {
  711.     # Path for LDAP configuration file, see doc/dovecot-ldap.conf for example
  712.     #args =
  713.   #}
  714.   # vpopmail
  715.   # http://wiki.dovecot.org/AuthDatabase/VPopMail
  716.   #userdb vpopmail {
  717.   #}
  718.   # "prefetch" user database means that the passdb already provided the
  719.   # needed information and there's no need to do a separate userdb lookup.
  720.   # This can be made to work with SQL and LDAP databases, see their example
  721.   # configuration files for more information how to do it.
  722.   # http://wiki.dovecot.org/UserDatabase/Prefetch
  723.   #userdb prefetch {
  724.   #}
  725.   # User to use for the process. This user needs access to only user and
  726.   # password databases, nothing else. Only shadow and pam authentication
  727.   # requires roots, so use something else if possible. Note that passwd
  728.   # authentication with BSDs internally accesses shadow files, which also
  729.   # requires roots. Note that this user is NOT used to access mails.
  730.   # That user is specified by userdb above.
  731.   user = root
  732.   # It's possible to export the authentication interface to other programs:
  733.   #socket listen {
  734.     #master {
  735.       # Master socket is typically used to give Dovecot's local delivery
  736.       # agent access to userdb so it can find mailbox locations. It can
  737.       # however also be used to disturb regular user authentications.
  738.       # WARNING: Giving untrusted users access to master socket may be a
  739.       # security risk, don't give too wide permissions to it!
  740.       #path = /var/run/dovecot/auth-master
  741.       #mode = 0600
  742.       # Default user/group is the one who started dovecot-auth (root)
  743.       #user =
  744.       #group =
  745.     #}
  746.     #client {
  747.       # The client socket is generally safe to export to everyone. Typical use
  748.       # is to export it to your SMTP server so it can do SMTP AUTH lookups
  749.       # using it.
  750.       #path = /var/run/dovecot/auth-client
  751.       #mode = 0660
  752.     #}
  753.   #}
  754. }
  755. # If you wish to use another authentication server than dovecot-auth, you can
  756. # use connect sockets. They assumed to be already running, Dovecot's master
  757. # process only tries to connect to them. They don't need any other settings
  758. # than the path for the master socket, as the configuration is done elsewhere.
  759. # Note that the client sockets must exist in the login_dir.
  760. #auth external {
  761. #  socket connect {
  762. #    master {
  763. #      path = /var/run/dovecot/auth-master
  764. #    }
  765. #  }
  766. #}
  767. ##
  768. ## Dictionary server settings
  769. ##
  770. # Dictionary can be used by some plugins to store key=value lists.
  771. # Currently this is only used by dict quota backend. The dictionary can be
  772. # used either directly or though a dictionary server. The following dict block
  773. # maps dictionary names to URIs when the server is used. These can then be
  774. # referenced using URIs in format "proxy:<name>".
  775. dict {
  776.   #quota = mysql:/etc/dovecot-dict-quota.conf
  777. }
  778. ##
  779. ## Plugin settings
  780. ##
  781. plugin {
  782.   # Here you can give some extra environment variables to mail processes.
  783.   # This is mostly meant for passing parameters to plugins. %variable
  784.   # expansion is done for all values.
  785.   # Convert plugin. If set, specifies the source storage path which is
  786.   # converted to destination storage (mail_location).
  787.   #convert_mail = mbox:%h/mail
  788.   # Trash plugin. When saving a message would make user go over quota, this
  789.   # plugin automatically deletes the oldest mails from configured mailboxes
  790.   # until the message can be saved within quota limits. The configuration file
  791.   # is a text file where each line is in format: <priority> <mailbox name>
  792.   # Mails are first deleted in lowest -> highest priority number order
  793.   #trash = /etc/dovecot-trash.conf
  794. }
  795. protocols = imaps


Message édité par Charly303 le 13-06-2007 à 20:38:31
n°922976
makiaveli ​the don
Posté le 13-06-2007 à 20:39:44  profilanswer
 

Merci a toi

n°922983
jo-iris
Posté le 13-06-2007 à 21:00:23  profilanswer
 

Petite question pour Charly303 :
 
avec cette config, peut-on gérer les quotas de boites mail ?  :ange:

n°922992
Charly303
Quand on veut on peut !
Posté le 13-06-2007 à 21:48:34  profilanswer
 

Non, pour cela il faudrait l'implémenter.
 
En effet, le simple fait d'utiliser dans le main.cf (annoté ci-dessous) devrait suffir.  
 
Je ne l'ai pas vérifié malheureusement :(  
-----------------------------------
header_size_limit = 1024000
qmgr_message_recipient_limit = 200000
message_size_limit = 102400000
mailbox_size_limit = 512000000
--------------------------------
 
En tout cas sur dovecot.conf on y trouve une implémentation MySQL (???)
-----------------------------------------------
#
dict {
#
 #quota = mysql:/etc/dovecot-dict-quota.conf
#
}
-----------------------------------------------------
 
 

mood
Publicité
Posté le 13-06-2007 à 21:48:34  profilanswer
 

n°923080
makiaveli ​the don
Posté le 14-06-2007 à 10:46:35  profilanswer
 

Re
 
Après avoir épluché le net de partout je n'ai pas trouvé si c'était possible avec cyrus d'utiliser le login et password UNIX. Si quelqu'un sait la commande a mettre de le imapd.conf.
 
sasl_pwcheck_method: ?????
 
Merci d'avance

n°923155
Charly303
Quand on veut on peut !
Posté le 14-06-2007 à 13:52:16  profilanswer
 

Cyrus SASL 1.5.26
 
/usr/local/lib/sasl/smtpd.conf
pwcheck_method. saslauthd
 
Cyrus SASL 2.1.x
 
/usr/local/lib/sasl2/smtpd.conf
pwcheck_method. saslauthd
mech_list: PLAIN LOGIN
 
Voili voilou.


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs
  réseaux et sécurité

  Serveur Mail (Postfix + Cyrus Imap)

 

Sujets relatifs
[Postfix + Amavis + Spamassassin] Spamassassin n'attribue pas de scorePostfix virtual users LDAP et messages d'absence
[Postfix] Changer le port 25 - EnvoiMeilleur Adresse Mail
Webcalendar et Mailproblème serveur visuel
Mise en place d'un serveur ProxyCopie d'un serveur complet
shutdown sur un serveur en prod?[postfix] Spam sans être open relay
Plus de sujets relatifs à : Serveur Mail (Postfix + Cyrus Imap)


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR