--- /dev/null
+#file used to set environment configuration
+#------------------------------------------------
+#Defining application name
+APPNAME=mailleur
+#root working directoy definition for the whole application
+ROOTBASE="/"
+#defining local default domain
+DFLTDOMAIN="safe.ca"
+#defining the local REALM
+#Caution! the realm is hardcoded within data-base
+#and USED too to hash the user passwd
+#Changing this value coule be a trouble make
+#(entering again ALL user password)
+REALM="mailleur-email"
+#------------------------------------------------
+#list of listening port to do SMTP protocole
+#format
+#protocol|ipnum|port|iteration[,protocol|ipnum|port|iteration]++
+#example
+#stmtps|ipnum|465|5 -> protocol smtps|IP number|port 465|5 iterations
+#|ipnum||| -> smtp|ipnum|25|2
+#||,smtps||465|2 -> smtp|0.0.0.0|25|2 + smtps||465|2
+#|| -> smtp|0.0.0.0|25|2
+#Examples
+#SMTPPORTS="|127.127.10.25|1025|,smtps|127.127.10.25|1026|1"
+#SMTPPORTS="|127.127.10.25|1025|"
+#SMTPPORTS="smtps|127.127.10.25|1065|1"
+#Defaults
+SMTPPORTS="|||5,smtps||465|3,smtp||587|2"
+#------------------------------------------------
+#SSL Security level default value
+#CIPHER_LIST="DEFAULT"
+#SSL_SECURITY=2
+#------------------------------------------------
+#Defining SERVER mode Certificate data
+CA_ROOT_SRV="/etc/pki/tls/make-ca/ca-bundle.crt"
+CA_VERIFY_SRV=0 #to check PEER/client remote certificate
+#If certificate set via do_dns_tlsa.sh (letsencrypt)
+#CA_CERT_SRV="/etc/certbot/mailleur/mailleur-fullchain.pem"
+#CA_KEY_SRV="/etc/certbot/mailleur/mailleur-key.pem"
+#If certificate are self signed (default installation)
+#CA_CERT_SRV="/etc/pki/mailleur/mailleur-cert.pem"
+#CA_KEY_SRV="/etc/pki/mailleur/mailleur-key.pem"
+#Symbolic link set at installation
+CA_CERT_SRV="/etc/mailleur/pki/mailleur-cert.pem"
+CA_KEY_SRV="/etc//mailleur/pki/mailleur-key.pem"
+#------------------------------------------------
+#Defining CLIENT mode Certificate data
+CA_ROOT_CLT="/etc/pki/tls/make-ca/ca-bundle.crt"
+CA_VERIFY_CLT=0 #to check PEER/server remote certificate
+#If certificate set via do_dns_tlsa.sh (letsencrypt)
+#CA_CERT_CLT="/etc/certbot/mailleur/mailleur-fullchain.pem"
+#CA_KEY_CLT="/etc/certbot/mailleur/mailleur-key.pem"
+#If certificate are self signed (default installation)
+#CA_CERT_CLT="/etc/pki/mailleur/mailleur-cert.pem"
+#CA_KEY_CLT="/etc/pki/mailleur/mailleur-key.pem"
+#Symbolic link set at installation
+CA_CERT_CLT="/etc/mailleur/pki/mailleur-cert.pem"
+CA_KEY_CLT="/etc/mailleur/pki/mailleur-key.pem"
+#------------------------------------------------
+#Configured for Postgresql database
+#DB_TYPE can be either POSTGRESQL,MYSQL, default POSTGRESQL
+DB_TYPE=POSTGRESQL
+DB_NAME=mailleur
+DB_HOST=localhost
+DB_PORT=5432
+DB_LANG="UTF-8"
+#------------------------------------------------
+#Dovecot storage directory
+DOV_MAILDIR="/var/spool/mailleur/mails"
+#------------------------------------------------
+#The list of public blacklist serveur
+BLACKLISTER=/etc/mailleur/blacklister.conf
+#the list of IP from which we accept to relay email
+RELAYABLE=/etc/mailleur/relayed.conf
+#------------------------------------------------
+#Minimal credit level to which remote is rejected at once
+#if credit is equal or below that level
+RJCTCRED=-50
+#------------------------------------------------
--- /dev/null
+<?php
+//==============================================================
+//
+// To manage very low level function
+//
+//==============================================================
+global $debug;
+
+
+$debug=0;
+
+//==============================================================
+// Open a syslog channel
+//==============================================================
+function rou_openlog()
+
+{
+openlog("Mailleur (PHP)",LOG_PID,LOG_DAEMON);
+}
+
+//==============================================================
+// close a syslog channel
+//==============================================================
+
+function rou_closelog()
+
+{
+closelog();
+}
+//==============================================================
+// log data on syslog channel
+//==============================================================
+function rou_alert($dbglvl,$report)
+
+{
+if ($debug>=$dbglvl)
+ syslog(LOG_INFO,"$report");
+}
+
+rou_openlog();
+?>