Attachment 'mpo_postmap.txt'
Download 1 # Content of postmap_command script.
2
3 #!/bin/bash
4
5 umask 0002
6 LMTP=/opt/mailman/mailman-bundler/var/data/postfix_lmtp
7 XLMTP=/opt/mailman/mailman-bundler/var/data/postfix_xlmtp
8 VMAP=/opt/mailman/mailman-bundler/var/data/postfix_vmap
9 DOM=/opt/mailman/mailman-bundler/var/data/postfix_domains
10 XDOM=/opt/mailman/mailman-bundler/var/data/postfix_xdomains
11
12 if [[ $1 =~ postfix_lmtp$ ]] ; then
13 sed < $LMTP > $XLMTP -e 's/@python.org/@x.python.org/'
14 sed < $LMTP > $VMAP -r -e 's/(^[^ ]*)@python.org( *).*/\1@python.org\2\1@x.python.org/'
15 /usr/sbin/postmap $XLMTP
16 /usr/sbin/postmap $VMAP
17 elif [[ $1 =~ postfix_domains$ ]] ; then
18 sed < $DOM > $XDOM -e 's/^python.org/x.python.org/'
19 /usr/sbin/postmap $XDOM
20 else
21 /usr/sbin/postmap $1
22 fi
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.