~ubuntu-branches/ubuntu/natty/exim4/natty

« back to all changes in this revision

Viewing changes to debian/exim4-config.config

  • Committer: Bazaar Package Importer
  • Author(s): Thierry Carrez
  • Date: 2009-05-13 12:15:29 UTC
  • mfrom: (2.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090513121529-bsu2n2jtqh3trou8
Tags: 4.69-11ubuntu1
* Merge from debian unstable (LP: #375923), remaining changes:
  - debian/patches/71_exiq_grep_error_on_messages_without_size.dpatch:
    Improve handling of broken messages when "exim4 -bp" (mailq) reports
    lines without size info

Show diffs side-by-side

added added

removed removed

Lines of Context:
132
132
        #    local_domains = <; 172.16.0.0/12; 3ffe:ffff:836f::/48
133
133
# e.g: 'localhost : 172.16.0.1 :3ffe::ffff::836f::::: foo.org'
134
134
#       ===> ' localhost : 172.16.0.1 : 3ffe�ffff�836f�� : foo.org '
135
 
alias coloncolon2oe="sed -e 's/[[:blank:]]*//g' -e '/^</d' -e 's/:::::/:��/g' -e 's/::::/��/g' -e 's/:::/:�/g' -e 's/::/�/g' -e 's/:/ : /g' -e 's/^/ /' -e 's/$/ /'"
 
135
alias coloncolon2oe="env -u LC_ALL LC_CTYPE=C sed -e 's/[[:blank:]]*//g' -e '/^</d' -e 's/:::::/:��/g' -e 's/::::/��/g' -e 's/:::/:�/g' -e 's/::/�/g' -e 's/:/ : /g' -e 's/^/ /' -e 's/$/ /'"
136
136
 
137
137
# try to parse exim3 configuration file - works only if it was generated
138
138
# with eximconfig.
144
144
        # if they exist, ie. parse list, and remove "127.0.0.1", "::::1"
145
145
        # and "localhost" from it.
146
146
        #
147
 
        dc_relay_nets="$(cat $1 | grep -h '^host_accept_relay[[:blank:]]*=' | sed -e 's/^host_accept_relay[[:blank:]]*=//' | coloncolon2oe | sed -e 's/ 127\.0\.0\\.1 //g' -e 's/ localhost //g' -e 's/ ��1//g' -e 's/[[:blank:]]*//g' -e 's/::/:/g' -e 's/^://' -e 's/:$//' -e 's/�/::/g')"
 
147
        dc_relay_nets="$(cat $1 | grep -h '^host_accept_relay[[:blank:]]*=' | sed -e 's/^host_accept_relay[[:blank:]]*=//' | coloncolon2oe | env -u LC_ALL LC_CTYPE=C sed -e 's/ 127\.0\.0\\.1 //g' -e 's/ localhost //g' -e 's/ ��1//g' -e 's/[[:blank:]]*//g' -e 's/::/:/g' -e 's/^://' -e 's/:$//' -e 's/�/::/g')"
148
148
 
149
149
        # 'local_domains = $colonhostnames', including mailname and "localhost"
150
150
        #
151
 
        dc_other_hostnames="$(cat $1 | grep -h '^local_domains[[:blank:]]*=' | sed -e 's/^local_domains[[:blank:]]*=//' | coloncolon2oe | sed -e 's/ localhost //g' -e "s/ ${dc_mailname} //g" -e 's/[[:blank:]]*//g' -e 's/::/:/g' -e 's/^://' -e 's/:$//' -e 's/�/::/g')"
 
151
        dc_other_hostnames="$(cat $1 | grep -h '^local_domains[[:blank:]]*=' | sed -e 's/^local_domains[[:blank:]]*=//' | coloncolon2oe | env -u LC_ALL LC_CTYPE=C sed -e 's/ localhost //g' -e "s/ ${dc_mailname} //g" -e 's/[[:blank:]]*//g' -e 's/::/:/g' -e 's/^://' -e 's/:$//' -e 's/�/::/g')"
152
152
 
153
153
        # relay_domains = some.domain
154
154
        dc_relay_domains="$(cat $1 | grep -h '^relay_domains = ' | sed -e 's/^relay_domains[[:blank:]]*=[[:blank:]]*//' -e 's/[[:blank:]]*$//')"