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

Pages: [1]
1
E-Mail / Re: mail with php seen as spam
« on: October 16, 2019, 06:43:12 PM »
what I can not understand is that if I remove these lines
Code: [Select]
$headers .= 'Reply-To: manu@progmail.com' . "\n";
$headers .= 'From: "MaNu"<manu@progmail.com>' . "\n";

the mail is no longer sent under the address manu@progmail.com but under progmail@ns1.domaine.fr and there the email is no longer considered as spam

2
DNS / Re: DNS slave SERVERFAIL
« on: October 14, 2019, 08:40:25 PM »
thanks martend, sorry for you.

i finally succeeded
look at https://forum.ubuntu-fr.org/viewtopic.php?id=2044362
it's in french but finally there was a problem of socket closed on the primary

3
E-Mail / mail with php seen as spam
« on: October 14, 2019, 08:27:55 PM »
Hello everybody

i have a server at home with cwp. www.domain.fr
two dns ns1.domain.fr on this server and ns2.domain.fr on a vps scaleway

i have add new user called progmail (it s me) with domain www.progmail.com.
on this site i use a script for send to user a mail with function mail();

the problem, on gmail the message is delivered but on spam folder. on free, this message doesn't be delivered

my maillog
Code: [Select]
Oct 12 17:09:44 ns1 postfix/pickup[22073]: 0590D4042BD0: uid=1005 from=<progmail>
Oct 12 17:09:44 ns1 postfix/cleanup[22800]: 0590D4042BD0: message-id=<20191012150944.0590D4042BD0@ns1.domaine.fr>
Oct 12 17:09:44 ns1 opendkim[6259]: 0590D4042BD0: DKIM-Signature field added (s=default, d=prog.fr)
Oct 12 17:09:44 ns1 postfix/qmgr[30227]: 0590D4042BD0: from=<prog@ns1.domaine.fr>, size=41333, nrcpt=1 (queue active)
Oct 12 17:09:44 ns1 postfix/pickup[22073]: 137B84042BD1: uid=1005 from=<prog>
Oct 12 17:09:44 ns1 postfix/cleanup[22800]: 137B84042BD1: message-id=<20191012150944.137B84042BD1@ns1.domaine.fr>
Oct 12 17:09:44 ns1 opendkim[6259]: 137B84042BD1: DKIM-Signature field added (s=default, d=prog.fr)
Oct 12 17:09:44 ns1 postfix/qmgr[30227]: 137B84042BD1: from=<progmail@ns1.domaine.fr>, size=21546, nrcpt=1 (queue active)
Oct 12 17:09:44 ns1 postfix/smtp[25289]: 0590D4042BD0: to=<mail1@free.fr>, relay=mx1.free.fr[212.27.48.6]:25, delay=0.34, delays=0.12/0.03/0.15/0.04, dsn=5.0.0, status=bounced (host mx1.free.fr[212.27.48.6] said: 550 spam detected (in reply to end of DATA command))
Oct 12 17:09:44 ns1 postfix/cleanup[22800]: 4EFF44042BD2: message-id=<20191012150944.4EFF44042BD2@ns1.domaine.fr>
Oct 12 17:09:44 ns1 postfix/bounce[25291]: 0590D4042BD0: sender non-delivery notification: 4EFF44042BD2
Oct 12 17:09:44 ns1 postfix/qmgr[30227]: 4EFF44042BD2: from=<>, size=43597, nrcpt=1 (queue active)
Oct 12 17:09:44 ns1 postfix/qmgr[30227]: 0590D4042BD0: removed
Oct 12 17:09:44 ns1 postfix/smtp[25290]: 137B84042BD1: to=<mail2@free.fr>, relay=mx1.free.fr[212.27.48.7]:25, delay=0.29, delays=0.08/0.02/0.15/0.04, dsn=5.0.0, status=bounced (host mx1.free.fr[212.27.48.7] said: 550 spam detected (in reply to end of DATA command))
Oct 12 17:09:44 ns1 postfix/local[25138]: 4EFF44042BD2: to=<progmail@ns1.domaine.fr>, relay=local, delay=0.02, delays=0.01/0/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
Oct 12 17:09:44 ns1 postfix/qmgr[30227]: 4EFF44042BD2: removed
Oct 12 17:09:44 ns1 postfix/cleanup[22800]: 54BFB4042BD0: message-id=<20191012150944.54BFB4042BD0@ns1.ecoll-hosting.fr>
Oct 12 17:09:44 ns1 postfix/qmgr[30227]: 54BFB4042BD0: from=<>, size=23828, nrcpt=1 (queue active)
Oct 12 17:09:44 ns1 postfix/bounce[25291]: 137B84042BD1: sender non-delivery notification: 54BFB4042BD0
Oct 12 17:09:44 ns1 postfix/qmgr[30227]: 137B84042BD1: removed
Oct 12 17:09:44 ns1 postfix/local[25138]: 54BFB4042BD0: to=<prog@ns1.domaine.fr>, relay=local, delay=0.01, delays=0/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Oct 12 17:09:44 ns1 postfix/qmgr[30227]: 54BFB4042BD0: removed
Oct 12 17:09:49 ns1 clamd[25196]: Loaded 6486685 signatures.
Oct 12 17:09:50 ns1 postfix/smtpd[25296]: connect from unknown[46.38.144.202]
Oct 12 17:09:50 ns1 clamd[25196]: LOCAL: Socket file /var/run/clamd.amavisd/clamd.sock is in use by another process.
Oct 12 17:09:50 ns1 clamd[25299]: Received 0 file descriptor(s) from systemd.
Oct 12 17:09:50 ns1 clamd[25299]: clamd daemon 0.101.4 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
Oct 12 17:09:50 ns1 clamd[25299]: Running as user amavis (UID 989, GID 987)
Oct 12 17:09:50 ns1 clamd[25299]: Log file size limited to 1048576 bytes.
Oct 12 17:09:50 ns1 clamd[25299]: Reading databases from /var/lib/clamav
Oct 12 17:09:50 ns1 clamd[25299]: Not loading PUA signatures.
Oct 12 17:09:50 ns1 clamd[25299]: Bytecode: Security mode set to "TrustSigned".

