SMTP proxy cannot relay primary mail domain

I need a spam filter for my mail server (not netserver) With only 4 domains. When I try to add relay on the mail server there is an error.

The mail-server module is incompatible with the smtp proxy role, as the error message states.

You have to remove it:

 yum --noplugins remove nethserver-mail2-server
 signal-event nethserver-mail2-common-update

yum --noplugins remove nethserver-mail2-server

No Match for argument: nethserver-mail2-server
No Packages marked for removal
15:14:44 root@es jobs:0 cmd:786 /root

signal-event nethserver-mail2-common-update

15:14:52 root@es jobs:0 cmd:787 /root

Was it nethserver-mail-server?

Maybe when that was installed as an experiment, but was not used.
Now I just need the SMTP filter. Want to combine with the gateway. Now as a filter Scrollout f1.

Deleted all mail modules. Re-installed SMTP proxy 2 but the setup menu no.

No one can tell you how to put down just the spam filter? Or it works, actually, just it is necessary to reinstall system anew and to slip a backup of settings?

Hi @kelevra, I don’t understand what are your currently installed RPMs; Please paste here the output of

 rpm -qa | grep nethserver

At the moment are, since I restored the system after missing all settings:
nethserver-release-7-5.ns7.noarch
nethserver-httpd-admin-2.0.14-1.ns7.noarch
nethserver-unbound-1.1.0-1.ns7.noarch
nethserver-collectd-3.0.6-1.ns7.noarch
nethserver-lang-en-1.2.7-1.ns7.noarch
nethserver-mail2-common-2.0.0-1.ns7.noarch
nethserver-backup-data-1.3.2-1.ns7.noarch
nethserver-net-snmp-1.1.0-1.ns7.noarch
nethserver-smartd-1.1.0-1.ns7.noarch
nethserver-hosts-1.2.2-1.ns7.noarch
nethserver-httpd-proxypass-3.1.4-1.ns7.noarch
nethserver-php-1.2.0-1.ns7.noarch
nethserver-lsm-1.2.3-1.ns7.noarch
nethserver-openssh-1.2.1-1.ns7.noarch
nethserver-firewall-base-3.3.1-1.ns7.noarch
nethserver-vsftpd-1.1.0-1.ns7.noarch
nethserver-backup-config-2.0.4-1.ns7.noarch
nethserver-lib-2.2.6-1.ns7.noarch
nethserver-nut-1.3.1-1.ns7.noarch
nethserver-ntopng-2.1.0-1.ns7.noarch
nethserver-diagtools-1.0.1-1.ns7.noarch
nethserver-duc-1.4.3-1.ns7.noarch
nethserver-sssd-1.3.6-1.ns7.noarch
nethserver-nethforge-release-7-0.3.ns7.noarch
nethserver-base-3.1.2-1.ns7.noarch
nethserver-phonehome-1.3.0-1.ns7.noarch
nethserver-rh-php56-php-fpm-1.0.0-1.ns7.noarch
nethserver-openvpn-1.6.7-1.ns7.noarch
nethserver-antivirus-1.2.1-1.ns7.noarch
nethserver-mail-smarthost-1.0.0-1.ns7.noarch
nethserver-pulledpork-2.1.2-1.ns7.noarch
nethserver-ntp-1.1.3-1.ns7.noarch
nethserver-ndpi-1.1.1-1.ns7.noarch
nethserver-dnsmasq-1.6.6-1.ns7.noarch
nethserver-lang-ru-1.2.7-1.ns7.noarch
nethserver-cgp-2.1.3-1.ns7.noarch
nethserver-httpd-3.1.4-1.ns7.noarch
nethserver-mysql-1.1.3-1.ns7.noarch
nethserver-firewall-base-ui-3.3.1-1.ns7.noarch
nethserver-restore-data-1.2.3-1.ns7.noarch
nethserver-virtualhosts-1.0.5-1.ns7.noarch
nethserver-yum-1.4.1-1.ns7.noarch
nethserver-letsencrypt-1.1.4-1.ns7.noarch

Try to install SMTP proxy 2 (beta) from software center.

Alternative (equivalent) commands

yum install @nethserver-smtp-proxy2

Or

yum install nethserver-mail2-filter nethserver-firewall-base-ui

The same error.
https://community.nethserver.org/uploads/db8506/original/2X/7/7df072a60b2822945c9e1209786aada00950a5f8.png
Just need a filter that’s going straight on the main server, and the server only sends through him. Mail is not needed.

1 Like

I think you’ve found a #bug due to my commit here

Possible workaround is: change the system domain suffix, or edit the PHP file and comment the validate() function to disable the domain name validation.

The primary domain relaying should be forbidden only if the mail-server module is installed: that’s not your case!

1 Like

The bug fix is available from nethserver-testing repo for nethserver-mail-common package. That means Email 2 module fix is still not available: will be released once the issue is verified. /cc @kelevra @quality_team

yum --enablerepo=nethserver-testing update nethserver-mail-common