Hallo Roundcube developers.
We are runnig ISPConfig hosting with dedicated mailserver. Here is small patch to login if web's A and MX is different. Sorry for previous mistake. Please include it in new release.
Thanks Vitex
diff -Naur /roundcubemail-0.8.4/config/main.inc.php.dist ./config/main.inc.php.dist --- /roundcubemail-0.8.4/config/main.inc.php.dist 2012-11-14 21:30:27.000000000 +0100 +++ ./config/main.inc.php.dist 2012-12-20 19:35:21.000000000 +0100 @@ -71,6 +71,7 @@ // %n - http hostname ($_SERVER['SERVER_NAME']) // %d - domain (http hostname without the first part) // %s - domain name after the '@' from e-mail address provided at login screen +// %x - MX for domain name after the '@' from e-mail address provided at login screen // For example %n = mail.domain.tld, %d = domain.tld $rcmail_config['default_host'] = '';
diff -Naur /roundcubemail-0.8.4/program/include/main.inc ./program/include/main.inc --- /roundcubemail-0.8.4/program/include/main.inc 2012-11-14 21:30:28.000000000 +0100 +++ ./program/include/main.inc 2012-12-20 19:27:50.000000000 +0100 @@ -1684,7 +1684,14 @@ return false; }
$d, $h, $z, $s[2]), $name);
RCUBE_INPUT_POST), true);
< 1 || filter_var($s[1]."@".$s[2], FILTER_VALIDATE_EMAIL) === false )
return false;
getmxrr ( $s[2] , $mx );
array($n, $d, $h, $z, $s[2],$mx[0]), $name); return $name; }
Am 20.12.2012 20:36, schrieb Vitex:
Hallo Roundcube developers.
We are runnig ISPConfig hosting with dedicated mailserver. Here is small patch to login if web's A and MX is different. Sorry for previous mistake. Please include it in new release.
but who says that MX is the IMAP server? on any larger setup it is not
you have:
MX is not hepful here for webmail and plain wrong
Thanks for fast response. The roundcube admin says that MX is IMAP server in main.inc.php . As you can see, my patch add new macro %x for $rcmail_config['default_host'] values. This is custom feature only for case of difference A and MX.
I did not find better solution in pure configuration only.
Vitex
Dne 20.12.2012 20:46, Reindl Harald napsal(a):
Am 20.12.2012 20:36, schrieb Vitex:
Hallo Roundcube developers.
We are runnig ISPConfig hosting with dedicated mailserver. Here is small patch to login if web's A and MX is different. Sorry for previous mistake. Please include it in new release.
but who says that MX is the IMAP server? on any larger setup it is not
you have:
- A: website
- MX: spamfirewall appliance
- Another A for POP3/IMAP
MX is not hepful here for webmail and plain wrong
Roundcube Development discussion mailing list dev@lists.roundcube.net http://lists.roundcube.net/mailman/listinfo/dev
On 2012-12-20 11:59, Vitex wrote:
Thanks for fast response.
The roundcube admin says that MX is IMAP server in main.inc.php .
As
you can see, my patch add new macro %x for $rcmail_config['default_host'] values.
This is custom feature only for
case of difference A and MX.
I did not find better solution in
pure configuration only.
Vitex
MX has nothing to do with webmail client in a normal configuration, and should not be relevant at all. I've been running Roundcube for years with an MX different from my IMAP server, I don't mention the MX in the config in any way.
-- Arne Berglund System Administrator, Internet Services Lane Education Service District Eugene, OR ____________
On Thu 20/Dec/2012 20:59:13 +0100 Vitex wrote:
Dne 20.12.2012 20:46, Reindl Harald napsal(a):
Am 20.12.2012 20:36, schrieb Vitex:
We are runnig ISPConfig hosting with dedicated mailserver. Here is small patch to login if web's A and MX is different. Sorry for previous mistake. Please include it in new release.
but who says that MX is the IMAP server? on any larger setup it is not
you have:
- A: website
- MX: spamfirewall appliance
- Another A for POP3/IMAP
MX is not hepful here for webmail and plain wrong
[Vitex reply moved here for readability]
Thanks for fast response. The roundcube admin says that MX is IMAP server in main.inc.php . As you can see, my patch add new macro %x for $rcmail_config['default_host'] values. This is custom feature only for case of difference A and MX.
I did not find better solution in pure configuration only.
Harald is correct, MX is wrong in many cases. Admins who want their IMAP servers to be automatically known should use SRV records. See http://tools.ietf.org/html/rfc6186#section-3.2
Happy End of the World!