the mail header
Code: [Select]
Delivered-To: manu@gmail.com
Received: by 2002:a25:d4d:0:0:0:0:0 with SMTP id 74csp5166619ybn;
        Mon, 14 Oct 2019 12:48:19 -0700 (PDT)
X-Google-Smtp-Source: APXvYqwqHw5FDeqBlvaqBICxY/cjBRszASQ6EXoW1YvZtCSdjulNy9gWx8p7M4FR5aCHOakqplKc
X-Received: by 2002:a7b:cf0d:: with SMTP id l13mr15745596wmg.47.1571082498937;
        Mon, 14 Oct 2019 12:48:18 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1571082498; cv=none;
        d=google.com; s=arc-20160816;
        b=x45vG6gGAvv3VhJwdvK87djg5W8a7d0PXP2KIZwnKJTFW+9wmZmN0JOhTkWGM1sKu4
         eIVwfZpjR8JSHsW5ktMzZP2xLc5UDidffp8n8duBymLgMdFFdv7XM1ByKDiuDlZV/Gei
         Vs5hcvv3er89E2jcb1bYgFCXmsirf9pZSkhWvGGDYd5Qb6cr87BPy0vpzwbYhjvIK0Fu
         uvtuIrKlBH80Rp3Mng0J8guF/qwIQgQd2Nl0RsUyV/FxOfDdxP6fmZkun5IX3s2xee1I
         O2oU3wL4Lzyp3lqBmXwhf8nTHMww6DhcQnGdJh4ZRrZrJqleTrB6tRsPbsZY8+ivoLPs
         2jsg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=date:message-id:from:reply-to:mime-version:subject:to
         :dkim-signature;
        bh=Eaz82YrQxgJZwD8/ke133C+UdV17Acuzx47a68jsMM0=;
        b=Q0a4+pjRyaJhBPlKW0lYUwYHedFM47JmFe5eE4HXzXaGcm3WzbnJDXl/kvc8rK5DQL
         L0c3jHz6SagUOGYyLVUc/LVoebxoDcO63fA2AhXs22hIb00Jl6UqwXhnt7HZF67X76WY
         8TEjboxHcu5wE84RCCDpkQZ6H0aCD6rvnmEMtELizV2Sb4LznzXVrphyiFWfLVtv5/os
         6ZLI9VRCY2tw3Mf4wV+k56OCuP2ycBzBJjmnYeyjui31LjXZfKm/llPiayaV/4H7+Z/f
         18DuGyRhAtW3F3cxgdTF/DvTZVsgsCCYvg4PSZKExdLcGLp4MDuh7vdvVY5F6KZTSZPD
         AcFA==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@progmailer.fr header.s=default header.b=BFclW2GM;
       spf=neutral (google.com: 82.64.165.128 is neither permitted nor denied by best guess record for domain of progmail@ns1.domain.fr) smtp.mailfrom=progmail@ns1.domain.fr;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=progmail.com
