Sunday, January 5, 2014

Roundcube Webmail with Domeneshop

I just set up Roundcube to fetch emails from my Domeneshop mail server and had some trouble getting it to work.
Under step 3 of the Roundcube Webmail Installer I was checking that send and receive email worked correctly and got errors. Here is the settings I used and the corresponding error I got:

Server: smtp.domeneshop.no
Port: 587


Error: SMTP send:  NOT OK(Connection failed: HELO was not accepted: )

Server: ssl://smtp.domeneshop.no
Port: 587


SMTP send:  NOT OK(Connection failed: Failed to connect socket: fsockopen(): unable to connect to ssl://smtp.domeneshop.no:587 (Unknown error))

Server: tls://smtp.domeneshop.no
Port: 587


SMTP send:  NOT OK(Connection failed: HELO was not accepted: )

I discovered, after reading through the options of main.inc.php, that you could set host for HELO. This is usually the mail servers domain (e.g. domeneshop.no) if you have an email address using your email servers domain (e.g. asmund@domeneshop.no). But, I have my email using my own domain so setting it to:

$rcmail_config['smtp_helo_host'] = 'herikstad.net';

Solved my problem. :)

Sources: http://www.domeneshop.no/faq.cgi?id=48
http://schoudhury.com/blog/articles/send-email-using-gmail-from-php-with-fsockopen/
http://stackoverflow.com/questions/13717225/email-sending-with-ci-using-hotmail
http://www.imc.org/ietf-smtp/mail-archive/msg05499.html

http://trac.roundcube.net/wiki/Howto_Config/Webservers
https://www.howtoforge.com/running-roundcube-0.7.1-on-nginx-lemp-on-debian-squeeze-ubuntu-11.10
http://mylinuxlife.com/setting-up-roundcube-webmail/

No comments:

Post a Comment