Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-28, 13:25:14

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 - luckytanuki

Pages: 1 2 [3]
31
Kloxo-MR Technical Helps / Re: Health and status of Mustafa
« on: 2017-10-17, 13:24:54 »
Definitely odd.

I'd suggest anyone who wishes to keep using Kloxo-MR make a fork from Github and download a copy of the rpm repo (http://rpms.mratwork.com/repo/mratwork/) while you can.

That will ensure at least that the Kloxo-MR code and source/build files for the mr rpms are not lost if Mustafa never returns.

32
Hope this helps.

I've been having similar issues with AWS EC2 instances .

I was able to resolve the problem by editing /var/qmail/control/outgoingips to change the Public IP address (Elastic IP) to the Private IP address.

Then when qmail sends from the Private IP, it gets translated back to the Public IP.

Now looking for a way to set outgoingips without have to manually edit the file. 

Update: I've just noticed that you can set the file  /usr/local/lxlabs/kloxo/etc/flag/manualoutgoingips.flg to flag an override on the auto updating of outgoingips.   

33
Thanks, that looks like it would fix it. Will let you know when I've had a chance to test it,

J

34
Done all that. Problem is still str_replace as it does a global match

This is hard to reproduce as depends on the order of records in the vpopmail table.

For the bug to appear two conditions must be meet.

1. The email name occurs in the domain name eg fred@frednerk.com
2. The email address it the last record for that domain in the vpopmail table

Here is a small proof of concept:
Code: [Select]
<?php
$name
="firstname";
$path="/home/lxadmin/mail/domains/firstnamesurname.com/firstname";

echo 
"source path: ".$path."\n"

//Calculate path with str_replace 
$newpath=str_replace("/" $name''$path);
echo 
"str_replace method: ".$newpath."\n";

//Calculate path with str_replace
$newpath2=preg_replace('/\/' $name.'$/'''$path);
echo 
"preg_replace method: ".$newpath2."\n";
?>

output:
source path: /home/lxadmin/mail/domains/firstnamesurname.com/firstname
str_replace method: /home/lxadmin/mail/domainssurname.com
preg_replace method: /home/lxadmin/mail/domains/firstnamesurname.com

35
Hi Mustafa,

I have a fix for a bug in fix-qmail-assign.php .

Yesterday I upgraded  to 7.0.0.b-2016021403 and  had a problem where mail users from one domain where made in the root folder. All other users were ok.

The problem was a incorrect folder setting in /var/qmail/users/assign

The correct path value should be
/home/lxadmin/mail/domains/firstnamesurname.com

But /var/qmail/users/assign had the value
/home/lxadmin/mail/domainssurname.com.au

It was cause by a line in fix-qmail-assign.php

The error occurs when the email name was in the domain name

eg

where $row['pw_name'] = 'firstname'

and

 $row['pw_dir'] = '/home/lxadmin/mail/domains/firstnamesurname.com/firstname'

$n[$row['pw_domain']] = str_replace("/" . $row['pw_name'], '', $row['pw_dir']);

calculates

/home/lxadmin/mail/domainssurname.com.au

as it removes all occurrences of firstname from the path

The fix is to make the string replace only work on the end of $row['pw_dir']

$n[$row['pw_domain']] = preg_replace('/\/' . $row['pw_name'].'$/', '', $row['pw_dir']);

cheers

John

Pages: 1 2 [3]

Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine
Click Here

Page created in 0.028 seconds with 20 queries.

web stats analysis