PDA

View Full Version : SMTP Greeting field too small


peterz
03-11-2007, 09:27 AM
The SMTP Greeting: field in nodeworx settings page is too small for my message. Here is an example of my message.

This equipment is located in California. In accordance with 17538.45 of the California Business and Professional Code, unsolicited electronic mail advertisements are prohibited. See http://www.zzservers.com/SMTP_policy.php for details.I can edit /var/qmail/control/smtpgreeting manually but if I use the control panel to change settings after that, it will overwrite my changes.

Fr3d
03-11-2007, 11:04 AM
Tried chmod'ing the smtpgreeting file so you iworx can't write to it?

IWorx-Tim
03-11-2007, 11:51 AM
Since that is the only thing in that file you should not have a problem unless you specifically edit that field. InterWorx parses the config files but does not edit them unless you change those settings specifically. If you are experienceing something different pleeaselet us know as that would be a bug we'd want to fix.

peterz
03-11-2007, 12:10 PM
I just tested and it does truncate the file. This is what I get after clicking update.

This equipment is located in California. In accordance with 17538.45 of the California Business and Professional Code
Since there are other settings modified from the MTA SMTP Options (inbound) section if I edit any of those or just click update, it replaces the settings with the shortened version that is on the page.

IWorx-Tim
03-12-2007, 05:15 PM
I'll file a bug report, but I doubt the fix will be in 3.0. Thanks for the information.

IWorx-Paul
03-12-2007, 05:58 PM
This is a tiny one to fix, I'm sure we can squeeze it in there :-)

Paul

IWorx-Tim
03-12-2007, 07:32 PM
I stand corrected -- thanks Paul :-)

peterz
03-12-2007, 08:18 PM
At least this one was much easier than the trouble of trying to get a cluster going with my NAT.

Thanks for the fast reply.

IWorx-Paul
03-13-2007, 12:18 AM
It's actually the comma in the greeting that's triggering the bug. If you can live without the comma you can workaround the bug that way also.

Paul

peterz
03-13-2007, 05:24 PM
Just tried without the comma, no joy. I would think maxlength 128 would have more of an effect. :)

<input type="text"
name="input[smtpgreeting]"
class="textbox"
id="smtpgreeting"
size="32"
maxlength="128"
tabindex="23"
value="This equipment is located in California. In accordance with 17538.45 of the California Business and Professional Code unsolicit">

IWorx-Paul
03-13-2007, 05:39 PM
Sigh. Sorry Peterz - there were two issues. The maxlength and the comma thing. You can tweak the following file to remove the maxlength limitiation if you like.

/home/interworx/nodeworx/smarty/templates/<theme>/mail/mta.tpl

Paul

peterz
03-13-2007, 05:48 PM
Paul,

Thank you, that worked perfectly, even with the comma. I'm off to find another thing that I do weirder than all the others now, thanks again for the great support.