Your message dated Sat, 18 Mar 2017 15:52:40 +0100
with message-id <[email protected]>
and subject line Closing
has caused the Debian Bug report #624867,
regarding augeas-lenses: postfix lens fails to parse master.cf using 
reinjection like 127.0.0.1:12025
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
624867: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=624867
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: augeas-lenses
Version: 0.7.2-1
Severity: minor

Hi,

we are using postfix reinjection after clamsmtp. We configuring master.cf with 
these lines:
127.0.0.1:12025 inet  n -       n       -       16      smtpd
    -o content_filter=
    -o 
receive_override_options=no_unknown_recipient_checks,no_header_body_checks
    -o smtpd_helo_restrictions=
    -o smtpd_client_restrictions=
    -o smtpd_sender_restrictions=
    -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -o mynetworks_style=host
    -o smtpd_authorized_xforward_hosts=127.0.0.0/8

If we are using augtool to implement this, saving failed. If we configure it by 
editing manually,
parsing file with augtool doesn't show master.cf ready for modifying, ...

I checked /usr/share/augeas/lenses/dist/postfix_master.aug and found a solution 
- please below patched file:

*** /usr/share/augeas/lenses/dist/postfix_master.aug    2010-06-25 
23:19:22.000000000 +0200
--- postfix_master.aug  2011-05-02 12:25:59.000000000 +0200
***************
*** 18,25 ****
  let comment    = Util.comment
  let empty      = Util.empty
  
! let word       = /[A-Za-z0-9_.-]+/
! let words      = /[A-Za-z0-9$(){}=!_.-][A-Za-z0-9$!(){} 
=\/_.-]*[A-Za-z0-9$!(){}=\/_.-]/
  
  let bool       = /y|n|-/
  let integer    = /([0-9]+|-)\??/
--- 18,26 ----
  let comment    = Util.comment
  let empty      = Util.empty
  
! 
! let word       = /[A-Za-z0-9_.\:-]+/
! let words      = /[A-Za-z0-9$(){}=!_.-][A-Za-z0-9$!(){} 
=\/_.,-]*[A-Za-z0-9$!(){}=\/_.-]/
  
  let bool       = /y|n|-/
  let integer    = /([0-9]+|-)\??/

In summary, a ':' and a ',' fixed the problem. Maybe the lense file could be 
enhanced with this?

Kind regards,
Andreas

-- System Information:
Debian Release: 6.0.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

-- no debconf information



--- End Message ---
--- Begin Message ---
This bug had been fixed even in oldstable. Closing.

--- End Message ---

Reply via email to