Any way to disable rspamd and clamav completely in mailcow. We are using a relay in front of mailcow that does spam and virus checking and we have no need to have mailcow perform the same functions and further complicate things.

Thanks

  • diekuh

    • Community Hero
    • volunteer
    Moolevel 110

SKIP_CLAMD in mailcow.conf.

Rspamd: No. It is part of mailcow and the UI. If you don’t care, you need to comment the milter and disable Postscreen. Make sure to check for other rules I might have forgotten.

Have something to say?

Join the community by quickly registering to participate in this discussion. We'd like to see you joining our great moo-community!

Do you mean comment out the following in data/conf/postfix/main.cf:

smtpd_milters = inet:rspamd:9900
non_smtpd_milters = inet:rspamd:9900

and every entry that starts with:

postscreen_

  • diekuh

    • Community Hero
    • volunteer
    Moolevel 110

Disable Postscreen completely. There might be more to do than just commenting these parameters. Check the Postfix docs about Postscreen, disable the milters and remove dependent services or parameters etc.
That’s something I cannot help with without remote hands and some time + testing.

I don’t encourage this and don’t recommend anyone to do this.

It looks like setting the following in data/conf/postfix/master.cf should do the trick for disabling postscreen:

# === LINES BELOW POSTSCREEN DISABLED ===
smtp       inet  n       -       -       -       -       smtpd
#smtp       inet  n       -       n       -       1       postscreen
#smtpd      pass  -       -       n       -       -       smtpd
# === LINES ABOVE POSTSCREEN DISABLED ===
#
# LINES BELOW POSTSCREEN ENABLED ===
#smtp       inet  n       -       n       -       1       postscreen
#smtpd      pass  -       -       n       -       -       smtpd
# LINES ABOVE POSTSCREEN ENABLED ===

and setting the following in data/conf/postfix/main.cf should do the trick for disabling rspamd:

#smtpd_milters = inet:rspamd:9900
#non_smtpd_milters = inet:rspamd:9900
#milter_mail_macros = i {mail_addr} {client_addr} {client_name} {auth_authen}

preliminary tests show that e-mail is flowing in/out.

Would upgrades overwrite these changes?

  • diekuh

    • Community Hero
    • volunteer
    Moolevel 110

Perhaps. It is not supported. You should use the extra.cf file.

The extra.cf file is not going to do much for the master.cf file right?

  • diekuh

    • Community Hero
    • volunteer
    Moolevel 110

Nothing indeed.
We will not change Postscreen, so there should never be conflicts. 🙂

No one is typing