[imp] HORDE: [login] Error connecting to mail server - can you help

Jan Schneider jan at horde.org
Tue Feb 17 11:22:20 UTC 2015


Zitat von CLIVE CORNER <clivecorner at btinternet.com>:

> Dear All
>
>
> I am somewhat a newcomer in this area so I ask for your patience in  
> this. I hope I am asking in the correct place and if not perhaps you  
> can redirect me.
>
> The error if discovered was an imp login error as can be seen below  
> so that is why I have selected this group.
>
> After looking over the details that I have posted I realise that  
> Horde comes out of the box setup to use sendmail I am of course  
> using postfix.

"sendmail" is just an interface, like SMTP, that Horde can use.  
Postfix provides this interface, or rather wrapper too. But this  
doesn't have anything to do with your problem anyway.

> Many thanks
>
> Clive Corner
>
>
> I have just set up a mailserver: postfix,dovecot,mysql on Ubuntu  
> 14.04 using  
> https://www.linode.com/docs/email/postfix/email-with-postfix-dovecot-and-mysql the tutorial which is all fine and dandy  -- I can send and recieve email using Imap. The usernames and encrypted passwords are stored in the localhosts mysql  
> database.

You cannot send mail using IMAP, because this is just a protocol for  
receiving messages. For sending, see above.

