Results 1 to 10 of 13

Thread: 8.0.0 Main.cf not persistent after postfix reload

Hybrid View

  1. #1
    Join Date
    Sep 2011
    Location
    San Gabriel, CA
    Posts
    9
    Rep Power
    4

    Default 8.0.0 Main.cf not persistent after postfix reload

    I used the Outgoing SMTP Authentication wiki to configure my 7.1 Zimbra to use smtp.yahoo.com, and it would continue to work after restarts. I have since upgraded to 8.0.0 and I followed the same wiki, because the changes are not cross upgrade persistent, but now the changes won't stay after doing the postfix reload step.

    Should I be configuring this a different way?

  2. #2
    Join Date
    Aug 2012
    Location
    Germany
    Posts
    9
    Rep Power
    3

    Default

    Instead of using the postconf -e commands (for Zimbra will overwwrite the postfix main.cf at start), change the zmconfigd.cf as follows:
    zmlocalconfig -e postconf_smtp_sasl_password_maps=hash:/opt/zimbra/conf/relay_password
    zmlocalconfig -e postconf_smtp_sasl_auth_enable=yes
    zmlocalconfig -e postconf_smtp_cname_overrides_servername=no
    zmlocalconfig -e postconf_smtp_use_tls=yes
    zmlocalconfig -e postfix_smtp_sasl_security_options=noanonymous // Depending on your requirement

    Quote Originally Posted by rcjokibbe View Post
    I used the Outgoing SMTP Authentication wiki to configure my 7.1 Zimbra to use smtp.yahoo.com, and it would continue to work after restarts. I have since upgraded to 8.0.0 and I followed the same wiki, because the changes are not cross upgrade persistent, but now the changes won't stay after doing the postfix reload step.

    Should I be configuring this a different way?

  3. #3
    Join Date
    Sep 2011
    Location
    San Gabriel, CA
    Posts
    9
    Rep Power
    4

    Default

    Thank you for your help. It appears that the zmlocalconfig -e postconf_smtp_sasl_auth_enable=yes does not edit the main.cf file. That line continues to have a value of no. I have to enter postconf -e smtp_sasl_auth_enable=yes to change it.

  4. #4
    Join Date
    Aug 2012
    Location
    Germany
    Posts
    9
    Rep Power
    3

    Default

    Indeed, this command won't edit the main.cf of Postfix, but instead the zmconfigd.cf of Zimbra. And there are some rewrite rules, which overwrites the Postfix main.cf at each mta reload.
    You can edit the zmconfigd.cf manually. Look for the "SECTION mta DEPENDS amavis", there are several POSTCONF rules. Find the corresponding entries, as I wrote above, and change them for your need. Maybe I had a slight mistake with the zmlocalconfig commands, but edit manually should do the trick.

    Edit says:
    Of course, my fault:
    zmlocalconfig -e postfix_smtp_sasl_password_maps=hash:/opt/zimbra/conf/relay_password
    zmlocalconfig -e postfix_smtp_sasl_auth_enable=yes
    zmlocalconfig -e postfix_smtp_cname_overrides_servername=no
    zmlocalconfig -e postfix_smtp_use_tls=yes
    zmlocalconfig -e postfix_smtp_sasl_security_options=noanonymous // Depending on your requirement

    The keys have a preceding postfix_ not a preceding postconf_ if you you use the zmlocalconfig.
    Last edited by thopu; 09-18-2012 at 12:09 AM.

  5. #5
    Join Date
    Sep 2011
    Location
    San Gabriel, CA
    Posts
    9
    Rep Power
    4

    Default

    Happy day. Using postfix in the command made it persistent. I had read the first part of your reply, to edit the zmconfigd.cf file directly, but I didn't undertand that files layout and where to put the values (I didn't see values for other entries either), so I read the rest of your post and glad to see it was a typo with the zmlocalconfig commands. Thank you for your help.

  6. #6
    Join Date
    Aug 2012
    Location
    Germany
    Posts
    9
    Rep Power
    3

    Default

    Your welcome. After all, it was my fault in the first place, why you had to take another run.

  7. #7
    Join Date
    Oct 2011
    Posts
    54
    Rep Power
    3

    Default

    Quote Originally Posted by rcjokibbe View Post
    Happy day. Using postfix in the command made it persistent. I had read the first part of your reply, to edit the zmconfigd.cf file directly, but I didn't undertand that files layout and where to put the values (I didn't see values for other entries either), so I read the rest of your post and glad to see it was a typo with the zmlocalconfig commands. Thank you for your help.
    Did it solved your problem ?

  8. #8
    Join Date
    Oct 2011
    Posts
    54
    Rep Power
    3

    Default

    Quote Originally Posted by thopu View Post
    Indeed, this command won't edit the main.cf of Postfix, but instead the zmconfigd.cf of Zimbra. And there are some rewrite rules, which overwrites the Postfix main.cf at each mta reload.
    You can edit the zmconfigd.cf manually. Look for the "SECTION mta DEPENDS amavis", there are several POSTCONF rules. Find the corresponding entries, as I wrote above, and change them for your need. Maybe I had a slight mistake with the zmlocalconfig commands, but edit manually should do the trick.

    Edit says:
    Of course, my fault:
    zmlocalconfig -e postfix_smtp_sasl_password_maps=hash:/opt/zimbra/conf/relay_password
    zmlocalconfig -e postfix_smtp_sasl_auth_enable=yes
    zmlocalconfig -e postfix_smtp_cname_overrides_servername=no
    zmlocalconfig -e postfix_smtp_use_tls=yes
    zmlocalconfig -e postfix_smtp_sasl_security_options=noanonymous // Depending on your requirement

    The keys have a preceding postfix_ not a preceding postconf_ if you you use the zmlocalconfig.
    this solved my problem, thank you (before I get ban )

  9. #9
    Join Date
    Aug 2012
    Location
    Germany
    Posts
    9
    Rep Power
    3

    Default

    As quanah pointed out, never edit the zmconfigd.cf directly. But as embarrassed I am to suggest this solution at first, as glad am I that my edit with the correct solution helped you out. You're welcome.

Similar Threads

  1. Entry to make persistent in main.cf
    By blason in forum Administrators
    Replies: 0
    Last Post: 12-22-2011, 10:56 AM
  2. Postfix main.cf error
    By hmsdh in forum Administrators
    Replies: 1
    Last Post: 04-06-2011, 05:59 AM
  3. [SOLVED] Postfix main.cf overwrite
    By InfoAddict in forum Administrators
    Replies: 2
    Last Post: 05-01-2008, 05:05 PM
  4. postfix reload error
    By yysiow in forum Administrators
    Replies: 2
    Last Post: 06-15-2007, 11:40 PM

Posting Permissions

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