handling custom Postfix config template not working

Discussion in 'Installation/Configuration' started by F L, May 1, 2022.

  1. F L

    F L New Member

    I have setup opendmarc to run daily the aggregate reports, it works perfect
    but every time I change some thing on the ispconfig3 control panel,
    it will restore the postfix main.cf to ispconfig defaults,
    I did follow the https://www.howtoforge.com/communit...-for-custom-postfix-and-dovecot-config.86559/
    and after creating a custom config file at:
    /usr/local/ispconfig/server/conf-custom/install/postfix_custom.conf.master
    first I add just the custom lines for Postfix in /usr/local/ispconfig/server/conf-custom/install/postfix_custom.conf.master
    then I tried the whole file main.cf modified to the template /usr/local/ispconfig/server/conf-custom/install/postfix_custom.conf.master
    and both templates fail

    Am I missing something?

    Running Ubuntu 20.04
    ISPConfig 3.2.8p1

    Thanks
     
  2. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    A few settings are hard coded in the server plugin, what is it you are changing?

    Fwiw you can just configure rspamd to send those reports, no need for opendmarc for just that.
     
  3. F L

    F L New Member

    well I need to add/change the following:

    Code:
    smtpd_milters = local:opendkim/opendkim.sock,local:opendmarc/opendmarc.sock,inet:localhost:11332
    non_smtpd_milters = $smtpd_milters,inet:localhost:11332
    the only reason I installed opendkim also, it is for Verification I knew that rspmad and/or amavis handles DKIM signing and the verification I wasn't sure, because I couldn't find it on the mail logs
    but besides that I tried to setup rspmad, couldn't get it right, maybe I did not find the right information how to do so

    Thanks for your help
     
    Last edited: May 2, 2022
  4. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    Rspamd puts dmarc and dkim results in authentication-results (and arc) headers, as well as in rspamd.log.
     
  5. F L

    F L New Member

    thanks for the info,
    could you direct me to where I can find more info how to get the rspamd to handle the reports?
    or if is not too much to ask how to do this?
    thanks again
     
  6. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    Indeed these are two that are set in the server plugin called from the server_update event:
    Code:
    $ grep milters server/plugins-available/postfix_server_plugin.inc.php 
                            exec("postconf -e 'smtpd_milters = inet:localhost:11332'");
                            exec("postconf -e 'non_smtpd_milters = inet:localhost:11332'");
                            exec("postconf -X 'smtpd_milters'");
                            exec("postconf -X 'non_smtpd_milters'");
    
    There currently is no way provided to override that behavior.

    The documentation is https://rspamd.com/doc/modules/dmarc.html#reporting on what to put in your local.d/dmarc.conf.
     
  7. F L

    F L New Member

    I got it,
    do I need to add/change/conf Redis?
    or just update/create the
    dmarc.conf
    thanks again
     
  8. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    No.
    Create the dmarc.conf file and a cron job to send the reports.
     
  9. F L

    F L New Member

    thanks
     
  10. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    One suggestion, you will want to setup a noreply type account to be the sender of your dmarc reports, as (depending on the size of your email userbase) it will receive a tremendous number of bounces.
     
  11. F L

    F L New Member

    I noticed,

    I really appreciate your time and help on tis matter

    thanks again
     
    Last edited: May 3, 2022

Share This Page