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.
Pages: 1 [2]
16
Information / How to make SPF and Forwarders to work with Postfix and Postfix upgrade
« on: July 28, 2016, 09:37:11 AM »
Hi, this is little how-to for upgrading Postfix and make this works with the SPF and forwarders.
It was tested with MariaDB (for MySQL should be installed mysql-devel and mysql-libs I guess):
Upgrade to latest stable 3.1.1 (at the 28.07.2016)
#make config backup#
Make forwarders works with SPF (SRS)
If something went wrong
It was tested with MariaDB (for MySQL should be installed mysql-devel and mysql-libs I guess):
Upgrade to latest stable 3.1.1 (at the 28.07.2016)
#make config backup#
Code: [Select]
cp -rf /etc/postfix /etc/postfix_backup
#Install dependence (will need to build) #Code: [Select]
yum -y install MariaDB-shared MariaDB-devel cmake
# Removing unused parameter # Code: [Select]
sed -i '/^.*smtpd_bind_address.*$/d' /etc/postfix/master.cf
# Get latest Postfix #Code: [Select]
cd /tmp
wget http://cdn.postfix.johnriley.me/mirrors/postfix-release/official/postfix-3.1.1.tar.gz
tar -xf postfix-3.1.1.tar.gz
cd postfix-3.1.1
# Make makefile with mysql and install #Code: [Select]
make -f Makefile.init makefiles 'CCARGS=-DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/include/sasl -DUSE_SSL -I/usr/include/openssl/ -DUSE_CYRUS_SASL -DUSE_TLS' 'AUXLIBS_MYSQL=-L/usr/lib64/mysql/plugin -lmysqlclient -lz -lm -L/usr/lib64/sasl2/ -lsasl2 -lcrypto -L/usr/lib64/openssl/engines/ -lssl
make
sh postfix-install -non-interactive
Make forwarders works with SPF (SRS)
Code: [Select]
cd /tmp
wget https://github.com/roehling/postsrsd/archive/master.zip
unzip master.zip
cd postsrsd-master/
make
make install
chkconfig postsrsd on
# add required params for SPF+SRS #Code: [Select]
postconf -e "sender_canonical_maps = tcp:127.0.0.1:10001"
postconf -e "sender_canonical_classes = envelope_sender"
postconf -e "recipient_canonical_maps = tcp:127.0.0.1:10002"
postconf -e "recipient_canonical_classes = envelope_recipient"
/etc/init.d/postfix restart
/etc/init.d/postsrsd restart
If something went wrong
Code: [Select]
yum -y reinstall postfix
cp -rf /etc/postfix_backup /etc/postfix
18
Installation / MOVED: Different PHP version for each subdomain?
« on: February 14, 2016, 06:31:09 AM »19
Apache / MOVED: Activating gzip,mod_deflate and enabling caching on Apache
« on: December 11, 2015, 10:28:23 AM »22
DNS / MOVED: Bug detected - some ccTLDs doesn't work
« on: November 10, 2015, 07:09:44 AM »
This topic has been moved to CentOS-WebPanel Bugs.
http://forum.centos-webpanel.com/index.php?topic=1449.0
http://forum.centos-webpanel.com/index.php?topic=1449.0
23
CentOS 6 Problems / MOVED: Ajax base File Manager with Zip & Unzip like CPanel File Manager
« on: October 15, 2015, 11:39:07 AM »25
CentOS-WebPanel Bugs / Suexec does not work by default
« on: January 27, 2015, 01:06:25 PM »
Hello.
First of all, sorry for my english...
Suexec does not work by default , because it was compilled for user "www" (why?) and for docroot "/usr/local/apache/htdocs"
# /usr/local/apache/bin/suexec -V
-D AP_DOC_ROOT="/usr/local/apache/htdocs"
-D AP_GID_MIN=100
-D AP_HTTPD_USER="www"
-D AP_LOG_EXEC="/usr/local/apache/logs/suexec_log"
-D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
-D AP_UID_MIN=100
-D AP_USERDIR_SUFFIX="public_html"
#
This is really trouble.
CWP version: 0.9.7
P.S. Also SELinux disabled by default, it's not cool.
First of all, sorry for my english...
Suexec does not work by default , because it was compilled for user "www" (why?) and for docroot "/usr/local/apache/htdocs"
# /usr/local/apache/bin/suexec -V
-D AP_DOC_ROOT="/usr/local/apache/htdocs"
-D AP_GID_MIN=100
-D AP_HTTPD_USER="www"
-D AP_LOG_EXEC="/usr/local/apache/logs/suexec_log"
-D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
-D AP_UID_MIN=100
-D AP_USERDIR_SUFFIX="public_html"
#
This is really trouble.
CWP version: 0.9.7
P.S. Also SELinux disabled by default, it's not cool.
Pages: 1 [2]