Kategori: postfix

Web & Teknik

How to make real files for postfix from mysql

# Virtual mailbox maps # tabort gamla filen mv /etc/postfix/mysql-virtual-mailbox-maps /etc/postfix/old-mysql-virtual-mailbox-maps # get users from database mysql -u mailadmin –password=password -e ”SELECT email FROM mail_postfix.virtual_users INTO OUTFILE ‘/tmp/mysql-virtual-mailbox-maps'” # flytta till postfix mv /tmp/mysql-virtual-mailbox-maps /etc/postfix/mysql-virtual-mailbox-maps # byt rättigheter chown root /etc/postfix/mysql-virtual-mailbox-maps chgrp root /etc/postfix/mysql-virtual-mailbox-maps chmod go-w /etc/postfix/mysql-virtual-mailbox-maps #fix file with sed sed -i ‘s/\(.*\)@\(.*\)/\1@\2 \2\/\1\//g’…
Läs mer

How to install a more recent postfix on centos 6

It is quite simple to install a more recent postfix version on centos 6. Just do: vi /etc/yum.repos.d/epel-postfix.repo [epel-postfix] name=Latest upstream Postfix 2.9.x and 2.10.x release for RHEL6 baseurl=http://repos.fedorapeople.org/repos/mstevens/postfix/epel-$releasever/$basearch/ enabled=1 skip_if_unavailable=1 gpgcheck=0 [epel-postfix-source] name=Latest upstream Postfix 2.9.x and 2.10.x release for RHEL6 – Source baseurl=http://repos.fedorapeople.org/repos/mstevens/postfix/epel-$releasever/SRPMS enabled=0 skip_if_unavailable=1 gpgcheck=0 Then do a regular yum update.