Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - DW

Pages: 1 [2] 3 4 ... 250
General Help & How-To / Re: Sending error. Check your mail settings.
« on: November 06, 2016, 05:14:29 am »
Hi Michael,

The screen being blank is likely because of PHP output buffering. LMP should be improved to use an AJAX background sending process and queue checking script instead of a "live" page that continually runs in the browser. You can try customizing your PHP configuration to get the live experience back. In the PHP.INI you would disable compression, e.g. zlib, and set output_buffering to Off. If your system uses a proxy like Nginx or other it becomes more difficult as buffering would likely need to be disabled there, too. If none of that works an option may be to modify domail.php to output a string of spaces along with the counter update javascript to defeat any remaining buffer, e.g. after this line at 1768 (v1.88):

Code: [Select]
echo "<script language=javascript>document.s.speed2.value='$hr'</script>\n";
You could additionally output 4096 bytes of space:

Code: [Select]
echo str_repeat(' ',4096);
As for the error, if you have AUTH enabled you may be caught by a reconnection bug where the AUTH LOGIN capability is not detected properly due to the server returning AUTH PLAIN LOGIN. In admin.php on line 1522 change this:

Code: [Select]
          if($mtauth && strpos($srvmsg,'AUTH LOGIN')>0){

to this:

Code: [Select]
          if($mtauth && strpos($srvmsg,'LOGIN')>0){


General Help & How-To / Re: Cron Job
« on: November 06, 2016, 04:54:14 am »
Hi Jon,

The part at the end, "1> /dev/null 2> /dev/null", redirects all output to null, so you could remove that and enable the email feature if your host has it. It may be automatic. Any output when the cron task runs should be emailed to you. You might see things such as "File not found" (no wget available), "Access denied" (bad password), etc.

If you want to run the task more frequently to test it you'll want to make sure you have no followups on lists with real users to avoid sending them email, then you could change the timing to * * * * * to run every minute, or */5 * * * * to run every 5 minutes, temporarily. You'd need to disable the 24-hr restriction on the Dailymail page in LMP as well.

There are other ways to test wget and cron such as with custom scripts that is more involved. For such hands-on support please visit


General Help & How-To / Re: SMTP with Amazon SES Problem
« on: June 24, 2016, 10:52:55 am »
Hi Franklin,

I'm not sure amazon is accepting the connection as there is no SMTP greeting in the log.

Try setting the SMTP host in LMP to tls:// and port to 465.


Hi Michael,

The "uid" field is a unique 7-character string for each entry in the lm_users table. Certain parts of LMP rely on this being 7 characters, and the length, contents and existence may change in future updates. To identify LMP users I recommend using the auto-incrementing "id" field instead as it's unlikely to ever change. An option to use LMP with external userbases is to set up a synchronization script that runs daily before LMP's dailymail to import or delete external users to and from lm_users.


General Help & How-To / Re: PHP 5.6 update
« on: January 16, 2016, 11:39:47 am »
Hi, try this.


General Help & How-To / Re: How is completed set to 0 to start sending?
« on: January 14, 2016, 09:20:11 am »
An SMTP log of zero bytes or a queue that won't send could be because the queuing script dies or is killed by the server before sending.

A script like this could be used to see if your server ignores set_time_limit:

Code: [Select]
(0); // unlimited
$time_to_run 400// seconds to run
  echo (
$now-$start).'.. ';
$now-$start>=$time_to_run) break;

A crude band-aid that would at least see that messages that were able to be queued are sent out would be a script like this:

Code: [Select]
// fix LMP queues that stall. include this script in resume.php after config.php and admin.php, or run manually from separate cron job. script requires writable queuefix.dat in same folder

$file_version>'1.88') exit("Fatal Error: queuefix at http".(!empty($_SERVER['HTTPS'])?"s":"").
"://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']." needs to be updated to use mysqli");

$echolog=false// set to true for output

// read last recorded data
$fdata$log .= "existing data:\n".nl2br($fdata)."\n\n"; else $log .= "no existing data\n";
foreach($lines as $line){

// read current data

// v1.88 mysql_
$rows=mysql_query("select batid from lm_sendp where completed = 'q';");
$log .= "found queued messages, processing..\n";
$log .= "batid $batid is queuing.. checking.. ";
list($count)=mysql_fetch_row(mysql_query("select count(*) from lm_sendq where bat = '$batid';"));
$log .= "count=$count\n";
if(!isset($data[$batid])){ // no existing data, record it
$log .= "no existing data for batid $batid, recording:\n";
$log .= "out.=$batid:$count\\n\n";
} else {
// check if count is the same as last time, if it is fix the queue
$log .= "count is same as last time, queuing stalled, running fix: ";
$log .= "update lm_sendp set completed = '0' where batid = '$batid';\n";
mysql_query("update lm_sendp set completed = '0' where batid = '$batid';");
} else {
$log .= "count changed, still queuing, ignore.\n";
// if count not same, still queueing up or down or now sending, so ignore it and start again
} else {
$log .= "no messages are queuing\n";
// End v1.88
} else {
// update for mysqli

// write out new data
$log .= "writing out data:\n".nl2br($out)."\n";
} elseif(
$log .= "clearing out data\n";

echo $log;


That script should also answer you question about the command to use to get such a stuck queue going.



Try ?nolastran=1&nomaint=1&nosched=1&nofups=1&noscfup=1&noremind=1&pw=...

This disables updating the "last ran" value (could prevent the regular dailymail execution), maintenance, scheduled messages, followups, scheduled followup changes, confirmation reminders, and leaves bounce processing by mailbox enabled (nobounce=1 would disable it).



You could add this anywhere near the top of admin.php after the opening <?php tag:

Code: [Select]
or you or your host could add this to php.ini:

Code: [Select]
date.timezone = UTC
UTC could be replaced with your preferred server-supported timezone, e.g. America/New_York

Per and


General Help & How-To / Re: Move License ( AGAIN ) New Domain
« on: October 26, 2015, 03:15:36 am »

At this time the policy is you can use LMP on any number of your own sites, however if a separate client or other business will be primarily using the program please refer them to us or contact us for additional licences at a reduced rate.

There should be no complications with using the same files or database data - just be sure to update the URL on the Configuration page.


General Help & How-To / Re: Email Send Stopped Working
« on: September 14, 2015, 12:35:15 pm »

It is difficult to troubleshoot such an issue without access to the server.

For improved privacy and hands-on investigation please submit a support request at


Server Optimization, Tweaks / Re: Delayed sending and Deferred?
« on: March 22, 2015, 01:03:14 pm »
Hi Brett,

I know sendmail sends annoying messages warning about a delay when a message can't be delivered, but I haven't seen it on Exim.

Something like:

Warning: could not send message for past 4 hours

Per this page there are a couple configuration options that might be changed.

I might try setting the TO_QUEUEWARN higher than the TO_QUEUERETURN to skip the warnings altogether. I don't know if this works or not. e.g.

Code: [Select]
define(`confTO_QUEUEWARN', `8d')dnl
define(`confTO_QUEUERETURN', `7d')dnl

You would set that up in then run "sendmailconfig" and hit enter a bunch of times or compile it manually like this.

Hope it helps.

Server Optimization, Tweaks / Re: Delayed sending and Deferred?
« on: March 19, 2015, 08:22:55 pm »
Hi Brett,

If DKIM is configured server-wide you wouldn't use the LMP hack. I'd recommend Google if you have any questions about doing that with WHM, etc.


Server Optimization, Tweaks / Re: Delayed sending and Deferred?
« on: March 19, 2015, 07:57:51 pm »
Hi Brett,

I think your best option is to contact Yahoo through their recommended channels and apply for whitelisting.

Did you see/remember this post?

Here's a DKIM hack you might employ if your server doesn't support it system-wide.


General Help & How-To / Re: Queue stuck
« on: March 03, 2015, 01:40:47 pm »
Hi Brett,

The section of SMTP log you posted doesn't suggest a problem.

I am unfortunately out of guesses and unable to determine why zero byte files are being written without further hands-on access. Please create a support request. If absolute privacy is desired you could set up an extra LMP installation and FTP account where the issue can be recreated for me to work on.


Pages: 1 [2] 3 4 ... 250