Return-Path: <progmail@ns1.domain.fr>
Received: from ns1.domain.fr (82-64-165-128.subs.proxad.net. [82.64.165.128])
        by mx.google.com with ESMTPS id x18si19065719wrg.431.2019.10.14.12.48.18
        for <dsecoll@gmail.com>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Mon, 14 Oct 2019 12:48:18 -0700 (PDT)
Received-SPF: neutral (google.com: 82.64.165.128 is neither permitted nor denied by best guess record for domain of progmail@ns1.domain.fr) client-ip=82.64.165.128;
Authentication-Results: mx.google.com;
       dkim=pass header.i=@progmailer.fr header.s=default header.b=BFclW2GM;
       spf=neutral (google.com: 82.64.165.128 is neither permitted nor denied by best guess record for domain of progmail@ns1.domain.fr) smtp.mailfrom=progmail@ns1.domain.fr;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=progmail.com
Received: by ns1.ecoll-hosting.fr (Postfix, from userid 1005) id 3879A4042BD0; Mon, 14 Oct 2019 21:48:18 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=progmail.fr; s=default; t=1571082498; bh=Q+GOwEpPTdcNxIqWMqn8rJGx88WeAV6+/bCyWdZcjJc=; h=To:Subject:Reply-To:From:Date; b=BFclW2GMV8OjuF3BW1E//4rJlWbdcABVNq8kxyAj0vxvgXtKQC/ewrhxm4y1oZ+9V
jnwc8I5EoQu2Dfwz6HcX+r7saOkMm0kAREoSlIHQnkbSoBHahCqx0869Qld38jwXHM
vKvDHSlgHJaL6Cr48CFACou4/Gr2lshlndBArVeY=
To: manu@gmail.com
Subject: Nous avons trouvé quelque chose pour vous ;)
X-PHP-Originating-Script: 1005:scan.php
MIME-Version: 1.0
Content-type: text/html; charset=UTF-8
Reply-To: manu@progmail.com
From: MaNu <manu@progmail.com>
Message-Id: <20191014194818.3879A4042BD0@ns1.domain.fr>
Date: Mon, 14 Oct 2019 21:48:18 +0200 (CEST)

my php script
Code: [Select]
$headers  = 'MIME-Version: 1.0' . "\n";
$headers .= 'Content-type: text/html; charset=UTF-8'."\n";
$headers .= 'Reply-To: manu@progmail.com' . "\n";
$headers .= 'From: "MaNu"<manu@progmail.com>' . "\n";

$subject = "Le sujet\r\n";

$message = "code HTML";

mail("email@destinataire.fr", $subject, $message, $headers);

what I realize is that the email is sent under the email progmail@ns1.domain.fr instead of manu@progmail.com
as there are inconsistencies between email addresses then it is either refused or put in the spam folder.
To know that if I comment the reply-to and the from the header of the mail, I receive it correctly.

Someone could help me make this work


4
DNS / DNS slave SERVERFAIL
« on: October 08, 2019, 11:55:42 AM »
Hi everybody

I have a big problem with my CWP

I have CWP in my homelab, Bind9 work as master DNS
i have a tiny VPS plan on scaleway for my dns slave

Here my /etc/named.conf

Master
Code: [Select]
zone "domaine.biz" {
        type master;
        file "/var/named/domaine.biz.db";
        allow-update { 163.172.1.226; };
};

