Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
I
ISPConfig 3
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 483
    • Issues 483
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 25
    • Merge Requests 25
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ISPConfig
  • ISPConfig 3
  • Issues
  • #5627

Closed
Open
Opened Jun 02, 2020 by Tapio Lehtonen@Taleman

spamd: ispconfig did not write milter to postfix main.cf

short description

What is happening and what is wrong with that?

Replaced amavisd with rspamd following https://www.howtoforge.com/replacing-amavisd-with-rspamd-in-ispconfig/. No e-mails were handled by rspamd, because the milter lines in postfix/main.cf were missing. Looks like the /etc/postfix/main.cf file was not modified at all.

correct behaviour

What should happen instead?

This:

# diff /var/tmp/main.cf main.cf
89,90c89,90
< content_filter = amavis:[127.0.0.1]:10024
< receive_override_options = no_address_mappings
---
> ####content_filter = amavis:[127.0.0.1]:10024
> ####receive_override_options = no_address_mappings
91a92,97
> #Taleman added 2020-05-31
> smtpd_milters = inet:localhost:11332
> non_smtpd_milters = inet:localhost:11332
> milter_protocol = 6
> milter_mail_macros = i {mail_addr} {client_addr} {client_name} {auth_authen}
> milter_default_action = accept

environment

Server OS: Debian
Server OS version: Stretch 9.12 ISPConfig version: 3.1.15p3

If it might be related to the problem

insert the output of php -v here

# php -v
PHP 7.0.33-0+deb9u7 (cli) (built: Feb 16 2020 15:11:40) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.0.33-0+deb9u7, Copyright (c) 1999-2017, by Zend Technologies

references

Discussion on forum: https://www.howtoforge.com/community/threads/rspamd-ispconfig-did-not-write-milter-to-postfix-main-cf.84506/

Previously I installed rspamd on two other hosts, first was a single host system, second was ISPConfig multiserver setup but all services were on master except name service was on two name severs which were running only name service.

This third setup has e-mail server separate from the master. It may be the rspamd setup does not in this case write to the main.cf on the e-mail server host.

Edited Jun 02, 2020 by Tapio Lehtonen
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: ispconfig/ispconfig3#5627