Giter Site home page Giter Site logo

Comments (7)

svanharmelen avatar svanharmelen commented on July 17, 2024

That more of less makes sense if you ask me. As smtp_sasl_auth_enable also needs to end up with yes in your main.cf. And for that to happen you indeed need to set/override it to yes

from postfix.

CloCkWeRX avatar CloCkWeRX commented on July 17, 2024

Let me put it another way, if you don't explicitly set smtp_sasl_auth_enable or set it to 'no'; what is the expected behaviour? Right now; the behaviour is You must supply a name when declaring a template resource and the recipe fails to cook.

from postfix.

svanharmelen avatar svanharmelen commented on July 17, 2024

Well... Personally I don't see why you would want to include the sasl_auth recipe in a nodes runlist, while not having configured the accompanying attributes accordingly.

Of course there could (and maybe should) be a check/guard around the recipe that checks if you are trying to configure your postfix to use sasl auth (e.g. you have smtp_sasl_auth_enable=yes in your main.cf by setting the attribute accordingly), and if not will skip the defined resources.

But still it wouldn't make much sense to call the sasl_auth recipe if you don't enable sasl auth for postfix in your main.cf... Then why run the recipe in the first place?

Or am I totally missing something here? Not a postfix guru, so maybe you know something I don't?

from postfix.

billmoritz avatar billmoritz commented on July 17, 2024

The following code in a wrapper cookbook will cause this error:

node.set['postfix']['main']['smtp_sasl_auth_enable'] = "yes"
include_recipe "postfix"

from postfix.

chrissnell avatar chrissnell commented on July 17, 2024

This bit me, too. The only way I could get it to compile is to set the node.postfix.sasl_password_file attribute in my wrapper cookbook:

default['postfix']['sasl_password_file'] = "#{node['postfix']['conf_dir']}/sasl_passwd"

This cookbook used to work in my old hosted chef repo. Not sure what's going on now.

from postfix.

chasebolt avatar chasebolt commented on July 17, 2024

ive done several testing and this issue looks to be resolved by commit 489bfaa, @CloCkWeRX please close this.

from postfix.

tas50 avatar tas50 commented on July 17, 2024

Closing this out since @chasebolt reports it has been fixed

from postfix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.