Slave
Code: [Select]
        allow-query     { any; };
        allow-notify     { 82.65.125.128; };

zone "domaine.biz" {
        type slave;
        file "/var/named/domaine.biz.db";
        masters{ 82.65.125.128; };
};

bind9 state

master
Code: [Select]
named.service - Berkeley Internet Name Domain (DNS)
   Loaded: loaded (/usr/lib/systemd/system/named.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2019-10-08 09:38:35 CEST; 2s ago
  Process: 23022 ExecStop=/bin/sh -c /usr/sbin/rndc stop > /dev/null 2>&1 || /bin/kill -TERM $MAINPID (code=exited, status=0/SUCCESS)
  Process: 11823 ExecReload=/bin/sh -c /usr/sbin/rndc reload > /dev/null 2>&1 || /bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS)
  Process: 23038 ExecStart=/usr/sbin/named -u named -c ${NAMEDCONF} $OPTIONS (code=exited, status=0/SUCCESS)
  Process: 23034 ExecStartPre=/bin/bash -c if [ ! "$DISABLE_ZONE_CHECKING" == "yes" ]; then /usr/sbin/named-checkconf -z "$NAMEDCONF"; else echo "Checking of zone files is disabled"; fi (code=exited, status=0/SUCCESS)
 Main PID: 23039 (named)
   CGroup: /system.slice/named.service
           └─23039 /usr/sbin/named -u named -c /etc/named.conf

Oct 08 09:38:35 ns1.domaine.biz named[23039]: zone domaine.biz/IN: sending notifies (serial 2019100701)
Oct 08 09:38:35 ns1.domaine.biz systemd[1]: Started Berkeley Internet Name Domain (DNS).
Oct 08 09:38:35 ns1.domaine.biz named[23039]: managed-keys-zone: Key 20326 for zone . acceptance timer complete: key now trusted
Oct 08 09:38:35 ns1.domaine.biz named[23039]: resolver priming query complete

