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

Pages: 1 ... 3 4 [5]
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.

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
mail from: pedro@yyyyyyyyyyyyyyyyyyyyyyy
250 2.1.0 Ok
rcpt to:<>
454 4.7.1 <>: 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

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

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:
  • chown -R vmail:mail /var/vmail
  • find /var/vmail -type f -exec chmod 600 {} \;
  • find /var/vmail -type d -exec chmod 700 {} \;

Access to your myphpadmin, as ROOT and open "postfix" database.
Go to "Domain" table and remove your domain that is being seen as local :)

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:
<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:
with this content:

exec('sync; echo 3 > /proc/sys/vm/drop_caches');
echo "Done!!";

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

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:

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

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

<!-- Fast access -->
.fast_access .items .op{
   padding-bottom: 0px;

.fast_access .items {
   padding-bottom: 5px;
<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>
   <div class="items">
      <a class="op" href="index.php?module=postfix_queue">Mail Queue</a>
      <a class="op" href="" target="_blank">Google</a>
   $(".fast_access").appendTo(".navbar .nav:first");
   $('.fast_access .bt').click(function(){
      if($('.fast_access .items').is(':visible'))
         $('.fast_access .items').hide();
         $('.fast_access .items').show();
<!-- //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="" target="_blank">Google</a>

New Modules / Re: [module] Last Modified files
« on: April 01, 2015, 08:06:21 PM »
Nice! Thanks for this!

Thank you buddy :)

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

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

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

- 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:
<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:
with this content:

<h1>Last Modified files</h1>
<form action="" method="post" class="form-horizontal">
<input name="ifpost" size="0" value="yes" type="hidden">
   <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 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>
<div class="form-group">
     <div class="col-lg-offset-3 col-lg-9">
        <button type="submit" class="btn btn-info">Filter</button>

   $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>';
            echo '<b>'.date ("F d Y H:i:s", filemtime($file)).'</b> '.$file;
         echo ' - <b>checksum</b> ('.md5_file($file).')';
         echo '</br>';

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/" 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
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

Pages: 1 ... 3 4 [5]