Results 1 to 3 of 3

Thread: How best to make changes to postfix ?

  1. #1
    Join Date
    Oct 2009
    Location
    Dublin, IRELAND
    Posts
    712
    Rep Power
    7

    Default How best to make changes to postfix ?

    I have a number of settings I need to add to the main.cf file each time I upgrade zimbra. Mostly they relate to TLS verification of email - both inbound and outbound.

    What is the most automated way possible to do this.


    smtp_tls_security_level = may
    smtp_tls_policy_maps = hash:/etc/zimbra_tls_policy
    smtp_tls_note_starttls_offer = yes
    smtp_tls_loglevel = 1
    smtp_tls_CApath = /etc/postfixCAcerts
    smtp_tls_cert_file = /opt/zimbra/conf/smtpd.crt
    smtp_tls_key_file = /opt/zimbra/conf/smtpd.key
    smtpd_tls_received_header = yes
    smtpd_tls_CAfile = /etc/postfixCAcerts/Thawte_Server_CA.pem
    smtpd_tls_CApath = /etc/postfixCAcerts
    smtpd_restriction_classes = permitted_senders_list
    permitted_senders_list = check_sender_access hash:/etc/permitted_senders, reject


    Is there any hook provided at the end of the install/upgrade script to call a user script file ?

    For example - the very end of the zimbra install/upgrade script might be configured to look for a script file called

    /etc/zimbraPostUpgrade

    and if it finds it - to execute it. This would have to reside outside of /opt/zimbra so it would survive the upgrade, and would allow admins to automate a lot of the manual work that needs doing after an upgrade.

  2. #2
    Join Date
    Dec 2009
    Location
    Michigan
    Posts
    454
    Rep Power
    5

    Default

    What is the most automated way possible to do this.
    I was thinking that Postfix might have a #include directive, but found out in their FAQ this isn't the case

    8. Is there some kind of 'include' directive for main.cf?

    No. Most administrators with complex configurations create a Makefile that will cat the necessary files together. If you have other regular administrative tasks, add them to your Makefile too. Your Makefile can have an entry something like this:

    main.cf: file1 file2 file3
    cat file1 file2 file3 > main.cf.new
    mv main.cf.new main.cf

    Then type make main.cf to rebuild your configuration file.
    Doug
    Ben Franklin quote:

    "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."

  3. #3
    Join Date
    Oct 2009
    Location
    Dublin, IRELAND
    Posts
    712
    Rep Power
    7

    Default

    Thanks for the information

Similar Threads

  1. postdrop fail to create file after upgrade to 5.0.3
    By echoadisan in forum Installation
    Replies: 23
    Last Post: 07-15-2013, 04:02 PM
  2. Replies: 2
    Last Post: 11-15-2011, 12:03 PM
  3. Replies: 3
    Last Post: 11-03-2007, 11:55 PM
  4. Replies: 6
    Last Post: 12-05-2006, 01:54 PM
  5. new question about make Postfix 2.2.11
    By wildhuman in forum Developers
    Replies: 0
    Last Post: 08-25-2006, 03:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •