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



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to