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
16
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){

Regards

17
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 https://listmailpro.com/support

Regards

18
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://email-smtp.us-east-1.amazonaws.com and port to 465.

Regards

19
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.

Regards

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

Regards

21
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]
<?php
set_time_limit
(0); // unlimited
$time_to_run 400// seconds to run
$start=time();
$last=$start;
while(
1){
 
$diff=$now-$last;
 
$now=time();
 if(
$diff>0){
  
$last=$now;
  echo (
$now-$start).'.. ';
  
flush();
 }
 if(
$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]
<?php
// 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
include_once('./config.php');
include_once(
'./admin.php');

if(
$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");

$log='';
$echolog=false// set to true for output

// read last recorded data
$fdata=file_get_contents('./queuefix.dat');
if(
$fdata$log .= "existing data:\n".nl2br($fdata)."\n\n"; else $log .= "no existing data\n";
$lines=explode("\n",$fdata);
$data=array();
if(!empty(
$lines)){
foreach($lines as $line){
list($batid,$msgcnt)=explode(':',$line);
$data[$batid]=$msgcnt;
}
}

// read current data
$out='';
$now=time();

// v1.88 mysql_
if($file_version<='1.88'){
$rows=mysql_query("select batid from lm_sendp where completed = 'q';");
if(mysql_num_rows($rows)>0){
$log .= "found queued messages, processing..\n";
while(list($batid)=mysql_fetch_row($rows)){
$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($count>0){
if(!isset($data[$batid])){ // no existing data, record it
$log .= "no existing data for batid $batid, recording:\n";
$log .= "out.=$batid:$count\\n\n";
$out.="$batid:$count\n";
} else {
// check if count is the same as last time, if it is fix the queue
if($count==$data[$batid]){
$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';");
$echolog=true;
} 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
if($out){
$log .= "writing out data:\n".nl2br($out)."\n";
file_put_contents('./queuefix.dat',trim($out));
} elseif(
$fdata){
$log .= "clearing out data\n";
file_put_contents('./queuefix.dat','');
}
//file_put_contents('./queuefix.dat','test:test');

if($echolog){
if(strstr($_SERVER['HTTP_USER_AGENT'],'Wget')===false$log=nl2br($log);
echo $log;
}

?>

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

Regards

22
Hi,

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).

Regards

23
Hi,

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

Code: [Select]
date_default_timezone_set('UTC');
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 http://stackoverflow.com/a/16765214/2724133 and http://php.net/manual/en/function.date-default-timezone-set.php

Regards

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

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.

Regards

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

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 https://listmailpro.com/support

Regards

27
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:

Quote
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 sendmail.mc then run "sendmailconfig" and hit enter a bunch of times or compile it manually like this.

Hope it helps.

28
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.

Regards

29
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.

Regards

30
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.

Regards

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