and slave
Code: [Select]
named.service - Berkeley Internet Name Domain (DNS)
   Loaded: loaded (/usr/lib/systemd/system/named.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2019-10-08 09:42:32 CEST; 2s ago
  Process: 20405 ExecStop=/bin/sh -c /usr/sbin/rndc stop > /dev/null 2>&1 || /bin/kill -TERM $MAINPID (code=exited, status=0/SUCCESS)
  Process: 20423 ExecStart=/usr/sbin/named -u named -c ${NAMEDCONF} $OPTIONS (code=exited, status=0/SUCCESS)
  Process: 20419 ExecStartPre=/bin/bash -c if [ ! "$DISABLE_ZONE_CHECKING" == "yes" ]; then /usr/sbin/named-checkconf -z "$NAMEDCONF"; else echo "Checking of zone files is disabled"; fi (code=exited, status=0/SUCCESS)
 Main PID: 20428 (named)
   CGroup: /system.slice/named.service
           └─20428 /usr/sbin/named -u named -c /etc/named.conf

Oct 08 09:42:32 ns2.domaine.biz named[20428]: network unreachable resolving './NS/IN': 2001:500:2d::d#53
Oct 08 09:42:32 ns2.domaine.biz named[20428]: managed-keys-zone: Key 20326 for zone . acceptance timer complete: key now trusted
Oct 08 09:42:32 ns2.domaine.biz named[20428]: resolver priming query complete
Oct 08 09:42:32 ns2.domaine.biz named[20428]: zone domaine-x.biz/IN: Transfer started.
Oct 08 09:42:33 ns2.domaine.biz named[20428]: zone domaine-y.biz/IN: Transfer started.
Oct 08 09:42:33 ns2.domaine.biz named[20428]: zone domaine.biz/IN: zone transfer deferred due to quota  :o :o
Oct 08 09:42:33 ns2.domaine.biz named[20428]: zone .../IN: zone transfer deferred due to quota
Oct 08 09:42:33 ns2.domaine.biz named[20428]: zone .../IN: zone transfer deferred due to quota
Oct 08 09:42:33 ns2.domaine.biz named[20428]: zone .../IN: zone transfer deferred due to quota
Oct 08 09:42:33 ns2.domaine.biz named[20428]: zone .../IN: zone transfer deferred due to quota

Dig
Code: [Select]
[root@ns2 named]# dig @ns1.domaine.biz domaine.biz

; <<>> DiG 9.11.4-P2-RedHat-9.11.4-9.P2.el7 <<>> @ns1.domaine.biz domaine.biz
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34581
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3
;; WARNING: recursion requested but not available

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;domaine.biz.              IN      SOA

;; ANSWER SECTION:
domaine.biz.       86400   IN      SOA     ns1.domaine.biz. admin.domaine.biz. 2019100800 3600 7200 1209600 86400

;; AUTHORITY SECTION:
domaine.biz.       86400   IN      NS      ns2.domaine.biz.
domaine.biz.       86400   IN      NS      ns1.domaine.biz.

;; ADDITIONAL SECTION:
ns1.domaine.biz.   14400   IN      A       82.65.125.128
ns2.domaine.biz.   14400   IN      A       163.172.1.226

;; Query time: 6 msec
;; SERVER: 82.65.125.128#53(82.64.165.178)
;; WHEN: mar. oct. 08 09:46:18 CEST 2019
;; MSG SIZE  rcvd: 155
and
Code: [Select]
[root@ns2 named]# dig @ns2.domaine.biz domaine.biz

; <<>> DiG 9.11.4-P2-RedHat-9.11.4-9.P2.el7 <<>> @ns2.domaine.biz domaine.biz
; (3 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 86
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;domaine.biz.              IN      SOA

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: mar. oct. 08 09:40:37 CEST 2019
;; MSG SIZE  rcvd: 45

Do you have an idea ??
Quota for DNS  :o

5
MySQL / Re: Warning: mysqli_connect(): (HY000/2002)
« on: May 27, 2018, 08:53:01 PM »
i have the same error

on /var/lib/mysql i have no mysql.sock

when i use putty
Code: [Select]
mysql start
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2 "No such file or directory")

6
PHP / libssh2 problem
« on: May 01, 2018, 09:14:58 AM »
Hello
i have find on wiki the way to install libssh2

but on config of  libssh2-1.8.0 i have a error
Code: [Select]
./configure --with-php-config=/usr/local/bin/php-config
Code: [Select]
checking for libssl... no
configure: error: No crypto library found!
Try --with-libssl-prefix=PATH
 or --with-libgcrypt-prefix=PATH
 or --with-libmbedtls-prefix=PATH
 or --with-wincng on Windows

i've search on google but i've not found

anybody can help me

thanks

7
Functions / How integrate script to CWP user panel
« on: April 13, 2018, 09:44:27 PM »
Hello guys,

i would like integrate a script name for example myfunction.php to the CWP user panel
i have try with 3rdparty.php but it doesn't work

i use CWP version: 0.9.8.598 with CentOS Linux release 7.4.1708

thanks a lot

8
OK i've find ::)

i have an other problem with apache

now when i want to restart, start or stop httpd i have this message
Quote
Failed to start httpd.service: Unit not found.

i've search on /usr/lib/systemd/system, no file httpd.service

9
Check if by mistake you installed another version of apache. You remove httpd

it'so easy  ::)
thank's a lot when i have install mod_perl an another apache version has been installed

How can i use a perl page ?

10
Apache / problem -> centos7 Apache HTTP Server Test on all my domains
« on: March 25, 2018, 08:40:54 PM »
i've a big problem

i try to install awstats
when i test http://localhost/awstats/awstats.pl?config=my_domain, i see the script on screen.
i've try to install mod_perl

now on my all domain  i see the centos7 Apache HTTP Server Test (/usr/share/httpd/noindex/index.html)


i've test to rebuilt vhost, re-built apache but nothing change
it looks like apache no longer handles vhosts

11
CentOS 6 Problems / white screen on panel
« on: April 30, 2017, 03:26:17 PM »
Hello everybody

I have a mistake on my panel.
This morning i have reboot my server. Since i have a blank screen on my panel.

Sites and phpmyadmin work perfectly but not the panel

I have restart cwpsrv and cwp-phpfrm. Nothing change

I haven't edit anything

Can you help me?
Thanks in advance

Pages: [1]