Giter Club home page Giter Club logo

Comments (13)

raphink avatar raphink commented on September 25, 2024

Can you launch with --debug and post the Augeas debug information please?

from puppet-postfix.

mimmus avatar mimmus commented on September 25, 2024

augeas-debug.txt

from puppet-postfix.

raphink avatar raphink commented on September 25, 2024

Thank you. The important part here will be:

Debug: Augeas[Postfix virtual - @$mydomain](provider=augeas): sending command 'set' with params ["/files/etc/postfix/virtual/pattern[. = '@$mydomain']", "@$mydomain"]
Debug: Augeas[Postfix virtual - @$mydomain](provider=augeas): sending command 'set' with params ["/files/etc/postfix/virtual/pattern[. = '@$mydomain']/destination", "root"]
Debug: Augeas[Postfix virtual - @$mydomain](provider=augeas): Put failed on one or more files, output from /augeas//error:
Debug: Augeas[Postfix virtual - @$mydomain](provider=augeas): /augeas/files/etc/postfix/virtual/error = put_failed
Debug: Augeas[Postfix virtual - @$mydomain](provider=augeas): /augeas/files/etc/postfix/virtual/error/path = /files/etc/postfix/virtual
Debug: Augeas[Postfix virtual - @$mydomain](provider=augeas): /augeas/files/etc/postfix/virtual/error/lens = /usr/share/augeas/lenses/dist/postfix_virtual.aug:51.10-.47:
Debug: Augeas[Postfix virtual - @$mydomain](provider=augeas): /augeas/files/etc/postfix/virtual/error/message = Malformed child node 'pattern'

Can you show what your /etc/postfix/virtual file looks like please?

from puppet-postfix.

raphink avatar raphink commented on September 25, 2024

@$mydomain is not valid as a pattern as far as the lens is concerned (because of the $).

The lens accepts patterns matching /[A-Za-z0-9@\*.+=-]+/ only.

Should it be valid?

from puppet-postfix.

mimmus avatar mimmus commented on September 25, 2024

This is the default /etc/postfix/virtual, only commented lines:
postfix-virtual.txt

Yes, it is valid:
http://www.postfix.org/postconf.5.html#myorigin
I'm currently using it on all servers.

from puppet-postfix.

raphink avatar raphink commented on September 25, 2024

I don't see where it says that @$mydomain is valid as a pattern in virtual. Can you be more specific?

from puppet-postfix.

mimmus avatar mimmus commented on September 25, 2024

No, not in virtual, I use it in main.cf

from puppet-postfix.

raphink avatar raphink commented on September 25, 2024

But this issue is about using @$mydomain in /etc/postfix/virtual.

from puppet-postfix.

mimmus avatar mimmus commented on September 25, 2024

No; I started form a fresh install of OS and I applied config:

inet_interfaces: loopback-only
mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin: $mydomain
relayhost: smtp.cervedgroup.com
satellite: true

getting error above

from puppet-postfix.

raphink avatar raphink commented on September 25, 2024

OK, that's because https://github.com/camptocamp/puppet-postfix/blob/master/manifests/satellite.pp#L39 creates a virtual entry from $myorigin:

  postfix::virtual { "@${postfix::myorigin}":
    ensure      => 'present',
    destination => 'root',
  }

and since you used $mydomain as the value for $myorigin, that fails.

from puppet-postfix.

mimmus avatar mimmus commented on September 25, 2024

OK, I switched to:
mta: true
satellite: false
and it works flawlessy.

Thank you

from puppet-postfix.

raphink avatar raphink commented on September 25, 2024

So shall I mark this as a question and close?

from puppet-postfix.

mimmus avatar mimmus commented on September 25, 2024

For me, OK. Unless you want to indagate furtherly.

Thank you very much

from puppet-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.