Cómo instalar postsrsd en Centos 7.x

Fuente (en alemán): https://dokuwiki.nausch.org/doku.php/centos:mail_c7:spam_11

Instalar el repositorio para Centos:

wget http://repo.mailserver.guru/7/os/x86_64/mailserver.guru-7-2.noarch.rpm
rpm -i mailserver.guru-7-2.noarch.rpm

Se instalará el siguiente fichero:

cat /etc/yum.repos.d/mailserver.guru.repo
# Repository mailserver.guru
[mailserver.guru-os]
name=Extra (Mailserver-)Packages for Enterprise Linux 7 - $basearch
baseurl=http://repo.mailserver.guru/7/os/$basearch
#priority=5
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/MAILSERVER.GURU-RPM-GPG-KEY-CentOS-7


[mailserver.guru-testing]
name=Testing (Mailserver-)Packages for Enterprise Linux 7 - $basearch
baseurl=http://repo.mailserver.guru/7/testing/$basearch/
#priority=5
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/MAILSERVER.GURU-RPM-GPG-KEY-CentOS-7

Instalar postSRSd

yum install postsrsd

Al instalar salen algunos avisos pero termina instalado:

[root@jorgearce log]# yum info postsrsd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * webtatic: uk.repo.webtatic.com
Installed Packages
Name        : postsrsd
Arch        : x86_64
Version     : 1.2
Release     : 1.el7.centos
Size        : 45 k
Repo        : installed
From repo   : mailserver.guru-os
Summary     : PostSRSd provides the Sender Rewriting Scheme (SRS) via TCP-based lookup tables for Postfix.
URL         : https://github.com/roehling/postsrsd/archive/1.2.tar.gz
License     : GPL
Description : PostSRSd provides the Sender Rewriting Scheme (SRS) via TCP-based
            : lookup tables for Postfix. SRS is needed if your mail server acts
            : as forwarder.

Editar /etc/postfix/main.cf y añadir las siguientes cuatro líneas:

sender_canonical_maps = tcp:127.0.0.1:10001
sender_canonical_classes = envelope_sender
recipient_canonical_maps = tcp:127.0.0.1:10002
recipient_canonical_classes= envelope_recipient

Arrancar el servicio:

systemctl start postsrsd

Comprobar el estado:

[root@localhost ]# systemctl status postsrsd
● postsrsd.service - PostSRSd Daemon
   Loaded: loaded (/usr/lib/systemd/system/postsrsd.service; disabled; vendor preset: disabled)
   Active: active (running) since Thu 2016-10-13 22:29:08 CEST; 4s ago
 Main PID: 26783 (postsrsd)
   CGroup: /system.slice/postsrsd.service
           └─26783 /usr/sbin/postsrsd -f10001 -r10002 -dlocalhost -s/etc/postsrsd.secret -unobody -c/var/lib/postsrsd -X

Oct 13 22:29:08 localhost systemd[1]: Started PostSRSd Daemon.
Oct 13 22:29:08 localhost systemd[1]: Starting PostSRSd Daemon...

Comprobar logs (/var/log/messages).

Habilitar el servicio para que se arranque automáticamente:

systemctl enable postsrsd.service

Deja un comentario

El código HTML se muestra como texto y las direcciones web se transforman automáticamente.

Arriba