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.
61
Updates / Disable auto-updater
« on: April 12, 2015, 12:48:01 PM »
How can i disable it? I want to do it manually when i feel right.
I'm making changes on my server (installing and configuring other things), and i don't want an update to destroy my configurations.
I'm making changes on my server (installing and configuring other things), and i don't want an update to destroy my configurations.
62
E-Mail / Relay access denied
« on: April 09, 2015, 09:03:02 PM »
I'm configuring a new email and i'm getting this STMP message:
- Relay access deniedts
220 xxxxxxxxxxxxxxxxxxx ESMTP Postfix
HELO yyyyyyyyyyyyyyyyyyyyyyy
250 ns348267.ip-37-187-253.eu
mail from: pedro@yyyyyyyyyyyyyyyyyyyyyyy
250 2.1.0 Ok
rcpt to:<pedro.ferreira@new_domain.com>
454 4.7.1 <pedro.ferreira@new_domain.com>: Relay access denied
The other domain works just fine (it's a primary domain), i tried to add a new primary domain with this domain but it's still the same.
Do you want me to share some files or configures? Please let me know
- Relay access deniedts
220 xxxxxxxxxxxxxxxxxxx ESMTP Postfix
HELO yyyyyyyyyyyyyyyyyyyyyyy
250 ns348267.ip-37-187-253.eu
mail from: pedro@yyyyyyyyyyyyyyyyyyyyyyy
250 2.1.0 Ok
rcpt to:<pedro.ferreira@new_domain.com>
454 4.7.1 <pedro.ferreira@new_domain.com>: Relay access denied
The other domain works just fine (it's a primary domain), i tried to add a new primary domain with this domain but it's still the same.
Do you want me to share some files or configures? Please let me know
63
How to / Re: how to secure CentOS server using CWP features
« on: April 08, 2015, 09:50:08 PM »
3. Enable ModSecurity with OWASP security rules
Could you be more specific about this? Where and what it is?
Thanks
Could you be more specific about this? Where and what it is?
Thanks
64
E-Mail / Re: Email backup
« on: April 08, 2015, 07:55:35 PM »
You just need to:
Backup postfix, roundcube databases
Copy all "/var/vmail" content
Then to import:
Restore those databases and files
And process this commands:
Backup postfix, roundcube databases
Copy all "/var/vmail" content
Then to import:
Restore those databases and files
And process this commands:
- chown -R vmail:mail /var/vmail
- find /var/vmail -type f -exec chmod 600 {} \;
- find /var/vmail -type d -exec chmod 700 {} \;
65
E-Mail / Re: [ERROR] Email on another server > being delivered to localhost
« on: April 08, 2015, 07:49:39 PM »
Access to your myphpadmin, as ROOT and open "postfix" database.
Go to "Domain" table and remove your domain that is being seen as local
Go to "Domain" table and remove your domain that is being seen as local
66
New Modules / [module] Clear memory ram
« on: April 08, 2015, 07:44:19 PM »
This helps you to clear your memory ram avoiding your server to overload.
Add this line to:
/usr/local/cwpsrv/htdocs/resources/admin/include/3rdparty.php
Then create a new file called "clear_memory_ram.php" on:
/usr/local/cwpsrv/htdocs/resources/admin/modules
with this content:
Add this line to:
/usr/local/cwpsrv/htdocs/resources/admin/include/3rdparty.php
Quote
<li><a href="index.php?module=clear_memory_ram"><span class="icon16 icomoon-icon-arrow-right-3"></span>Clear memory ram</a></li>
Then create a new file called "clear_memory_ram.php" on:
/usr/local/cwpsrv/htdocs/resources/admin/modules
with this content:
Quote
<?php
exec('sync; echo 3 > /proc/sys/vm/drop_caches');
echo "Done!!";
?>
67
Backup / Re: backup issue
« on: April 05, 2015, 04:33:22 PM »
you can simulate a daily backup by sending this 2 commands to your SSH:
/usr/local/cwp/php54/bin/php -d max_execution_time=1000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php
/usr/local/cwp/php54/bin/php -d max_execution_time=1000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron_backup.php
--
But make sure your backup folder exists and if it's enabled
/usr/local/cwp/php54/bin/php -d max_execution_time=1000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php
/usr/local/cwp/php54/bin/php -d max_execution_time=1000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron_backup.php
--
But make sure your backup folder exists and if it's enabled
68
Aplications / Re: How to secure phpmyadmin?
« on: April 05, 2015, 04:29:01 PM »
You can go to:
Apache settings - Apache redirects (and remove the ones you don't want to have)
But the ones you want are stored on:
/usr/local/apache/conf.d/domain-redirects.conf
Just change the redirect urls if you feel more secure
But remember, after you change it, your PhpMyAdmin option on your server is not going to work anymore
Apache settings - Apache redirects (and remove the ones you don't want to have)
But the ones you want are stored on:
/usr/local/apache/conf.d/domain-redirects.conf
Just change the redirect urls if you feel more secure
But remember, after you change it, your PhpMyAdmin option on your server is not going to work anymore
69
New Modules / [module] Favorites top bar
« on: April 05, 2015, 02:42:30 PM »
This module lets you add favorites to the top of your page
Add these lines to the bottom of: /usr/local/cwpsrv/htdocs/resources/admin/include/3rdparty.php
The red lines above are the options you can add to that dropdown menu, if you want to add more, just follow this rules:
<a class="op" href=" [URL goes here - with no spaces between quotes] "> [Text goes here] </a>
Add as much as you want
Tip: if you want every time to open a specific option on a new page, just add: target="_blank" before the >text option</a>
<a class="op" href="http://www.google.pt" target="_blank">Google</a>
Add these lines to the bottom of: /usr/local/cwpsrv/htdocs/resources/admin/include/3rdparty.php
Quote
<!-- Fast access -->
<style>
.fast_access .items .op{
display:inline-block;
padding:5px;
padding-bottom: 0px;
width:100%;
}
.fast_access .items {
position:absolute;
background:#FFF;
padding-bottom: 5px;
display:none;
}
</style>
<li class="inactive fast_access">
<a href="#" class="bt">
<span class="icon16 icomoon-icon-star"></span> <span class="txt">Favorites</span>
<span class="hasDrop icon16 icomoon-icon-arrow-down-2"></span>
</a>
<div class="items">
<a class="op" href="index.php?module=postfix_queue">Mail Queue</a>
<a class="op" href="http://www.google.pt" target="_blank">Google</a>
</div>
</li>
<script>
$(".fast_access").appendTo(".navbar .nav:first");
$('.fast_access .bt').click(function(){
if($('.fast_access .items').is(':visible'))
$('.fast_access .items').hide();
else
$('.fast_access .items').show();
});
</script>
<!-- //Fast access -->
The red lines above are the options you can add to that dropdown menu, if you want to add more, just follow this rules:
<a class="op" href=" [URL goes here - with no spaces between quotes] "> [Text goes here] </a>
Add as much as you want
Tip: if you want every time to open a specific option on a new page, just add: target="_blank" before the >text option</a>
<a class="op" href="http://www.google.pt" target="_blank">Google</a>
71
DKIM / Re: I'm a bit lost
« on: March 25, 2015, 06:08:05 PM »
It worked with the zakrpa tip.
I'm too scared to rebuild mail server, it might stop working like happened before, i had to do it over and over
I'm too scared to rebuild mail server, it might stop working like happened before, i had to do it over and over
72
DKIM / Re: I'm a bit lost
« on: March 24, 2015, 06:35:45 PM »
I'll take a look, thanks for your help buddy
73
New Modules / [module] Last Modified files
« on: March 23, 2015, 12:33:18 AM »
This helps you to see if someone hacked your server and has changed or created new files.
You are able to choose between 2 dates
Features:
- Highlight executable files such as 'sh', 'asp', 'cgi', 'php', 'php3', 'ph3', 'php4', 'ph4', 'php5', 'ph5', 'phtm', 'phtml'
- Date and time of modification
- MD5 checksum of each file
- All information is from "/home" directory
Add this line to:
/usr/local/cwpsrv/htdocs/resources/admin/include/3rdparty.php
Then create a new file called "last_files_changed.php" on:
/usr/local/cwpsrv/htdocs/resources/admin/modules
with this content:
You are able to choose between 2 dates
Features:
- Highlight executable files such as 'sh', 'asp', 'cgi', 'php', 'php3', 'ph3', 'php4', 'ph4', 'php5', 'ph5', 'phtm', 'phtml'
- Date and time of modification
- MD5 checksum of each file
- All information is from "/home" directory
Add this line to:
/usr/local/cwpsrv/htdocs/resources/admin/include/3rdparty.php
Quote
<li><a href="index.php?module=last_files_changed"><span class="icon16 icomoon-icon-arrow-right-3"></span>Last Modified files</a></li>
Then create a new file called "last_files_changed.php" on:
/usr/local/cwpsrv/htdocs/resources/admin/modules
with this content:
Quote
<h1>Last Modified files</h1>
<form action="" method="post" class="form-horizontal">
<input name="ifpost" size="0" value="yes" type="hidden">
<table><tbody><tr><td>
<table align="left" border="0" cellpadding="5" cellspacing="1" width="650px">
<tbody><tr class="oddrowcolor">
<td colspan="1">Filter from:</td>
<td colspan="1"><input class="uniform-input text" name="start" value="<?php echo date('Y-m-d'); ?>" size="30" type="text"></td>
</tr>
<tr class="oddrowcolor">
<td colspan="1">to:</td>
<td colspan="1"><input class="uniform-input text" name="end" value="<?php echo date('Y-m-d',strtotime("+1 days")); ?>" size="30" type="text"></td>
</tr>
</tbody></table>
</td></tr>
<tr><td>
<br>
<div class="form-group">
<div class="col-lg-offset-3 col-lg-9">
<button type="submit" class="btn btn-info">Filter</button>
</div>
</div>
</td></tr></tbody></table>
</form>
<?php
if(isset($_POST['start'])){
$files = shell_exec("find /home -type f -newermt ".$_POST['start']." ! -newermt ".$_POST['end']);
$files = preg_split("/\n/", $files);
foreach ($files as $file){
if(trim($file) !=''){
$ext = pathinfo($file, PATHINFO_EXTENSION);
if(in_array(strtolower($ext),['sh', 'asp', 'cgi', 'php', 'php3', 'ph3', 'php4', 'ph4', 'php5', 'ph5', 'phtm', 'phtml']))
echo '<font color="red"><b>'.date ("F d Y H:i:s", filemtime($file)).'</b> '.$file.' <b>('.$ext.' file)</b></font>';
else
echo '<b>'.date ("F d Y H:i:s", filemtime($file)).'</b> '.$file;
echo ' - <b>checksum</b> ('.md5_file($file).')';
echo '</br>';
}
}
}
?>
74
DKIM / I'm a bit lost
« on: March 21, 2015, 09:42:54 PM »
I configured DKIM, I did this:
Over the panel:
(1) Email - DKIM & SPF Manager
(2) I selected my domain and i generated a DKIM key
(3) Then i took a look at: "/var/named/my_domain.com.db" and i found:
default._domainkey IN TXT "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDyPJGm1OFopzv9zfPm7DQfQP4CDSe1iNS0BAogvXqaX/viXOVgMDJmra2FaCm2h4BE3XNLBEhaR+iap3GwFCuRNM3EihL6RlpIT6zxUl4CDQSY0Mu3vCDcV59ycWoQvebanqQPKwU1fHH6dZkq22/ncwxW/rUENke2qXKLxybkrwIDAQAB"
(4) Then i went to DynaDot (my dns provider) and i added the TXT record
DOMAIN: default._domainkey.my_domain.com
TARGET:
v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDyPJGm1OFopzv9zfPm7DQfQP4CDSe1iNS0BAogvXqaX/viXOVgMDJmra2FaCm2h4BE3XNLBEhaR+iap3GwFCuRNM3EihL6RlpIT6zxUl4CDQSY0Mu3vCDcV59ycWoQvebanqQPKwU1fHH6dZkq22/ncwxW/rUENke2qXKLxybkrwIDAQAB
I sent an email over roundcube to gmail but it's still not signed, what did i miss?
What else should i do?
Thanks for your time
Over the panel:
(1) Email - DKIM & SPF Manager
(2) I selected my domain and i generated a DKIM key
(3) Then i took a look at: "/var/named/my_domain.com.db" and i found:
default._domainkey IN TXT "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDyPJGm1OFopzv9zfPm7DQfQP4CDSe1iNS0BAogvXqaX/viXOVgMDJmra2FaCm2h4BE3XNLBEhaR+iap3GwFCuRNM3EihL6RlpIT6zxUl4CDQSY0Mu3vCDcV59ycWoQvebanqQPKwU1fHH6dZkq22/ncwxW/rUENke2qXKLxybkrwIDAQAB"
(4) Then i went to DynaDot (my dns provider) and i added the TXT record
DOMAIN: default._domainkey.my_domain.com
TARGET:
v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDyPJGm1OFopzv9zfPm7DQfQP4CDSe1iNS0BAogvXqaX/viXOVgMDJmra2FaCm2h4BE3XNLBEhaR+iap3GwFCuRNM3EihL6RlpIT6zxUl4CDQSY0Mu3vCDcV59ycWoQvebanqQPKwU1fHH6dZkq22/ncwxW/rUENke2qXKLxybkrwIDAQAB
I sent an email over roundcube to gmail but it's still not signed, what did i miss?
What else should i do?
Thanks for your time