Submitted by Hal9000 on Sat, 02/08/2014 - 10:21
I manually configured the XML in the server template, and used $SMTP_LOGIN. However, for some reason that only outputs the username prefix. So instead of seeing the full username, in my case "domain.tld_user", I only get "domain.tld_" which of course is wrong.
Status:
Closed (fixed)
Comments
Submitted by JamieCameron on Sat, 02/08/2014 - 12:10 Comment #1
What email address is being passed to the autoconfig URL? From the behavior you describe, it seems like it is being called with just @domain.com instead of user@domain.com
Submitted by Hal9000 on Sat, 02/08/2014 - 12:16 Comment #2
Nope, the whole email address... Tested this in the browser like so:
http://somedomain.tld/cgi-bin/autoconfig.cgi?emailaddress=user@somedomain.tld
http://somedomain.tld/autodiscover/autodiscover.xml?emailaddress=user@somedomain.tld
Both would get me just
<LoginName>somedomain.tld_</LoginName>
Submitted by JamieCameron on Sat, 02/08/2014 - 12:25 Comment #3
Ok, I see the cause of this bug now .. it is triggered only when _ is used as a username separator, so we didn't spot it previously :-(
It will be fixed int the next release though.
Submitted by Hal9000 on Sat, 02/08/2014 - 12:27 Comment #4
Great! Is it possible to give me a patch for this if it's not too much hassle? :)
Submitted by JamieCameron on Sat, 02/08/2014 - 12:41 Comment #5
You can edit the file
cgi-bin/autoconfig.cgi
under the domain's home directory, and change line 69 to :$SMTP_LOGIN = $PREFIX."_".$mailbox;
Submitted by Hal9000 on Sat, 02/08/2014 - 12:57 Comment #6
Wicked, works like a charm. If anyone is interested, this would fix it for all:
for fl in /home/*/cgi-bin/autoconfig.cgi; do
sed -i 's/$name/$mailbox/g' $fl
done
Submitted by Issues on Sat, 02/22/2014 - 13:01 Comment #7
Automatically closed -- issue fixed for 2 weeks with no activity.