You are not logged in.
Hi all,
I'm am struggling trying to configure a mail server. I have a dedicated server running archlinux.
I want to setup a complete mail server, ie: web access (for that I installed roundcube) and being able to retrieve mails on any e-mail client.
I followed this guide, from the documentation but I've read that courier-imap is a lot more resources hungry than dovecot. As I could not have it working using the documentation, I tought I would use dovecot. The problem is that I am not able to configure it.
What I already have up and running: web server (nginx) with postfixadmin and roundcubemail, postfix, mysql.
Now, I want to be able to send and receive mails using dovecot. Could you guide me a little in order to replace courier-imap with dovecot, starting from this documentation? I already have my databases configured, a vmail user, ssl certificates and postifx configured for virtualhosts. Seems that the only thing missing is imap + smts thrue TLS.
Thanks for any help.
Last edited by Rolinh (2011-08-17 10:40:19)
Offline
The dovecot configuration files are very well commented with documentation and examples in /etc/dovecot/
As for TLS and SMTP Auth, this is the relevant part of my main.cf for postfix:
# TLS Settings
smtpd_use_tls = yes
smtpd_tls_key_file = /etc/postfix/wildcard.example.com.key
smtpd_tls_cert_file = /etc/postfix/wildcard.example.com.crt
smtpd_tls_CAfile = /etc/postfix/root.crt
smtpd_tls_received_header = yes
smtpd_tls_security_level = may
smtpd_tls_loglevel = 1
smtpd_tls_session_cache_timeout = 3600s
smtp_use_tls = yes
smtp_tls_security_level = may
smtp_tls_note_starttls_offer = yes
tls_random_source = dev:/dev/urandom
# Enable SMTP authentication support
broken_sasl_auth_clients = yes
smtp_sasl_auth_enable = no
smtpd_sasl_auth_enable = yes
smtpd_sasl_type = dovecot
smtpd_sasl_local_domain = $mydomain
smtpd_sasl_path = /srv/postfix/private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_authenticated_header = yes
smtpd_sender_restrictions = permit_sasl_authenticatedLast edited by fukawi2 (2011-08-17 12:33:15)
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Thanks a lot fukawi. I will have a serious look at it.
EDIT: you have twice two similar lines
smtp_use_tls = yes
smtp_tls_security_level = mayEDIT2: what is this?
smtpd_sasl_path = /srv/postfix/private/authLast edited by Rolinh (2011-08-17 13:17:27)
Offline
Well, all tutorials I found about configuring postfix+dovecot using virtual user through mysql are obsolete or debian orientated. If someone has a link to a good tutorial I would really appreciate it!
Offline
EDIT2: what is this?
smtpd_sasl_path = /srv/postfix/private/auth
IIRC, that is the socket that Postfix uses for communicating with your auth daemon (ie, dovecot)
Well, all tutorials I found about configuring postfix+dovecot using virtual user through mysql are obsolete or debian orientated. If someone has a link to a good tutorial I would really appreciate it!
Have you looked at /etc/dovecot/dovecot-sql-example.conf? It is very well commented. If you have specific questions about it, ask those.
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline