linux:email:cyrus:config


Modify /etc/cyrus.conf to:

START {
  recover       cmd="ctl_cyrusdb -r"
  deliver       cmd="ctl_deliver -r"
}

SERVICES {
  imap          cmd="imapd" listen="imap" prefork=0
  #  imaps                cmd="imapd -s" listen="imaps" prefork=0
  pop3          cmd="pop3d" listen="pop3" prefork=0
  #  pop3s                cmd="pop3d -s" listen="pop3s" prefork=0
  sieve         cmd="timsieved" listen="sieve" prefork=2
  # entry must be the same as in the mailbox_transport-setting of /etc/postfix/main.cf !
  lmtpunix      cmd="lmtpd" listen="/var/spool/postfix/public/lmtp" prefork=1
}

EVENTS {
  checkpoint    cmd="ctl_cyrusdb -c" period=30
  # die Verwendung von "at=Uhrzeit im 24h-Format" setzt den Wert von
  # "period" implizit auf 1440 (24 Std. bzw. taeglich)
  #delprune      cmd="cyr_expire -E 3" at=0400
  # delprune      cmd="cyr_deliver -E 3" period=1440
  tlsprune      cmd="tls_prune" at=0400
  # tlsprune      cmd="ctl_deliver -E 3" period=1440
  # cleanup      cmd="ipurge -d 30 -f" period=60
}


Modify your /etc/imapd.conf to:

configdirectory: /var/lib/imap
partition-default: /var/spool/imap
admins: cyrus
#defaultacl: anyone lrsp
allowanonymouslogin: no
# 2007-05-04, chhaas:
#allowplaintext: yes
# 17.01.2007, chhaas: 100 MB Mailboxgroesse
autocreatequota: 100000
reject8bit: no
# 17.01.2007, chhaas: 70% Mailboxfuellung fuer Quota-Warung
quotawarn: 70
timeout: 300
poptimeout: 10
dracinterval: 0
drachost: localhost
sasl_pwcheck_method: saslauthd
#sasl_auth_mech: MD5
sasl_minimum_layer: 0
#sasl_maximum_layer: 1
sasl_mech_list: PLAIN LOGIN
# 17.01.2007, chhaas: Fehlermeldung an Postfix, wenn Mailbox voll
lmtp_overquota_perm_failure: yes
lmtp_downcase_rcpt: yes
# entry must be the same as in the mailbox_transport-setting of /etc/postfix/main.cf !
lmtpsocket: /var/spool/postfix/public/lmtp
sievedir: /var/lib/sieve
# 2007-06-28, chhaas: TEST!
sievenotifier: log

—- alternative entries:

allowplaintext: yes
servername: station7.example.com
defaultdomain: example.com
loginrealms: example.com
virtdomains: yes
hashimapspool: true


station7:/ # imtest -a root -u root -m LOGIN station7.example.com
S: * OK station7 Cyrus IMAP4 v2.2.12 server ready
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE X-NETSCAPE
S: C01 OK Completed
Please enter your password:
C: L01 LOGIN root {6}
S: + go ahead
C: <omitted>
S: L01 OK User logged in
Authenticated.
Security strength factor: 0


Use a portscanner like “nmap”:
station7:/ # nmap localhost | grep imap

143/tcp  open  imap


→ imap is running at port 143

zurück

Diese Website verwendet Cookies. Durch die Nutzung der Website stimmen Sie dem Speichern von Cookies auf Ihrem Computer zu. Außerdem bestätigen Sie, dass Sie unsere Datenschutzbestimmungen gelesen und verstanden haben. Wenn Sie nicht einverstanden sind, verlassen Sie die Website.Weitere Information
  • linux/email/cyrus/config.txt
  • Zuletzt geändert: 2017-04-25 14:52
  • von 127.0.0.1