[Exim] considerations about exim and cyrus

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Thomas Baumann
Dátum:  
Címzett: exim-users@exim.org
Tárgy: [Exim] considerations about exim and cyrus
I had some problems with configuring exim 4 and cyrus
but now it works.... mybe this helps others as well

[/etc/services]
# Local services
lmtp            24/tcp                          # LMTP Mail Delivery over TCP
lmtp            24/udp                          # LMTP Mail Delivery over TCP
pop3            110/tcp         pop-3           # POP version 3
pop3            110/udp         pop-3
imap            143/tcp         imap2           # Interim Mail Access Proto v2
imap            143/udp         imap2
imaps           993/tcp                         # IMAP over SSL
imaps           993/udp                         # IMAP over SSL
pop3s           995/tcp                         # POP-3 over SSL
pop3s           995/udp                         # POP-3 over SSL
sieve           2000/tcp                        # Sieve Mail Filter Daemon
sieve           2000/udp                        # Sieve Mail Filter Daemon


[/etc/imapd.conf]
configdirectory: /var/lib/imap
partition-default: /var/spool/imap
admins: cyrus
allowanonymouslogin: no
sieveuserhomedir: no
sievedir: /var/lib/imap/sieve
sendmail: /usr/sbin/sendmail
hashimapspool: true
sasl_pwcheck_method: saslauthd
sasl_mech_list: PLAIN
tls_cert_file: /usr/share/ssl/certs/cyrus-imapd.pem
tls_key_file: /usr/share/ssl/certs/cyrus-imapd.pem

[/etc/cyrus.conf]
# standard standalone server implementation

START {
  # do not delete this entry!
  recover       cmd="ctl_cyrusdb -r"


  # this is only necessary if using idled for IMAP IDLE
#  idled                cmd="idled"
}


# UNIX sockets start with a slash and are put into /var/lib/imap/sockets
SERVICES {
  # add or remove based on preferences
  imap          cmd="imapd" listen="imap" prefork=5
  imaps         cmd="imapd -s" listen="imaps" prefork=1
  pop3          cmd="pop3d" listen="pop3" prefork=3
  pop3s         cmd="pop3d -s" listen="pop3s" prefork=1
  sieve         cmd="timsieved" listen="sieve" prefork=0


  # at least one LMTP is required for delivery
  lmtp          cmd="lmtpd -a" listen="lmtp" prefork=0
  # lmtpunix    cmd="lmtpd -a" listen="/var/lib/imap/socket/lmtp" prefork=1


  # this is only necessary if using notifications
#  notify       cmd="notifyd" listen="/var/lib/imap/socket/notify" proto="udp" prefork=1
}


EVENTS {
  # this is required
  checkpoint    cmd="ctl_cyrusdb -c" period=30


  # this is only necessary if using duplicate delivery suppression
  delprune      cmd="ctl_deliver -E 3" at=0400


  # this is only necessary if caching TLS sessions
  tlsprune      cmd="tls_prune" at=0400
}


[/etc/exim/exim.conf]
# ....
########## ROUTERS
smart_route:
driver = manualroute
domains = !+local_domains
transport = remote_smtp
route_list = * "smarthost.com" byname

localuser:
driver = accept
transport = local_delivery_lmtp


########## TRANSPORTS
local_delivery_lmtp:
driver = smtp
protocol = lmtp
hosts_override
hosts = localhost
allow_localhost
return_path_add

# ....

[steps]
* installing cyrus-imapd
* passwd cyrus
* saslpasswd cyrus
* rc_saslauthd start
* rc_cyrus-imapd start
* su - cyrus
* cyradm --user cyrus 127.0.0.1
* cm user.test
* cm user.test.list.test
* sam user.test.list anyone p          # for test+list.test@.....
* rc_exim start



Have fun !


--
Thomas Baumann // tirili+list.exim@???