martinr92
New Member
Hallo zusammen,
ich hab gestern den Zarafa installiert und er funktioniert auch (den e-Mail-Versand mal ausgenommen) super.
Zurzeit werden die Mails von Postfix angenommen und dann an Dovecot weiter gegeben. Über IMAP rufe ich dann die Mails ab.
Alles wurde nach dieser Anleitung eingerichtet.(einziger unterschied bei mir: ich hab das Kapitel "Herausfiltern von Spam und Viren" übersprungen)
So jetzt zu meinem Problem:
Wie schaffe ich es jetzt das ich meine e-Mails nach Zarafa bekomme (also ich hab mir da gedacht, ich lösche dovecot runter und Postfix soll die Mails an Zarafa übergeben; so wie es in Kapitel 2.13.1 des Zarafa Server Manual beschrieben ist). Da dort aber von dem User vmail gesprochen wird (den es bei mit schon gibt) hab ich den user einfach zarafavmail genannt.
Leider kommen keine Mails an
Hier noch die Configs:
zarafa-dagent
zarafa-server
postfix/main.cf
master.cf
Der Server.log sagt mir dann aber folgendes:
Hat jemand eine Idee, wo ein Fehler stecken könnte?
Gruß
Martin
Edit:
ich hab jetzt in die Config von Postfix noch folgende Zeilen eingetragen:
Neuer SystemLog
Die Mails kommen jedoch weiterhin nicht bei Zarafa an :-(
Im Ordner /var/vmail/ wurde eine Datei "1" angelegt und in der werden alle Mails gespeichert
Edit2:
Folgende Zarafa-Prozesse laufen:
zarafa-server
zarafa-monitor
zarafa-licensed
Edit3:
Sollte es eine andere Möglichkeit geben das ganze einzurichten sagt bitte Bescheid. Ich bin echt am Verzweifeln.
D I E L Ö S U N G:
Ich habs:
Ich hab einfach meine postfix-conf Datei gelöscht und wie hier beschrieben eingestellt.
# Closed
ich hab gestern den Zarafa installiert und er funktioniert auch (den e-Mail-Versand mal ausgenommen) super.
Zurzeit werden die Mails von Postfix angenommen und dann an Dovecot weiter gegeben. Über IMAP rufe ich dann die Mails ab.
Alles wurde nach dieser Anleitung eingerichtet.(einziger unterschied bei mir: ich hab das Kapitel "Herausfiltern von Spam und Viren" übersprungen)
So jetzt zu meinem Problem:
Wie schaffe ich es jetzt das ich meine e-Mails nach Zarafa bekomme (also ich hab mir da gedacht, ich lösche dovecot runter und Postfix soll die Mails an Zarafa übergeben; so wie es in Kapitel 2.13.1 des Zarafa Server Manual beschrieben ist). Da dort aber von dem User vmail gesprochen wird (den es bei mit schon gibt) hab ich den user einfach zarafavmail genannt.
Leider kommen keine Mails an
Hier noch die Configs:
zarafa-dagent
Code:
##############################################################
# DAGENT SETTINGS
server_socket = file:///var/run/zarafa
##############################################################
# DAGENT SSL LOGIN SETTINGS
#
# Note: server_socket must be set to https://servername:portname/zarafa
# to use this type of login method
# Login to the Zarafa server using this SSL Key
sslkey_file = /etc/zarafa/ssl/dagent.pem
# The password of the SSL Key
sslkey_pass = replace-with-dagent-cert-password
##############################################################
# DAGENT LOG SETTINGS
# Logging method (syslog, file)
log_method = file
# Loglevel (0=no logging, 5=full logging)
log_level = 5
# Logfile for log_method = file, use '-' for stderr
# log_file = -
log_file = /var/log/zarafa/dagent.log
# Log timestamp - prefix each log line with timestamp in 'file' logging mode
log_timestamp = 0
##############################################################
# DAGENT LMTP SETTINGS
# start dagent with -d to create an lmtp daemon of the zarafa-dagent
# binding address for LMTP daemon
# change to 0.0.0.0 if you require connections over the network
server_bind = 127.0.0.1
# LMTP port to listen on for LMTP connections
lmtp_port = 2003
# Maximum LMTP threads that ca be running simultaneously
# This is also limited by your SMTP server. (20 is the postfix default concurrency limit)
lmtp_max_threads = 20
# run as specific user in LMTP mode.
# make sure this user is listed in local_admin_users in your zarafa server config
# or use SSL connections with certificates to login
run_as_user =
# run as specific group in LMTP mode.
run_as_group =
# control pid file
pid_file = /var/run/zarafa-dagent.pid
zarafa-server
Code:
##############################################################
# SERVER SETTINGS
# IP Address to bind to (0.0.0.0 for ANY)
# Set to 127.0.0.1 if connections should only come from localhost
# and through the webserver proxy
server_bind = 0.0.0.0
# Accept normal TCP connections (not recommended to disable)
server_tcp_enabled = yes
# Port to bind to
server_tcp_port = 236
# Accept unix pipe connections (not recommended to disable)
server_pipe_enabled = yes
# Unix socket location
server_pipe_name = /var/run/zarafa
# Name for identifying the server in a multi-server environment
server_name = Zarafa
# Database engine (mysql)
database_engine = mysql
# Allow connections from normal users through the unix socket
allow_local_users = yes
# local admin users who can connect to any store (use this for the zarafa-dagent)
# field is SPACE separated
# eg: local_admin_users = root vmail
local_admin_users = root zarafavmail
# e-mail address of the Zarafa System user
system_email_address = postmaster@localhost
# drop privileges and run the process as this user
run_as_user =
# drop privileges and run the process as this group
run_as_group =
# create a pid file for stopping the service via the init.d scripts
pid_file = /var/run/zarafa-server.pid
# run server in this path (when not using the -F switch)
running_path = /
# session timeout for clients. Values lower than 300 will be upped to 300
# automatically. If the server hears nothing from a client in session_timeout
# seconds, then the session is killed.
session_timeout = 300
# Socket to connect to for license server
license_socket = /var/run/zarafa-licensed
##############################################################
# LOG SETTINGS
# Logging method (syslog, eventlog, file)
log_method = file
# Logfile (for log_method = file
log_file = /var/log/zarafa/server.log
# Loglevel (0=no logging, 5=full logging)
log_level = 2
# Log timestamp - prefix each log line with timestamp in 'file' logging mode
log_timestamp = 1
##############################################################
# MYSQL SETTINGS (for database_engine = mysql)
# MySQL hostname to connect to for database access
mysql_host = localhost
# MySQL port to connect with (usually 3306)
mysql_port = 3306
# The user under which we connect with MySQL
mysql_user = root
# The password for the user (leave empty for no password)
mysql_password = hier-steht-das-richtige-passwort
# Database to connect to
mysql_database = zarafa
# Where to place attachments. Value can be 'database' or 'files'
attachment_storage = database
# When attachment_storage is 'files', use this path to store the files
attachment_path = /var/lib/zarafa
# Compression level for attachments when attachment_storage is 'files'.
# Set compression level for attachments disabled=0, max=9
attachment_compression = 6
##############################################################
# SSL SETTINGS
# enable SSL support in server
server_ssl_enabled = no
# Listen for SSL connections on this port
server_ssl_port = 237
# Required Server certificate, contains the certificate and the private key parts
server_ssl_key_file = /etc/zarafa/ssl/server.pem
# Password of Server certificate
server_ssl_key_pass = replace-with-server-cert-password
# Required Certificate Authority of server
server_ssl_ca_file = /etc/zarafa/ssl/cacert.pem
# Path with CA certificates, e.g. /etc/ssl/certs
server_ssl_ca_path =
# Path of SSL Public keys of clients
sslkeys_path = /etc/zarafa/sslkeys
##############################################################
# OTHER SETTINGS
# Softdelete clean cycle (in days) 0=never running
softdelete_lifetime = 30
# Sync lifetime, removes all changes remembered for a client after x days of inactivity
sync_lifetime = 365
# Set to 'yes' if all changes (for synchronization) to messages should be logged to the database
sync_log_all_changes = yes
# Set to 'yes' if you have NTLM correctly configured for single sign-on
enable_sso_ntlmauth = no
#############################################################
# CACHE SETTINGS
# Size in bytes of the 'cell' cache (should be set as high as you can afford to set it)
cache_cell_size = 16777216
# Size in bytes of the 'object' cache
cache_object_size = 5242880
# Size in bytes of the 'indexed object' cache
cache_indexedobject_size = 16777216
# Lifetime for userquota details
cache_quota_lifetime = 1
# Lifetime for user details
cache_userdetails_lifetime = 5
# Thread size in KB, default is 512
# WARNING: Do not set too small, your server WILL crash
thread_stacksize = 512
##############################################################
# QUOTA SETTINGS
# The default Warning Quota Level. Set to 0 to disable this level.
# The user will receive an email when this level is reached. Value is in Mb. Default value is 0.
quota_warn = 0
# The default Soft Quota Level. Set to 0 to disable this level.
# The user will still receive mail, but sending new mail is prohibited, until objects are removed from the store.
# VALUE is in Mb. Default value is 0.
quota_soft = 0
# The default Hard Quota Level. Set to 0 to disable this level.
# The user can not receive and send mail, until objects are removed from the store.
# Value is in Mb. Default value is 0.
quota_hard = 0
# The default Warning Quota Level. Set to 0 to disable this level.
# The company administrator will receive an email when this level is reached. Value is in Mb. Default value is 0.
companyquota_warn = 0
##############################################################
# USER PLUGIN SETTINGS
# Name of the plugin that handles users
# Required, default = ldap
# Values: ldap, unix, db
user_plugin = db
# configuration file of the user plugin, examples can be found in /usr/share/zarafa/example-config
user_plugin_config = /etc/zarafa/ldap.cfg
# location of the zarafa plugins
# if you have a 64bit distribution, this probably should be changed to /usr/lib64/zarafa
plugin_path = /usr/lib/zarafa
# scripts which create stores for users from an external source
# used for ldap and unix plugins only
createuser_script = /etc/zarafa/userscripts/createuser
deleteuser_script = /etc/zarafa/userscripts/deleteuser
creategroup_script = /etc/zarafa/userscripts/creategroup
deletegroup_script = /etc/zarafa/userscripts/deletegroup
createcompany_script = /etc/zarafa/userscripts/createcompany
deletecompany_script = /etc/zarafa/userscripts/deletecompany
##############################################################
# MISC SETTINGS
# Enable multi-company environment
# When set to true it is possible to create companies within the
# zarafa instance and assign all users and groups to particular
# companies.
# When set to false, the normal single-company environment is created.
enable_hosted_zarafa = false
# Enable multi-server environment
# When set to true it is possible to place users and companies on
# specific servers.
# When set to false, the normal single-server environment is created.
enable_distributed_zarafa = false
# Display format of store name
# Allowed variables:
# %u Username
# %f Fullname
# %c Companyname
# default: %f
storename_format = %f
# Loginname format (for Hosted installations)
# When the user does not login through a system-wide unique
# username (like the email address) a unique name is created
# by combining the username and the companyname.
# With this configuration option you can set how the
# loginname should be built up.
#
# Allowed variables:
# %u username
# %c companyname
#
# default: %u
loginname_format = %u
# Set to yes for Windows clients to be able to download the latest
# Zarafa Outlook client from the Zarafa server
client_update_enabled = false
# Place the correct Zarafa Outlook Client in this directory for
# Windows clients to download through the Zarafa server
client_update_path = /var/lib/zarafa/client
# Everyone is a special internal group, which contains every user and group
# You may want to disable this group from the Global Addressbook by setting
# this option to 'yes'. Administrators will still be able to see the group.
hide_everyone = no
postfix/main.cf
Code:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
# TLS parameters
#smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
#smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
#smtpd_use_tls=yes
#smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
#smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
myhostname = hier-steht-meine-domain.de
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/postfix/mysql-email2email.cf
#virtual_transport = dovecot
#dovecot_destination_recipient_limit = 1
#smtpd_sasl_type = dovecot
#smtpd_sasl_path = private/auth
#smtpd_sasl_auth_enable = yes
#smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
# 500MB-Grenze für Mails
message_size_limit = 524288000
# Zarafa
mailbox_transport = zarafa:
zarafa_destination_recipient_limit = 1
Code:
#
# Postfix master process configuration file. For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - - - - smtpd
#submission inet n - - - - smtpd
# -o smtpd_enforce_tls=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps inet n - - - - smtpd
# -o smtpd_tls_wrappermode=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#628 inet n - - - - qmqpd
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - - 300 1 oqmgr
tlsmgr unix - - - 1000? 1 tlsmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
flush unix n - - 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - - - - smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - - - - smtp
-o fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - - - - showq
error unix - - - - - error
discard unix - - - - - discard
local unix - n n - - local
virtual unix - n n - - virtual
#lmtp unix - - n - - lmtp
lmtp unix - - - - - lmtp
anvil unix - - - - 1 anvil
scache unix - - - - 1 scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent. See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
#
# See the Postfix UUCP_README file for configuration details.
#
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix - n n - 2 pipe
flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}
#dovecot unix - n n - - pipe
# flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -d ${recipient}
zarafa unix - n n - 10 pipe
flags= user=zarafavmail argv=/usr/bin/zarafa-dagent ${user}
Der Server.log sagt mir dann aber folgendes:
Code:
Sep 11 17:27:10 postfix/smtpd[29707]: connect from mail-ew0-f218.google.com[209.85.219.218]
Sep 11 17:27:10 postfix/smtpd[29707]: B32941F2E26: client=mail-ew0-f218.google.com[209.85.219.218]
Sep 11 17:27:10 postfix/cleanup[29734]: B32941F2E26: message-id=<[email protected]>
Sep 11 17:27:10 postfix/qmgr[21649]: B32941F2E26: from=<[email protected]>, size=1794, nrcpt=1 (queue active)
Sep 11 17:27:10 postfix/virtual[29740]: fatal: bad string length 0 < 1: virtual_mailbox_base =
Sep 11 17:27:11 postfix/master[21639]: warning: process /usr/lib/postfix/virtual pid 29740 exit status 1
Sep 11 17:27:11 postfix/master[21639]: warning: /usr/lib/postfix/virtual: bad command startup -- throttling
Hat jemand eine Idee, wo ein Fehler stecken könnte?
Gruß
Martin
Edit:
ich hab jetzt in die Config von Postfix noch folgende Zeilen eingetragen:
Code:
virtual_mailbox_base = /var/vmail
# 5 GB pro Mailfach
virtual_mailbox_limit = 5368709120
Neuer SystemLog
Code:
Sep 11 17:47:37 postfix/smtpd[9695]: connect from ey-out-1920.google.com[74.125.78.144]
Sep 11 17:47:37 postfix/smtpd[9695]: E8F1B1F441A: client=ey-out-1920.google.com[74.125.78.144]
Sep 11 17:47:37 postfix/cleanup[9778]: E8F1B1F441A: message-id=<[email protected]>
Sep 11 17:47:38 postfix/qmgr[30054]: E8F1B1F441A: from=<[email protected]>, size=1808, nrcpt=1 (queue active)
Sep 11 17:47:38 postfix/virtual[9788]: E8F1B1F441A: to=<[email protected]>, relay=virtual, delay=0.76, delays=0.51/0/0/0.25, dsn=2.0.0, status=sent (delivered to mailbox)
Sep 11 17:47:38 postfix/qmgr[30054]: E8F1B1F441A: removed
Sep 11 17:48:08 postfix/smtpd[9695]: disconnect from ey-out-1920.google.com[74.125.78.144]
Im Ordner /var/vmail/ wurde eine Datei "1" angelegt und in der werden alle Mails gespeichert
Edit2:
Folgende Zarafa-Prozesse laufen:
zarafa-server
zarafa-monitor
zarafa-licensed
Edit3:
Sollte es eine andere Möglichkeit geben das ganze einzurichten sagt bitte Bescheid. Ich bin echt am Verzweifeln.
D I E L Ö S U N G:
Ich habs:
Ich hab einfach meine postfix-conf Datei gelöscht und wie hier beschrieben eingestellt.
# Closed
Last edited by a moderator: