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

Pages: [1] 2
E-Mail / Re: NewBackup backup vmail problem
« on: December 16, 2022, 09:38:25 AM »
Simple solution with bash script,
just start this script in every folder:

Code: [Select]
#starting with 1* because all filenames starts with 1
for file in 1*;
    echo "Processing $file.."
# getting timestamp from filename, first 10 characters
tstamp=$(echo "${file}" | cut -c1-10)

# set timestamp to file
touch -d @"$tstamp" "$file"

E-Mail / Re: NewBackup backup vmail problem
« on: December 16, 2022, 08:15:57 AM »
Now I see that there is possible solution, all email files has timestamp in the filename.
I will try to solve this out somehow.

E-Mail / NewBackup backup vmail problem
« on: December 16, 2022, 08:13:30 AM »
Today I tried just to recover some emails and I noticed that all files (email) files have date created not when email is received and created but date of backup?

Now when you restore all this emails, they are sorted in email client as they are received at the day of backup.

Is there any solution to repair this?

Backup / Re: What is the best BACKUP on CWP
« on: October 10, 2022, 07:11:33 AM »
I will do it with manual script, bash and then with crond.

Or you can try to use new backup in control panel (CWP settings > New Backup).
There you can select user to backup (one, multiple), what to backup, where, when and notifications.
Also you can create multiple backups.

New Backup is great backup.

E-Mail / or postfix or control web panel
« on: August 19, 2022, 01:16:32 PM »
Few days ago I noticed a plenty of email messages denied by system in /var/log/maillog, system gone wild.
Zen spamhaus  org in combination with postfix configuration marked some incoming email servers as blacklisted servers, some of them weren't on spamhaus list at all.

I tested some IP addresses there:

Configuration of postfix wasn't changed for months.
Maybe anyone have more info about that problem? Is it spamhaus error/bug with false positive reporting or is there anything with the current system?

Code: [Select]
Aug 18 14:47:46 srv postfix/smtpd[32701]: NOQUEUE: reject: RCPT from[]: 554 5.7.1 Service unavailable; Client host [] blocked using; from=<> to=<> proto=ESMTP helo=<>

Thank you,

CentOS 7 Problems / Re: I do not receive mail....
« on: August 19, 2022, 01:04:12 PM »
I noticed today the same problem today.

We have multiple messages in log with:
554 5.7.1 Service unavailable; Client host [] blocked using

When I check IP on spamhaus, some IP addresses aren't listed there.

Not sure if this is spamhaus problem or centos webpanel.
Only fast solution was to disable spamhaus in postfix i /etc/postfix/

CentOS 5 Problems / Re: Continuous reduction of hosting space
« on: June 20, 2022, 07:33:23 AM »
The VPS server I use CWP panel, decreasing the area to be used about 100 MB each day. We had 12GB of free space from 6GB. Can you help with this?

Firstly install ncdu with
# yum install ncdu.

After that start ncdu. With that tool you can easily see what's taking your space.

Also you can clean some system apache logs.
Notice: First command list them all, so you can check them before cleaning, second command truncates to nothing.

# apache domain logs
# find /usr/local/apache/domlogs/ -type f -name "*.log" -exec ls -if {} \;
# find /usr/local/apache/domlogs/ -type f -name "*.log" -exec truncate --size 0 {} \;

# php-fpm system logs
# find /opt/alt/php-fpm*/usr/var/log/ -type f -name "php-fpm.log" -exec ls -if {} \;
# find /opt/alt/php-fpm*/usr/var/log/ -type f -name "php-fpm.log" -exec truncate --size 0 {} \;

# apache logs
# find /usr/local/apache/logs/ -type f -name "*log" -exec ls -if {} \;
# find /usr/local/apache/logs/ -type f -name "*log" -exec truncate --size 0 {} \;

# dovecot logs
# find /var/log/dovecot-* -type f -name "*log" -exec ls -if {} \;
# find /var/log/dovecot-* -type f -name "*log" -exec truncate --size 0 {} \;

# cwp_stats home folder clean
# find /home/*/cwp_stats/goaccess/ -type f -name "*.html" -exec ls -if {} \;
# find /home/*/cwp_stats/goaccess/ -type f -name "*.html" -exec rm {} \;

CentOS 7 Problems / Re: hello, web try to update cwp get errors!!
« on: June 20, 2022, 07:27:45 AM »
Is there any solution?
Should I contact CWP Control payed support?

Can they fix it? Should I know what they are going to fix it?
Because I read it somewhere in forum that some CWP team crashed some server.

Also tnx to the @NFT,
solved also by my side.

Just notice,
temporally solved.

Problem still exists, yesterday I noticed the same message for crond :(.

Is there any solution?! It seems that there is existing problem with CentOS 7.6, even on 7.8.
It doesn’t look promising that the RedHat team will address this any time soon.

CentOS 7 Problems / Re: hello, web try to update cwp get errors!!
« on: June 01, 2022, 12:32:31 PM »
Yes rcshaff is right. Apply this fix.

this is not good it can be lead to OS boot failure.

So what's is the good fix for that issue?

Few weeks ago I noticed problem with restart of mysqld, now the same problem with restarting/reloading crond?!
How to solve it?

Code: [Select]
[root@srv /]# systemctl reload crond

** (pkttyagent:13253): WARNING **: 14:32:10.818: Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject
Error registering authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject (polkit-error-quark, 0)

Also tnx to the @NFT,
solved also by my side.

E-Mail / X-Envelope-From and From different
« on: January 14, 2022, 09:47:20 AM »
Today I received one email where fields "X-Envelope-From" and "From" field are different,
client is confused because he is deceived that email was sent from his coworker on the same domain from e*** domain.

The sender wants to intentionally confuse the recipient from whom it was sent, because the server accepts email from X-Envelope-From and the client on the email client application see only From as sender which is actually not true.

My question is,
what service on Centos Webpanel should remove or just mark this mail as SPAM or as deceiving email.
Maybe Spamassasin or Postfix?

Where to configure to check incoming emails for valid SPF, DKIM, DMARC?

I do not have installed on server:
"AntiSpam/AntiVirus (recommended): ClamAV, Amavis & Spamassassin, Requires 2Gb+ RAM"

Thank you.

Header of this email:
Code: [Select]
Return-Path: <>
Delivered-To: vt@e***
Received: from srv.m***
    by srv.m*** with LMTP id uO/ALc4q4WGVWAAAoUtXVA
    for <vt@e***>; Fri, 14 Jan 2022 08:48:30 +0100
Received: from ( [])
    (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
    (No client certificate requested)
    by srv.m*** (Postfix) with ESMTPS id B4422A405AB
    for <vt@e***>; Fri, 14 Jan 2022 08:48:30 +0100 (CET)
X-Hid: 5c2eeee9-750e-11ec-bd20-00163e218517
Received: from ( [])
    by (Halon) with ESMTPS
    id 5c2eeee9-750e-11ec-bd20-00163e218517;
    Fri, 14 Jan 2022 07:48:27 +0000 (GMT)
Received: from (localhost [])
    by (Postfix) with ESMTP id B83D7470F25
    for <vt@e***>; Fri, 14 Jan 2022 07:48:27 +0000 (UTC)
Date: Fri, 14 Jan 2022 07:48:27 +0000 (UTC)
From: RS <rs@e***>
To: vt@e***
Message-ID: <>
Subject: =?utf-8?Q?Payment?=
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Mailer: Zimbra 8.8.15_GA_4018 (ZimbraWebClient - GC96 (Win)/8.8.15_GA_4026)
Thread-Index: YFWfkK3jx1TTazTDLfBNMsQQSbIiiQ==
Thread-Topic: =?utf-8?Q?Payment?=

You're right, myipaddress confused me with showing ipv6 address.
Problem solved thanks to your advice.

Thanks a lot once again.

I didn't have any client until today with ipv6 address and this client can't access to any web service, mail nor even ping the server.
I tried to list iptables there were no ipv6 addresses then checked ip6tables, rhis list was empty.
When I disable firewall on server, he can access to all services (web, mail, ping), when I turn firewall back on, he is unable to reach anything.

I even added his IPv6 address to whitelist in panel in Whitelist configuration and restart firewall and he still can't access. I checked and his address is listed in ip6tables.

Client then resets his modem to get new IPv6 address, with new IPv6 address he can't access to the server at all.
What to solve that? Does Centos WebPanel prevents all ipv6 addresses by default or?

Tnx in advance for any tips and help.

PHP / How to lists all domains with used php-fm versions?!
« on: October 15, 2021, 11:29:04 AM »
How can I list or simply find out which domains on CWP uses which versions of php-fm?
Some simple list, with listed all domains on server with php versions.

I would like to update some php-fpm versions so I can know in advance which domains will be affected.

Pages: [1] 2