> I have just gone through the process of installing Horde Webmail  
> edition 5 following the instructions here  
> http://www.horde.org/apps/webmail/docs/INSTALL -  the install on  
> Apache 2.4.7  seemed to go fine and the page test.php gave me the  
> following output:
>
> --------------------------------------------------------------
>
>  
> Horde Version
> 	* 5.2.4
> Horde Applications
> 	* Agora [Forums]: unknown
> 	* Ansel [Photos]: unknown
> 	* Chora [Version Control]: unknown
> 	* Content: 2.0.4
> 	* Gollem [File Manager]: H5 (3.0.3) (run tests)
> 	* Hermes [Time Tracking]: unknown
> 	* Imp [Mail]: H5 (6.2.7) (run tests)
> 	* Ingo [Filters]: H5 (3.2.4) (run tests)
> 	* Jonah [News]: unknown
> 	* Klutz [Comics]: unknown
> 	* Kolab [Kolab]: unknown
> 	* Kronolith [Calendar]: H5 (4.2.5) (run tests)
> 	* Luxor [X-Ref]: unknown
> 	* Mnemo [Notes]: H5 (4.2.5)
> 	* Nag [Tasks]: H5 (4.2.4)
> 	* Passwd [Password]: unknown
> 	* Sam [Spam]: unknown
> 	* Sesha [Inventory]: unknown
> 	* Timeobjects: 2.1.0
> 	* Trean [Bookmarks]: H5 (1.1.1)
> 	* Turba [Address Book]: H5 (4.2.5) (run tests)
> 	* Ulaform [Forms]: unknown
> 	* Vilma [Mail Admin]: unknown
> 	* Whups [Tickets]: unknown
> 	* Wicked [Wiki]: unknown
> PHP Version
> 	* View phpinfo() screen
> 	* View loaded extensions
> 	* PHP Version: 5.5.9-1ubuntu4.5
> 	* PHP Major Version: 5.5
> 	* PHP Minor Version: 9
> 	* PHP Subminor Version: 1ubuntu4.5
> 	* PHP Version Classification: release
> 	* You are running a supported version of PHP.
> PHP Module Capabilities
> 	* Ctype Support: Yes
> 	* DOM XML Support: Yes
> 	* MIME Magic Support (fileinfo): Yes
> 	* MIME Magic Support (fileinfo) - Configuration: Yes
> 	* FTP Support: Yes
> 	* GD Support: Yes
> 	* Gettext Support: Yes
> 	* GeoIP Support (PECL extension): Yes
> 	* Hash Support: Yes
> 	* LZ4 Compression Support (PECL extension): No
> If the horde_lz4 PECL extension is available, Horde can perform real-time
> compression on cached data to optimize storage resources.
> 	* Iconv Support: Yes
> 	* GNU Iconv Support: Yes
> 	* Internationalization Support: Yes
> 	* Imagick (PECL extension): Yes
> 	* JSON Support: Yes
> 	* LDAP Support: Yes
> 	* LZF Compression Support (PECL extension): Yes
> 	* Mbstring Support: Yes
> 	* memcached Support (memcache) (PECL extension): Yes
> 	* MongoDB support (PECL extension): Yes
> 	* MySQL Support: Yes
> 	* OpenSSL Support: Yes
> 	* PAM Support (PECL extension): Yes
> 	* PDO: Yes
> 	* PostgreSQL Support: Yes
> 	* Session Support: Yes
> 	* SimpleXML support: Yes
> 	* Tidy support: Yes
> 	* XML Parser support: Yes
> 	* Zlib Support: Yes
> Miscellaneous PHP Settings
> 	* allow_url_include disabled: Yes
> 	* magic_quotes_runtime disabled: Yes
> 	* magic_quotes_sybase disabled: Yes
> 	* memory_limit value: 128M
> 	* register_globals disabled: Yes
> 	* safe_mode disabled: Yes
> 	* session.auto_start disabled: Yes
> 	* session.gc_divisor value: 10000
> 	* session.gc_probability value: 1
> 	* session.use_trans_sid disabled: Yes
> 	* tidy.clean_output disabled: Yes
> 	* zlib.output_compression disabled: Yes
> Required Configuration Files
> 	* config/conf.php: Yes
> PHP Sessions
> 	* Session counter: 23 [refresh the page to increment the counter]
> 	* To unregister the session: click here
> PEAR
> 	* PEAR Search Path (PHP's include_path):  
>  /var/www/webmail/lib:/var/www/webmail/lib:.:/usr/share/php
> 	* PEAR: Yes
> 	* File_Fstab: Yes
> 	* Net_DNS2: Yes
> 	* Services_Weather: Yes
> File Uploads
> 	* file_uploads enabled: Yes
> 	* upload_tmp_dir: /tmp
> 	* upload_max_filesize: 5M
> 	* post_max_size: 8M
> This
>  value should be several times the expect largest upload size
> (notwithstanding any upload limits present in an application). Any
> upload that exceeds this size will cause any state information sent
> along with the uploaded data to be lost. This is a PHP limitation and
> can not be worked around.
> Local File Permissions
> 	* Is /var/www/webmail/lib/../static writable by the web server user  
> (www-data)? Yes
> Imagick
> 	* Imagick compiled against current ImageMagick version: Yes
> ---------------------------------------------------------------------
>
> I was a little hazy in respect to the instalation tutorial section 5
> Securing Horde Groupware Webmail Edition
>
> I am currently running HORDE on port 80 (not ssl) and wonder if it  
> needs to run on ssl port 8080?

The SSL port for HTTP would be 443, by default. But this is not  
required anyway, you can run Horde on plain HTTP just fine.

> So I try to log in using an existing account with the correct  
> password - one which I can use from a remote machine using an email  
> client.  The result I get is:Error connecting to mail server.
>
> The error logged in the syslog file is
> (N.B the url has been changed to example.com):
>
> Feb 17 09:18:41 example.com HORDE: [imp] [login] Error connecting to  
> mail server. [pid 2541 on line 730 of  
> "/var/www/webmail/imp/lib/Imap.php"]
> Feb 17 09:18:41 example.com  HORDE: [imp] FAILED LOGIN for  
> user at example.com (192.168.1.1) to {imap://localhost/} [pid 2541 on  
> line 157 of "/var/www/webmail/imp/lib/Auth.php"]

Horde Webmail is configured by default to connect to an IMAP server on  
localhost on port 143. You either have the IMAP server running on a  
different host, or on a different port.

> Feb 17 09:18:41 example.com HORDE: [horde] FAILED LOGIN for  
> user at example.com to horde (192.168.1.1) [pid 2541 on line 199 of  
> "/var/www/webmail/login.php"]
> As you can see there is an error connecting to the mailserver.
>
> Below is my configuation file for Horde if this helps:
>
> -------------------------------------------------------------------------------
>
> /* CONFIG START. DO NOT CHANGE ANYTHING IN OR AFTER THIS LINE. */
> $conf['vhosts'] = false;
> $conf['debug_level'] = E_ALL & ~E_NOTICE;
> $conf['max_exec_time'] = 0;
> $conf['compress_pages'] = true;
> $conf['secret_key'] = 'secretkey';
> $conf['umask'] = 077;
> $conf['testdisable'] = false;
> $conf['use_ssl'] = 2;
> $conf['server']['name'] = $_SERVER['SERVER_NAME'];
> $conf['urls']['token_lifetime'] = 30;
> $conf['urls']['hmac_lifetime'] = 30;
> $conf['urls']['pretty'] = false;
> $conf['safe_ips'] = array();
> $conf['session']['name'] = 'Horde';
> $conf['session']['use_only_cookies'] = true;
> $conf['session']['timeout'] = 0;
> $conf['session']['cache_limiter'] = 'nocache';
> $conf['session']['max_time'] = 72000;
> $conf['cookie']['domain'] = $_SERVER['SERVER_NAME'];
> $conf['cookie']['path'] = '/';
> $conf['sql']['username'] = 'username';
> $conf['sql']['password'] = 'password';
> $conf['sql']['protocol'] = 'unix';
> $conf['sql']['database'] = 'database';
> $conf['sql']['charset'] = 'utf-8';
> $conf['sql']['ssl'] = true;
> $conf['sql']['splitread'] = false;
> $conf['sql']['phptype'] = 'mysqli';
> $conf['nosql']['phptype'] = false;
> $conf['ldap']['useldap'] = false;
> $conf['auth']['admins'] = array('user at example.com');
> $conf['auth']['checkip'] = true;
> $conf['auth']['checkbrowser'] = true;
> $conf['auth']['resetpassword'] = true;
> $conf['auth']['alternate_login'] = false;
> $conf['auth']['redirect_on_logout'] = false;
> $conf['auth']['list_users'] = 'list';
> $conf['auth']['params']['app'] = 'imp';
> $conf['auth']['driver'] = 'application';
> $conf['auth']['params']['count_bad_logins'] = false;
> $conf['auth']['params']['login_block'] = false;
> $conf['auth']['params']['login_block_count'] = 5;
> $conf['auth']['params']['login_block_time'] = 5;
> $conf['signup']['allow'] = false;
> $conf['log']['priority'] = 'INFO';
> $conf['log']['ident'] = 'HORDE';
> $conf['log']['name'] = LOG_USER;
> $conf['log']['type'] = 'syslog';
> $conf['log']['enabled'] = true;
> $conf['log_accesskeys'] = false;
> $conf['prefs']['maxsize'] = 65535;
> $conf['prefs']['params']['driverconfig'] = 'horde';
> $conf['prefs']['driver'] = 'Sql';
> $conf['alarms']['params']['driverconfig'] = 'horde';
> $conf['alarms']['params']['ttl'] = 300;
> $conf['alarms']['driver'] = 'Sql';
> $conf['group']['driverconfig'] = 'horde';
> $conf['group']['driver'] = 'Sql';
> $conf['perms']['driverconfig'] = 'horde';
> $conf['perms']['driver'] = 'Sql';
> $conf['share']['no_sharing'] = false;
> $conf['share']['auto_create'] = true;
> $conf['share']['world'] = true;
> $conf['share']['any_group'] = false;
> $conf['share']['hidden'] = false;
> $conf['share']['cache'] = false;
> $conf['share']['driver'] = 'Sqlng';
> $conf['cache']['default_lifetime'] = 86400;
> $conf['cache']['params']['sub'] = 0;
> $conf['cache']['driver'] = 'File';
> $conf['cache']['use_memorycache'] = '';
> $conf['cachecssparams']['url_version_param'] = true;
> $conf['cachecss'] = false;
> $conf['cachejsparams']['url_version_param'] = true;
> $conf['cachejs'] = false;
> $conf['cachethemes'] = false;
> $conf['lock']['params']['driverconfig'] = 'horde';
> $conf['lock']['driver'] = 'Sql';
> $conf['token']['params']['driverconfig'] = 'horde';
> $conf['token']['driver'] = 'Sql';
> $conf['history']['params']['driverconfig'] = 'horde';
> $conf['history']['driver'] = 'Sql';
> $conf['davstorage']['params']['driverconfig'] = 'horde';
> $conf['davstorage']['driver'] = 'Sql';
> $conf['mailer']['params']['sendmail_path'] = '/usr/lib/sendmail';
> $conf['mailer']['params']['sendmail_args'] = '-oi';
> $conf['mailer']['type'] = 'sendmail';
> $conf['vfs']['params']['driverconfig'] = 'horde';
> $conf['vfs']['type'] = 'Sql';
> $conf['sessionhandler']['type'] = 'Builtin';
> $conf['sessionhandler']['hashtable'] = false;
> $conf['spell']['driver'] = '';
> $conf['gnupg']['keyserver'] = array('pool.sks-keyservers.net');
> $conf['gnupg']['timeout'] = 10;
> $conf['nobase64_img'] = false;
> $conf['image']['driver'] = false;
> $conf['exif']['driver'] = 'Bundled';
> $conf['timezone']['location'] = 'ftp://ftp.iana.org/tz/tzdata-latest.tar.gz';
> $conf['problems']['email'] = 'webmaster at example.com';
> $conf['problems']['maildomain'] = 'example.com';
> $conf['problems']['tickets'] = false;
> $conf['problems']['attachments'] = true;
> $conf['menu']['links']['help'] = 'all';
> $conf['menu']['links']['prefs'] = 'authenticated';
> $conf['menu']['links']['problem'] = 'all';
> $conf['menu']['links']['login'] = 'all';
> $conf['menu']['links']['logout'] = 'authenticated';
> $conf['portal']['fixed_blocks'] = array();
> $conf['accounts']['driver'] = 'null';
> $conf['user']['verify_from_addr'] = false;
> $conf['user']['select_view'] = true;
> $conf['facebook']['enabled'] = false;
> $conf['twitter']['enabled'] = false;
> $conf['urlshortener'] = false;
> $conf['weather']['provider'] = false;
> $conf['imap']['enabled'] = false;
> $conf['imsp']['enabled'] = false;
> $conf['kolab']['enabled'] = false;
> $conf['hashtable']['driver'] = 'none';
> $conf['activesync']['enabled'] = false;
> /* CONFIG END. DO NOT CHANGE ANYTHING IN OR BEFORE THIS LINE. */
>
> -------------------------------------------------------------------------------
> --
> imp mailing list
> Frequently Asked Questions: http://wiki.horde.org/FAQ
> To unsubscribe, mail: imp-unsubscribe at lists.horde.org



-- 
Jan Schneider
The Horde Project
http://www.horde.org/
https://www.facebook.com/hordeproject



More information about the imp mailing list