Changeset 2424
- Timestamp:
- 10/23/08 20:37:40 (5 years ago)
- Location:
- alternc/trunk
- Files:
-
- 2 edited
- 2 copied
-
debian/alternc-slave.postinst (modified) (1 diff)
-
etc/alternc/postfix-slave.cf (copied) (copied from alternc/trunk/etc/alternc/postfix.cf) (1 diff)
-
etc/alternc/templates/postfix/myrelay.cf (copied) (copied from alternc/trunk/etc/alternc/templates/postfix/myvirtual.cf) (1 diff)
-
install/alternc.install (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
alternc/trunk/debian/alternc-slave.postinst
r2407 r2424 180 180 181 181 echo "running alternc.install" 182 alternc.install 182 alternc.install -s 183 183 ;; 184 184 -
alternc/trunk/etc/alternc/postfix-slave.cf
r2322 r2424 24 24 enable_sasl_authentification = yes 25 25 broken_sasl_auth_clients = yes 26 alias_maps = mysql:/etc/postfix/myalias.cf hash:/etc/aliases 27 virtual_maps = proxy:mysql:/etc/postfix/mydomain.cf 28 virtual_mailbox_maps = proxy:mysql:/etc/postfix/myvirtual.cf 29 virtual_mailbox_base = / 30 virtual_minimum_uid = 1000 31 virtual_gid_maps = proxy:mysql:/etc/postfix/mygid.cf 32 virtual_uid_maps = static:33 33 default_privs = www-data 26 alias_maps = hash:/etc/aliases 27 virtual_maps = 28 virtual_mailbox_maps = 29 virtual_mailbox_base = 30 virtual_gid_maps = 31 virtual_uid_maps = 32 default_privs = nobody 33 transport_maps=proxy:mysql:/etc/postfix/myrelay.cf 34 relay_domains=proxy:mysql:/etc/postfix/myrelay.cf 35 relay_recipients_map=proxy:mysql:/etc/postfix/myvirtual.cf 34 36 smtpd_recipient_restrictions = reject_unlisted_recipient, permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_recipient, reject_unauth_destination, check_policy_service inet:127.0.0.1:60000, reject_rbl_client zen.spamhaus.org -
alternc/trunk/etc/alternc/templates/postfix/myrelay.cf
r370 r2424 7 7 hosts =%%dbhost%% 8 8 dbname = %%dbname%% 9 table = mail_users 10 select_field = path 11 where_field = alias 9 table = mail_domain 10 # this should by %%primary_mx%% 11 select_field = relay:[%%mx%%] 12 where_field = mail 12 13 -
alternc/trunk/install/alternc.install
r2344 r2424 11 11 set -e 12 12 13 opts=`getopt "sf" $*` 14 if [ $? -ne 0 ]; then 15 echo invalid syntax: $? 16 fi 17 set -- $opts 18 for i; do 19 case "$i" in 20 -f|--force) 21 force=1; shift;; 22 -s|--slave) 23 slave=1; shift;; 24 --) 25 break;; 26 *) 27 echo "unknown option $i"; shift;; 28 esac 29 done 30 13 31 . /usr/lib/alternc/functions.sh 14 32 … … 33 51 fi 34 52 if [ -d /etc/postfix ]; then 35 CONFIG_FILES="$CONFIG_FILES etc/postfix/myalias.cf 53 CONFIG_FILES="$CONFIG_FILES etc/postfix/myalias.cf etc/postfix/myrelay.cf 36 54 etc/postfix/mydomain.cf etc/postfix/mygid.cf 37 55 etc/postfix/myvirtual.cf etc/postfix/sasl/smtpd.conf" … … 57 75 grep -v 'postfix/main.cf' | grep -v 'Uid differs'|grep -v 'Gid differs' |grep -v 'Mode differs' | 58 76 sed -e 's/^\([^:]*\).*/ \1/' | sort -u`" 77 # " shutup emacs 59 78 if [ ! -z "$CHANGED" ]; then 60 79 echo "The following configuration files has changed since last AlternC" … … 62 81 echo "$CHANGED" 63 82 echo "" 64 if [ "$ 1" = "force" ]; then83 if [ "$force" = "1" ]; then 65 84 echo "Replacing them as you requested." 66 85 else … … 247 266 248 267 # Attribute the correct rights to critical postfix files 249 if [ -e /etc/postfix/myalias.cf -o -e /etc/postfix/mydomain.cf -o -e /etc/postfix/mygid.cf -o -e /etc/postfix/myvirtual.cf ]; then268 if [ -e /etc/postfix/myalias.cf -o -e /etc/postfix/mydomain.cf -o -e /etc/postfix/mygid.cf -o -e /etc/postfix/myvirtual.cf -o -e /etc/postfix/myrelay.cf ]; then 250 269 chown root:postfix /etc/postfix/my* 251 270 chmod 640 /etc/postfix/my* 252 271 fi 253 272 254 # configure postfix appropriatly for our needs" 273 # configure postfix appropriatly for our needs 274 if [ "$slave" = "1" ]; then 275 postfix_conf=/etc/alternc/postfix-slave.cf 276 else 277 postfix_conf=/etc/alternc/postfix.cf 278 fi 255 279 while read line 256 280 do 257 281 postconf -e "$line" 258 done < /etc/alternc/postfix.cf 259 260 while read line 261 do 262 postconf -e "$line" 263 done <<EOF 264 myhostname = $FQDN 265 myorigin = $FQDN 266 EOF 282 done < $postfix_conf 267 283 268 284 if [ -e /etc/courier/authmysqlrc ] ; then
Note: See TracChangeset
for help on using the changeset viewer.
