Hi Adrian, may i know which version of iRedAdmin-Pro you're running?
It is iRedAdmin-Pro-SQL2.4.1
Adrian
Hi Adrian, may i know which version of iRedAdmin-Pro you're running?
It is iRedAdmin-Pro-SQL2.4.1
Adrian
edit repo to packages URL and try update/install.
You must make sure the maildir path stored in SQL table "vmail.mailbox" are exactly same as the mailbox on file system. For example, /var/vmail/vmail1/<domain>/...
MariaDB [vmail]> select maildir from mailbox where username='john@doe.dk';
+-------------------------------------------------------+
| maildir |
+-------------------------------------------------------+
| doe.dk/j/o/h/john-2016.05.14.16.09.20/ |
+-------------------------------------------------------+
#> ls -l /var/vmail/vmail1/doe.dk/j/o/h/john-2016.05.14.16.09.20/
total 4
drwx------ 9 vmail vmail 4096 Oct 25 21:12 Maildir
/Brian
==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- Related log if you're reporting an issue:
======== Required information ====
- version: iRedMail-0.9.5-1
- Linux 16.04 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx):Apache
====
Hello, I have a little problem.I've got iRedMail installed and working properly, however,I can't send a mail to external addresses (Gmail, Mail.ru,Ukr.net ... etc.). I looked in the Mail.log file and noticed an error. Please, help me to fix it.
Mail.log
Sep 30 08:55:50 mail postfix/submission/smtpd[1819]: connect from mail.its.cloud[127.0.0.1]
Sep 30 08:55:50 mail postfix/submission/smtpd[1819]: Anonymous TLS connection established from mail.its.cloud[127.0.0.1]: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
Sep 30 08:55:50 mail postfix/submission/smtpd[1819]: 7D489474D2: client=mail.its.cloud[127.0.0.1], sasl_method=LOGIN, sasl_username=postmaster@its.cloud
Sep 30 08:55:50 mail postfix/cleanup[1854]: 7D489474D2: message-id=<2550fdc09a5303093ad9e9320c557265@its.cloud>
Sep 30 08:55:50 mail postfix/qmgr[1663]: 7D489474D2: from=, size=530, nrcpt=1 (queue active)
Sep 30 08:55:50 mail roundcube: <92arj3q9> User postmaster@its.cloud [10.30.11.42]; Message for Test@mail.ru; 250: 2.0.0 Ok: queued as 7D489474D2
Sep 30 08:55:50 mail postfix/submission/smtpd[1819]: disconnect from mail.its.cloud[127.0.0.1] ehlo=2 starttls=1 auth=1 mail=1 rcpt=1 data=1 quit=1 commands=8
Sep 30 08:55:50 mail amavis[1731]: (01731-01) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: No such file or directory
Sep 30 08:55:51 mail amavis[1731]: (01731-01) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: No such file or directory
Sep 30 08:55:51 mail amavis[1731]: (01731-01) (!)ClamAV-clamd: All attempts (1) failed connecting to /var/run/clamav/clamd.ctl, retrying (2)
Sep 30 08:55:57 mail amavis[1731]: (01731-01) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: No such file or directory
Sep 30 08:55:57 mail amavis[1731]: (01731-01) (!)ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd.ctl (All attempts (1) failed connecting to /var/run/clamav/clamd.ctl) at (eval 104) line 613.\n
Sep 30 08:55:57 mail amavis[1731]: (01731-01) (!)WARN: all primary virus scanners failed, considering backups
Sep 30 08:55:58 mail amavis[1731]: (01731-01) (!)run_av (ClamAV-clamscan) FAILED - unexpected exit 2, output="WARNING: Ignoring deprecated option --disable-summary\nLibClamAV Error: cli_loaddbdir(): No supported database files found in /var/lib/clamav\nERROR: Can't open file or directory\n\n----------- SCAN SUMMARY -----------\nKnown viruses: 0\nEngine version: 0.99.2\nScanned directories: 0\nScanned files: 0\nInfected files: 0\nData scanned: 0.00 MB\nData read: 0.00 MB (ratio 0.00:1)\nTime: 0.057 sec (0 m 0 s)"
Sep 30 08:55:58 mail amavis[1731]: (01731-01) (!)ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan unexpected exit 2, output="WARNING: Ignoring deprecated option --disable-summary\nLibClamAV Error: cli_loaddbdir(): No supported database files found in /var/lib/clamav\nERROR: Can't open file or directory\n\n----------- SCAN SUMMARY -----------\nKnown viruses: 0\nEngine version: 0.99.2\nScanned directories: 0\nScanned files: 0\nInfected files: 0\nData scanned: 0.00 MB\nData read: 0.00 MB (ratio 0.00:1)\nTime: 0.057 sec (0 m 0 s)" at (eval 104) line 905.
Sep 30 08:55:58 mail amavis[1731]: (01731-01) (!!)AV: ALL VIRUS SCANNERS FAILED
Sep 30 08:55:58 mail postfix/smtpd[1859]: connect from mail.its.cloud[127.0.0.1]
Sep 30 08:55:58 mail postfix/smtpd[1859]: 84D6C474D3: client=mail.its.cloud[127.0.0.1]
Sep 30 08:55:58 mail postfix/cleanup[1854]: 84D6C474D3: message-id=<2550fdc09a5303093ad9e9320c557265@its.cloud>
Sep 30 08:55:58 mail postfix/qmgr[1663]: 84D6C474D3: from=, size=1589, nrcpt=1 (queue active)
Sep 30 08:55:58 mail postfix/smtpd[1859]: disconnect from mail.its.cloud[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Sep 30 08:55:58 mail amavis[1731]: (01731-01) Passed UNCHECKED {RelayedInternal}, ORIGINATING/MYNETS LOCAL [127.0.0.1]:46646 -> , Queue-ID: 7D489474D2, Message-ID: <2550fdc09a5303093ad9e9320c557265@its.cloud>, mail_id: H8e42w6xM3h9, Hits: -1.01, size: 530, queued_as: 84D6C474D3, dkim_new=dkim:its.cloud, 7995 ms, Tests: [ALL_TRUSTED=-1,T_RP_MATCHES_RCVD=-0.01]
Sep 30 08:55:58 mail postfix/smtp[1856]: 7D489474D2: to=, relay=127.0.0.1[127.0.0.1]:10026, delay=8.1, delays=0.09/0/0.07/8, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 84D6C474D3)
Sep 30 08:55:58 mail postfix/qmgr[1663]: 7D489474D2: removed
Sep 30 08:55:58 mail postfix/smtp[1862]: connect to mxs.mail.ru[217.69.139.150]:25: Connection refused
Sep 30 08:55:58 mail postfix/smtp[1862]: connect to mxs.mail.ru[94.100.180.150]:25: Connection refused
Sep 30 08:55:58 mail postfix/smtp[1862]: 84D6C474D3: to=, relay=none, delay=0.07, delays=0.01/0.01/0.05/0, dsn=4.4.1, status=deferred (connect to mxs.mail.ru[94.100.180.150]:25: Connection refused)
Hiya,
I followed the instructions as follows:
"Disable 'auth_default_realm =' in /etc/dovecot/dovecot.conf, and disable 'username_domain' in Roundcube config file."
Here is the files:
dovecot.conf
# Listen addresses.
# - '*' means all available IPv4 addresses.
# - '[::]' means all available IPv6 addresses.
# Listen on all available addresses by default
listen = * [::]
#base_dir = /var/run/dovecot
mail_plugins = quota mailbox_alias acl
# Enabled mail protocols.
protocols = pop3 imap sieve lmtp
# User/group who owns the message files:
mail_uid = 2000
mail_gid = 2000
# Assign uid to virtual users.
first_valid_uid = 2000
last_valid_uid = 2000
# Logging. Reference: http://wiki2.dovecot.org/Logging
log_path = /var/log/dovecot.log
# Debug
#mail_debug = yes
#auth_verbose = yes
#auth_debug = yes
#auth_debug_passwords = yes
# Possible values: no, plain, sha1.
#auth_verbose_passwords = no
# SSL: Global settings.
# Refer to wiki site for per protocol, ip, server name SSL settings:
# http://wiki2.dovecot.org/SSL/DovecotConfiguration
ssl_protocols = !SSLv2 !SSLv3
ssl = required
verbose_ssl = no
#ssl_ca = </path/to/ca
ssl_cert = </etc/pki/tls/certs/iRedMail.crt
ssl_key = </etc/pki/tls/private/iRedMail.key
# Fix 'The Logjam Attack'
ssl_cipher_list = ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:ECDHE-RSA-DES-CBC3-SHA:ECDHE-ECDSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA
# Dovecot 2.2.6 or greater:
# Specify the wanted DH parameters length
ssl_dh_parameters_length = 2048
ssl_prefer_server_ciphers = yes
# IP ranges specified by login_trusted_networks setting are assumed to be secure.
#login_trusted_networks = 127.0.0.1
# With disable_plaintext_auth=yes AND ssl=required, STARTTLS is mandatory.
# Set disable_plaintext_auth=no AND ssl=yes to allow plain password transmitted
# insecurely.
disable_plaintext_auth = yes
# Allow plain text password per IP address/net
#remote 192.168.0.0/24 {
# disable_plaintext_auth = no
#}
# Mail location and mailbox format.
mail_location = maildir:%Lh/Maildir/:INDEX=%Lh/Maildir/
# Authentication related settings.
# Append this domain name if client gives empty realm.
###auth_default_realm = rajbps.co.uk
# Authentication mechanisms.
auth_mechanisms = PLAIN LOGIN
# Limits the number of users that can be logging in at the same time.
# Default is 100. This can be overridden by `process_limit =` in
# `service [protocol]` block.
# e.g.
# protocol imap-login {
# ...
# process_limit = 500
# }
#default_process_limit = 100
service auth {
unix_listener /var/spool/postfix/private/dovecot-auth {
user = postfix
group = postfix
mode = 0666
}
unix_listener auth-master {
user = vmail
group = vmail
mode = 0666
}
unix_listener auth-userdb {
user = vmail
group = vmail
mode = 0660
}
}
# LMTP server (Local Mail Transfer Protocol).
# Reference: http://wiki2.dovecot.org/LMTP
service lmtp {
user = vmail
# For higher volume sites, it may be desirable to increase the number of
# active listener processes. A range of 5 to 20 is probably good for most
# sites.
process_min_avail = 5
# Logging.
# Require 'info_log_path =' in 'protocol lmtp {}' block.
executable = lmtp -L
# Listening on socket file and TCP
unix_listener /var/spool/postfix/private/dovecot-lmtp {
user = postfix
group = postfix
mode = 0600
}
inet_listener lmtp {
# Listen on localhost (ipv4)
address = 127.0.0.1
port = 24
}
}
# Virtual mail accounts.
userdb {
args = /etc/dovecot/dovecot-ldap.conf
driver = ldap
}
passdb {
args = /etc/dovecot/dovecot-ldap.conf
driver = ldap
}
# Master user.
# Master users are able to log in as other users. It's also possible to
# directly log in as any user using a master password, although this isn't
# recommended.
# Reference: http://wiki2.dovecot.org/Authentication/MasterUsers
auth_master_user_separator = *
passdb {
driver = passwd-file
args = /etc/dovecot/dovecot-master-users
master = yes
}
plugin {
auth_socket_path = /var/run/dovecot/auth-master
# Quota configuration.
# Reference: http://wiki2.dovecot.org/Quota/Configuration
quota = dict:user::proxy::quotadict
quota_rule = *:storage=1G
#quota_rule2 = *:messages=0
#quota_rule3 = Trash:storage=1G
#quota_rule4 = Junk:ignore
# Quota warning.
#
# If user suddenly receives a huge mail and the quota jumps from
# 85% to 95%, only the 95% script is executed.
#
# Only the command for the first exceeded limit is executed, so configure
# the highest limit first.
quota_warning = storage=100%% quota-warning 100 %u
quota_warning2 = storage=95%% quota-warning 95 %u
quota_warning3 = storage=90%% quota-warning 90 %u
quota_warning4 = storage=85%% quota-warning 85 %u
# allow user to become max 10% (or 50 MB) over quota
quota_grace = 10%%
#quota_grace = 50 M
# Custom Quota Exceeded Message.
# You can specify the message directly or read the message from a file.
#quota_exceeded_message = Quota exceeded, please try again later.
#quota_exceeded_message = </path/to/quota_exceeded_message.txt
# Plugin: expire.
#expire = Trash 7 Trash/* 7 Junk 30
#expire_dict = proxy::expire
# ACL and share folder
acl = vfile
acl_shared_dict = proxy::acl
# By default Dovecot doesn't allow using the IMAP "anyone" or
# "authenticated" identifier, because it would be an easy way to spam
# other users in the system. If you wish to allow it,
#acl_anyone = allow
# Pigeonhole managesieve service.
# Reference: http://wiki2.dovecot.org/Pigeonhole/Sieve/Configuration
# Per-user sieve settings.
sieve_dir = %Lh/sieve
sieve = %Lh/sieve/dovecot.sieve
# Global sieve settings.
sieve_global_dir = /var/vmail/sieve
# Note: if user has personal sieve script, global sieve rules defined in
# sieve_default will be ignored. Please use sieve_before or
# sieve_after instead.
#sieve_default =
sieve_before = /var/vmail/sieve/dovecot.sieve
#sieve_after =
# The maximum number of redirect actions that can be performed during a
# single script execution.
# The meaning of 0 differs based on your version. For pigeonhole-0.3.0 and
# beyond this means that redirect is prohibited. For older versions,
# however, this means that the number of redirects is unlimited.
#sieve_max_redirects = 4
# Reference: http://wiki2.dovecot.org/Plugins/MailboxAlias
mailbox_alias_old = Sent
mailbox_alias_new = Sent Messages
mailbox_alias_old2 = Sent
mailbox_alias_new2 = Sent Items
}
service quota-warning {
executable = script /usr/local/bin/dovecot-quota-warning.sh
unix_listener quota-warning {
user = vmail
group = vmail
mode = 0660
}
}
service dict {
unix_listener dict {
mode = 0660
user = vmail
group = vmail
}
}
dict {
#expire = db:/var/lib/dovecot/expire/expire.db
quotadict = mysql:/etc/dovecot/dovecot-used-quota.conf
acl = mysql:/etc/dovecot/dovecot-share-folder.conf
}
protocol lda {
# Reference: http://wiki2.dovecot.org/LDA
mail_plugins = $mail_plugins sieve
auth_socket_path = /var/run/dovecot/auth-master
log_path = /var/log/dovecot-sieve.log
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
postmaster_address = root
}
protocol lmtp {
# Log file
info_log_path = /var/log/dovecot-lmtp.log
# Plugins
mail_plugins = quota sieve
postmaster_address = postmaster
lmtp_save_to_detail_mailbox = yes
recipient_delimiter = +
}
protocol imap {
mail_plugins = $mail_plugins imap_quota imap_acl
imap_client_workarounds = tb-extra-mailbox-sep
# Maximum number of IMAP connections allowed for a user from each IP address.
# NOTE: The username is compared case-sensitively.
# Default is 10.
# Increase it to avoid issue like below:
# "Maximum number of concurrent IMAP connections exceeded"
mail_max_userip_connections = 30
}
protocol pop3 {
mail_plugins = $mail_plugins
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
pop3_uidl_format = %08Xu%08Xv
# Maximum number of IMAP connections allowed for a user from each IP address.
# NOTE: The username is compared case-sensitively.
# Default is 10.
mail_max_userip_connections = 30
}
# Login processes. Refer to Dovecot wiki for more details:
# http://wiki2.dovecot.org/LoginProcess
service imap-login {
#inet_listener imap {
# port = 143
#}
#inet_listener imaps {
# port = 993
# ssl = yes
#}
#
# Require Dovecot-2.2.19+
#inet_listener imap_haproxy {
# port = 10143
# haproxy = yes
#}
service_count = 1
# To avoid startup latency for new client connections, set process_min_avail
# to higher than zero. That many idling processes are always kept around
# waiting for new connections.
#process_min_avail = 0
# number of simultaneous IMAP connections
process_limit = 500
# vsz_limit should be fine at its default 64MB value
#vsz_limit = 64M
}
service pop3-login {
#inet_listener pop3 {
# port = 110
#}
#inet_listener pop3s {
# port = 995
# ssl = yes
#}
#
# Require Dovecot-2.2.19+
#inet_listener pop3_haproxy {
# port = 10110
# haproxy = yes
#}
service_count = 1
# number of simultaneous POP3 connections
#process_limit = 500
}
service managesieve-login {
inet_listener sieve {
# Listen on localhost (ipv4)
address = 127.0.0.1
port = 4190
}
}
namespace {
type = private
separator = /
prefix =
#location defaults to mail_location.
inbox = yes
# Refer to document for more details about alias mailbox:
# http://wiki2.dovecot.org/MailboxSettings
#
# Sent
mailbox Sent {
auto = subscribe
special_use = \Sent
}
mailbox "Sent Messages" {
auto = no
special_use = \Sent
}
mailbox "Sent Items" {
auto = no
special_use = \Sent
}
mailbox Drafts {
auto = subscribe
special_use = \Drafts
}
# Trash
mailbox Trash {
auto = subscribe
special_use = \Trash
}
mailbox "Deleted Messages" {
auto = no
special_use = \Trash
}
# Junk
mailbox Junk {
auto = subscribe
special_use = \Junk
}
mailbox Spam {
auto = no
special_use = \Junk
}
mailbox "Junk E-mail" {
auto = no
special_use = \Junk
}
# Archive
mailbox Archive {
auto = no
special_use = \Archive
}
mailbox Archives {
auto = no
special_use = \Archive
}
}
namespace {
type = shared
separator = /
prefix = Shared/%%u/
location = maildir:%%Lh/Maildir/:INDEX=%%Lh/Maildir/Shared/%%u
# this namespace should handle its own subscriptions or not.
subscriptions = yes
list = children
}
# Public mailboxes.
# Refer to Dovecot wiki page for more details:
# http://wiki2.dovecot.org/SharedMailboxes/Public
#namespace {
# type = public
# separator = /
# prefix = Public/
#
# # CONTROL=: Mark this public folder as read-only mailbox
# # INDEX=: Per-user \Seen flag
# location = maildir:/var/vmail/public/:CONTROL=~/Maildir/public:INDEX=~/Maildir/public
#
# # Allow users to subscribe to the public folders.
# subscriptions = yes
#}
and the second one is : config.inc.php
in
/var/www/roundcubemail-1.2.0/config/config.inc.php
<?php
// SQL DATABASE
$config['db_dsnw'] = 'mysqli://roundcube:7Ud0KqnCmL6PTmuGW46e87Hv96Tupr@127.0.0.1/roundcubemail';
// LOGGING
$config['log_driver'] = 'syslog';
$config['syslog_facility'] = LOG_MAIL;
// IMAP
$config['default_host'] = '127.0.0.1';
$config['default_port'] = 143;
$config['imap_auth_type'] = 'LOGIN';
$config['imap_delimiter'] = '/';
// Required if you're running PHP 5.6
$config['imap_conn_options'] = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
),
);
// SMTP
$config['smtp_server'] = 'tls://127.0.0.1';
$config['smtp_port'] = 587;
$config['smtp_user'] = '%u';
$config['smtp_pass'] = '%p';
$config['smtp_auth_type'] = 'LOGIN';
// Required if you're running PHP 5.6
$config['smtp_conn_options'] = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
),
);
// Use user's identity as envelope sender for 'return receipt' responses,
// otherwise it will be rejected by iRedAPD plugin `reject_null_sender`.
$config['mdn_use_from'] = true;
// SYSTEM
$config['force_https'] = true;
$config['login_autocomplete'] = 2;
$config['ip_check'] = true;
$config['des_key'] = 'uC2YPaQRXc47PVDera94n4Rq';
$config['useragent'] = 'Roundcube Webmail'; // Hide version number
####//$config['username_domain'] = 'rajbps.co.uk';
$config['mime_types'] = '/etc/mime.types';
// USER INTERFACE
$config['create_default_folders'] = true;
$config['quota_zero_as_unlimited'] = true;
// USER PREFERENCES
$config['default_charset'] = 'UTF-8';
//$config['addressbook_sort_col'] = 'name';
$config['draft_autosave'] = 60;
$config['preview_pane'] = true;
$config['default_list_mode'] = 'threads';
$config['autoexpand_threads'] = 2;
$config['check_all_folders'] = true;
$config['default_font_size'] = '12pt';
$config['message_show_email'] = true;
// PLUGINS
$config['plugins'] = array('managesieve', 'password');
// Global LDAP address book.
$config['ldap_public']["global_ldap_abook"] = array(
'name' => 'Global LDAP Address Book',
'hosts' => array('127.0.0.1'),
'port' => 389,
'use_tls' => false,
'ldap_version' => '3',
'network_timeout' => 10,
'user_specific' => true,
// Search mail users under same domain.
'base_dn' => 'domainName=%d,o=domains,dc=example,dc=com',
'bind_dn' => 'mail=%u@%d,ou=Users,domainName=%d,o=domains,dc=example,dc=com',
'hidden' => false,
'searchonly' => false,
'writable' => false,
'search_fields' => array('mail', 'cn', 'sn', 'givenName', 'street', 'telephoneNumber', 'mobile', 'stree', 'postalCode'),
// mapping of contact fields to directory attributes
'fieldmap' => array(
'name' => 'cn',
'surname' => 'sn',
'firstname' => 'givenName',
'title' => 'title',
'email' => 'mail:*',
'phone:work' => 'telephoneNumber',
'phone:mobile' => 'mobile',
'street' => 'street',
'zipcode' => 'postalCode',
'locality' => 'l',
'department' => 'departmentNumber',
'notes' => 'description',
'name' => 'cn',
'surname' => 'sn',
'firstname' => 'givenName',
'title' => 'title',
'email' => 'mail:*',
'phone:work' => 'telephoneNumber',
'phone:mobile' => 'mobile',
'phone:workfax' => 'facsimileTelephoneNumber',
'street' => 'street',
'zipcode' => 'postalCode',
'locality' => 'l',
'department' => 'departmentNumber',
'notes' => 'description',
'photo' => 'jpegPhoto',
),
'sort' => 'cn',
'scope' => 'sub',
'filter' => '(&(enabledService=mail)(enabledService=deliver)(enabledService=displayedInGlobalAddressBook)(|(objectClass=mailUser)(objectClass=mailList)(objectClass=mailAlias)))',
'fuzzy_search' => true,
'vlv' => false, // Enable Virtual List View to more efficiently fetch paginated data (if server supports it)
'sizelimit' => '0', // Enables you to limit the count of entries fetched. Setting this to 0 means no limit.
'timelimit' => '0', // Sets the number of seconds how long is spend on the search. Setting this to 0 means no limit.
'referrals' => false, // Sets the LDAP_OPT_REFERRALS option. Mostly used in multi-domain Active Directory setups
'group_filters' => array(
'departments' => array(
'name' => 'Mailing Lists',
'scope' => 'sub',
'base_dn' => 'domainName=%d,o=domains,dc=example,dc=com',
'filter' => '(&(|(objectclass=mailList)(objectClass=mailAlias))(accountStatus=active)(enabledService=displayedInGlobalAddressBook))',
'name_attr' => 'cn',
'email' => 'mail',
),
),
);
$config['autocomplete_addressbooks'] = array('sql', 'global_ldap_abook');
Unfortunately when I try to login as user instead of user@rajbps.co.uk, it still lets me in with user@127.0.0.1
Could you assist please?
Rajbps
That's it!
Thanks a lot!
For sogo, when i try to login, i get
wrong username or password
the logs shows :
Oct 26 12:40:17 sogod [2818]: [ERROR] <0x0x7f36171bfa10[SOGoSQLUserProfile]> failed to acquire channel for URL: mysql://sogo:dCazOnN98kQm0Q4QupuRDBTRI1aHWf@127.0.0.1:3306/sogo/sogo_user_profile
Oct 26 12:40:17 sogod [2818]: [ERROR] <0x0x7f36171bfa10[SOGoSQLUserProfile]> failed to acquire channel for URL: mysql://sogo:dCazOnN98kQm0Q4QupuRDBTRI1aHWf@127.0.0.1:3306/sogo/sogo_user_profile
Oct 26 12:40:17 sogod [2818]: [ERROR] <0x0x7f36171bfa10[SOGoSQLUserProfile]> failed to acquire channel for URL: mysql://sogo:dCazOnN98kQm0Q4QupuRDBTRI1aHWf@127.0.0.1:3306/sogo/sogo_user_profile
Oct 26 12:40:17 sogod [2818]: [ERROR] <0x0x7f36171bfa10[SOGoSQLUserProfile]> failed to acquire channel for URL: mysql://sogo:dCazOnN98kQm0Q4QupuRDBTRI1aHWf@127.0.0.1:3306/sogo/sogo_user_profile
Oct 26 12:40:17 sogod [2818]: [ERROR] <0x0x7f36171bfa10[SOGoSQLUserProfile]> failed to acquire channel for URL: mysql://sogo:dCazOnN98kQm0Q4QupuRDBTRI1aHWf@127.0.0.1:3306/sogo/sogo_user_profile
Oct 26 12:40:17 sogod [2818]: [ERROR] <0x0x7f36171bfa10[SOGoSQLUserProfile]> failed to acquire channel for URL: mysql://sogo:dCazOnN98kQm0Q4QupuRDBTRI1aHWf@127.0.0.1:3306/sogo/sogo_user_profile
Oct 26 12:40:17 sogod [2818]: [ERROR] <0x0x7f36171bfa10[SOGoSQLUserProfile]> failed to acquire channel for URL: mysql://sogo:dCazOnN98kQm0Q4QupuRDBTRI1aHWf@127.0.0.1:3306/sogo/sogo_user_profile
Oct 26 12:40:17 sogod [2818]: [ERROR] <0x0x7f36171bfa10[SOGoSQLUserProfile]> failed to acquire channel for URL: mysql://sogo:dCazOnN98kQm0Q4QupuRDBTRI1aHWf@127.0.0.1:3306/sogo/sogo_user_profile
Oct 26 12:40:17 sogod [2818]: [ERROR] <0x0x7f36171bfa10[SOGoSQLUserProfile]> failed to acquire channel for URL: mysql://sogo:dCazOnN98kQm0Q4QupuRDBTRI1aHWf@127.0.0.1:3306/sogo/sogo_user_profile
Oct 26 12:40:17 sogod [2818]: localhost "GET /SOGo HTTP/1.0" 302 0/0 1.747 - - 2M
Oct 26 12:40:17 sogod [2818]: [ERROR] <0x0x7f36171bfa10[SOGoSQLUserProfile]> failed to acquire channel for URL: mysql://sogo:dCazOnN98kQm0Q4QupuRDBTRI1aHWf@127.0.0.1:3306/sogo/sogo_user_profile
Oct 26 12:40:17 sogod [2818]: localhost "GET /SOGo/ HTTP/1.0" 200 6770/0 0.096 25326 73% 1M
Oct 26 12:40:17 sogod [2818]: |SOGo| terminating app, vMem size limit (384 MB) has been reached (currently 385 MB)
Oct 26 12:40:17 sogod [2780]: <0x0x7f3616ded0d0[WOWatchDogChild]> child 2818 exited
Oct 26 12:40:17 sogod [2780]: <0x0x7f3616e12ac0[WOWatchDog]> child spawned with pid 3358
Oct 26 12:40:17 sogod [3358]: <0x0x7f3616d39380[WOHttpAdaptor]> notified the watchdog that we are ready
Oct 26 12:40:29 sogod [3358]: <0x0x7f3616b3ae90[SOGoCache]> Cache cleanup interval set every 300.000000 seconds
Oct 26 12:40:29 sogod [3358]: <0x0x7f3616b3ae90[SOGoCache]> Using host(s) '127.0.0.1' as server(s)
Oct 26 12:40:29 sogod [3358]: SOGoRootPage Login from 'localhost' for user 'user' might not have worked - password policy: 65535 grace: -1 expire: -1 bound: 0
Oct 26 12:40:29 sogod [3358]: localhost "POST /SOGo/connect HTTP/1.0" 403 34/60 0.072 - - 3M
Oct 26 12:40:29 sogod [3358]: |SOGo| terminating app, vMem size limit (384 MB) has been reached (currently 386 MB)
Oct 26 12:40:29 sogod [2780]: <0x0x7f3616ded0d0[WOWatchDogChild]> child 3358 exited
Oct 26 12:40:29 sogod [2780]: <0x0x7f3616e12ac0[WOWatchDog]> child spawned with pid 3359
Oct 26 12:40:29 sogod [3359]: <0x0x7f3616f59e10[WOHttpAdaptor]> notified the watchdog that we are ready
Cheers,
rajbps
edit repo to packages URL and try update/install.
edit repo to packages URL and try update/install.
Hello,
Thanks again for the reply.
That is the repo URL I already had.
I tried adding that repo as a deb-src in my source list:
sudo apt-get source sope
Reading package lists... Done
Building dependency tree
Reading state information... Done
NOTICE: 'sope' packaging is maintained in the 'Git' version control system at:
git://git.debian.org/git/collab-maint/sope.git
Skipping already downloaded file 'sope_2.1.1-1.dsc'
Skipping already downloaded file 'sope_2.1.1.orig.tar.gz'
Skipping already downloaded file 'sope_2.1.1-1.debian.tar.gz'
Need to get 0 B of source archives.
sh: 1: dpkg-source: not found
Unpack command 'dpkg-source -x sope_2.1.1-1.dsc' failed.
Check if the 'dpkg-dev' package is installed.
E: Child process failed
installing dpkg-dev gave me this:
The following packages have unmet dependencies:
dpkg-dev : Depends: libdpkg-perl (= 1.17.5ubuntu5.7) but it is not going to be installed
Recommends: build-essential but it is not going to be installed
Recommends: fakeroot
Recommends: libalgorithm-merge-perl but it is not going to be installed
Any error in SOGo log file?
Just:
Oct 26 14:33:57 sogod [3375]: <0x0x7f0d68655e70[SOGoCache]> Cache cleanup interval set every 300.000000 seconds
Oct 26 14:33:57 sogod [3375]: <0x0x7f0d68655e70[SOGoCache]> Using host(s) '127.0.0.1' as server(s)
Oct 26 14:33:58 sogod [3375]: mx.xxxxx.dk "GET /SOGo/dav/brian.ipsen@xxxxx.dk/ HTTP/1.0" 401 0/0 0.008 - - 836K
Oct 26 14:33:58 sogod [3375]: |SOGo| terminating app, vMem size limit (384 MB) has been reached (currently 444 MB)
Oct 26 14:33:58 sogod [2430]: <0x0x7f0d686d41d0[WOWatchDogChild]> child 3375 exited
Oct 26 14:33:58 sogod [2430]: <0x0x7f0d686f9850[WOWatchDog]> child spawned with pid 3613
Oct 26 14:33:58 sogod [3613]: <0x0x7f0d686201f0[WOHttpAdaptor]> notified the watchdog that we are ready
Oct 26 14:34:07 sogod [3613]: <0x0x7f0d686b3450[SOGoCache]> Cache cleanup interval set every 300.000000 seconds
Oct 26 14:34:07 sogod [3613]: <0x0x7f0d686b3450[SOGoCache]> Using host(s) '127.0.0.1' as server(s)
Oct 26 14:34:07 sogod [3613]: mx.xxxxx.dk "GET /SOGo/dav/brian.ipsen@xxxxx.dk/ HTTP/1.0" 501 191/0 0.012 - - 1M
Oct 26 14:34:07 sogod [3613]: |SOGo| terminating app, vMem size limit (384 MB) has been reached (currently 447 MB)
Oct 26 14:34:07 sogod [2430]: <0x0x7f0d686d41d0[WOWatchDogChild]> child 3613 exited
Oct 26 14:34:07 sogod [2430]: <0x0x7f0d686f9850[WOWatchDog]> child spawned with pid 3623
Oct 26 14:34:08 sogod [3623]: <0x0x7f0d688408a0[WOHttpAdaptor]> notified the watchdog that we are ready
/Brian
ZhangHuangbin wrote:Any error in SOGo log file?
Just:
Oct 26 14:33:57 sogod [3375]: <0x0x7f0d68655e70[SOGoCache]> Cache cleanup interval set every 300.000000 seconds
.../Brian
Checking from the browser is not possible. Tried a fresh install with nginx server and Lightning plugin in Thunderbird. That seems to work.
/Brian
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
sogo : Depends: libsope-appserver4.9 (>= 4.9.r1664.20161021) but it is not going to be installed
Depends: libsope-core4.9 (>= 4.9.r1664.20161021) but it is not going to be installed
Depends: libsope-gdl1-4.9 (>= 4.9.r1664.20161021) but it is not going to be installed
Depends: libsope-ldap4.9 (>= 4.9.r1664.20161021) but it is not going to be installed
Depends: libsope-mime4.9 (>= 4.9.r1664.20161021) but it is not going to be installed
Depends: libsope-xml4.9 (>= 4.9.r1664.20161021) but it is not going to be installed
Depends: sope4.9-libxmlsaxdriver but it is not going to be installed
Depends: sope4.9-db-connector
Have you installed sope4.9-gdl1-mysql? Asking since it asks for sope4.9-db-connector. Which I assume is included in sope4.9-gdl1-mysql.
Is the clamav service running? Do you have an entry for AllowSupplementaryGroups in /etc/clamav/clamd.conf? If you have AllowSupplementaryGroups in clamd.conf, remove it since it's deprecated.
Otherwise send logs for clamav (/var/log/clamav/clamav.log)
I did and got the same error...
The issue has been resolved however.
I just removed and purged sogo and reinstalled it, and it works now... well partially.
I get to the web UI, but none of my roundcube emails can log in.
The sogo DB is created and it has the users table. Passwords plugin and sogo.conf are set to SSHA.
I read this: http://www.iredmail.org/forum/topic8968 … erver.html
And no luck. I guess I should revive that topic.
The database is created and has the users table, password is SSHA as configured in sogo and the password plugin.
==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: CentOS 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx):Apache
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====
I create multi users using “create_mail_user_OpenLDAP.py”
I need to force all users to change there password before continue login to the webmail
that mean when the user login to the webmail first time he will prompt to change the password to continue using the webmail
Appreciate your fast replay and help
Abdullah
==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version: Ubuntu 14.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====
Hello all,
I have installed SOGo, and created its database. A sogo service restart created the tables in said database.
I can log in to all email accounts using roundcube, however I can not get into any of them using SOGo web UI.
/var/log/sogo/sogo/log shows the following:
2016-10-26 21:24:21.657 sogod[20989] ERROR: could not open MySQL4 connection to database 'sogo': Can't connect to MySQL server on '127.0.0.1' (111)
Oct 26 21:24:21 sogod [20989]: [ERROR] <0x0x5647f64f9e18[GCSChannelManager]> could not open channel <MySQL4Channel[0x0x5647f67befa8] connection=0x(null)> for mysql://127.0.0.1/sogo/sogo_view
Oct 26 21:24:21 sogod [20989]: [WARN] <0x0x5647f64f9e18[GCSChannelManager]> will prevent opening of this channel 5 seconds after 2016-10-26 21:24:21 +0000
Oct 26 21:24:21 sogod [20989]: [ERROR] <0x0x5647f6804cb8[SQLSource]> failed to acquire channel for URL: mysql://sogo:secret@127.0.0.1:5432/sogo/sogo_view
Oct 26 21:24:21 sogod [20989]: SOGoRootPage Login from '1xx.xxx.xxx.xxx' for user 'postmaster@ixxxxxxxxs.com' might not have worked - password policy: 65535 grace: -1 expire: -1 bound: 0
Oct 26 21:24:21 sogod [20989]: 190.211.140.13 "POST /SOGo/connect HTTP/1.1" 403 34/85 0.002 - - 64K
sXXX@mailserver:/etc/apache2/conf-enabled$
My sogo.conf MySQL configs are:
SOGoProfileURL = "mysql://sogo:secret@localhost:5432/sogo/sogo_user_profile";
OCSFolderInfoURL = "mysql://sogo:secret@localhost:5432/sogo/sogo_folder_info";
OCSSessionsFolderURL = "mysql://sogo:secret@localhost:5432/sogo/sogo_sessions_folder";
Any idea what the issue is?
I had installed iredmail with ldap support so I dont think of doing anything with mysql.
SOGo performs user authentication against LDAP, that's true. But it stores all its data in SQL db.
the mail userdb field overrides mail_location
That's true, but we don't define INDEX in userdb. And it works during my testing last night. Maybe there's something wrong with my or your testing?
UPDATE: Confirmed that no need to update dovecot-{ldap,mysql,pgsql}.conf.
My test settings:
mail_location = maildir:%Lh/Maildir/:INDEX=/var/vmail-indexes/%Ld/%Ln/
namespace {
type = shared
location = maildir:%%Lh/Maildir/:INDEX=/var/vmail-indexes/%Ld/%Ln/Shared/%%Ld/%%Ln
...
}
(proxyAddresses=smtp:%s)
Maybe you should use "proxyAddresses=%s" directly, so that you can use different transport like 'smtp:', 'relay:'.
Ok, the issue is that with respect to the time of sending, if an email remains in postfix queue for greylisting or other matters, it shows date and hour according to GMT while the timestamp (date and hour) of that same email in Outlook, SOGo or Roundcube shows the right timestamp (the time of sending) which is GMT+02:00.
My timezone is GMT+02:00 (Europe/Rome; with daylight saving).
To make an example:
if I send an email at 11.00 a.m. and it gets greylisted, I see it in the queue with arrival time 9.00 a.m. while in Outlook, SOGo and Roundcube I see it as Sent at 11.00 a.m.
I think that also the arrival time in the queue should be the same time of sending.
Thank you
I'm afraid that I'm confused what issue we're talking about. Could you please show us some samples?