You are not logged in.

#1 2011-08-17 10:39:14

Rolinh
Member
From: Switzerland
Registered: 2011-05-07
Posts: 144
Website

Mail Server: problem configuring dovecot with postifx and virtualhosts

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

#2 2011-08-17 12:32:48

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: Mail Server: problem configuring dovecot with postifx and virtualhosts

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_authenticated

Last edited by fukawi2 (2011-08-17 12:33:15)

Offline

#3 2011-08-17 12:52:57

Rolinh
Member
From: Switzerland
Registered: 2011-05-07
Posts: 144
Website

Re: Mail Server: problem configuring dovecot with postifx and virtualhosts

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 = may

EDIT2: what is this?

smtpd_sasl_path = /srv/postfix/private/auth

Last edited by Rolinh (2011-08-17 13:17:27)

Offline

#4 2011-08-17 14:36:01

Rolinh
Member
From: Switzerland
Registered: 2011-05-07
Posts: 144
Website

Re: Mail Server: problem configuring dovecot with postifx and virtualhosts

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

#5 2011-08-17 23:19:08

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: Mail Server: problem configuring dovecot with postifx and virtualhosts

Rolinh wrote:

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)

Rolinh wrote:

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.

Offline

Board footer

Powered by FluxBB