#!/bin/sh if [ -f ../access-double-ext ] ; then echo "ERROR: using of file ../access-double-ext deprecated" echo "ERROR: run gmake fix and see confYES in ../m4/conf.default" exit 1 fi if [ ! -z "`grep '\$acl_m7' ../site/*`" ] ; then echo "ERROR: variable \$acl_m7 deprecated" echo "ERROR: rename it to \$acl_m_avir_notification in files from ../site directory" exit 1 fi if [ ! -z "`grep '\$acl_m7' ../template.antivir_notification*`" ] ; then echo "ERROR: variable \$acl_m7 deprecated" echo "ERROR: rename it to \$acl_m_avir_notification in file(s) ../template.antivir_notification* or replaces them with samples from ../samples directory" exit 1 fi if [ ! -z "`grep '\$acl_m15' ../site/*`" ] ; then echo "ERROR: variable \$acl_m15 deprecated" echo "ERROR: rename it to \$acl_m_spam_action in files from ../site directory or see samples in ../samples/site directory" exit 1 fi if [ -f ../template.DSN ] ; then echo "ERROR: file ../template.DSN deprecated and must be removed" exit 1 fi if [ -f ../site/retry_rules ] ; then echo "ERROR: file ../site/retry_rules deprecated and must be renamed to site/configure.retry_rules" echo "ERROR: run gmake fix" exit 1 fi if [ -f ../site/rewrite_rules ] ; then echo "ERROR: file ../site/rewrite_rules deprecated and must be renamed to site/configure.rewrite_rules" echo "ERROR: run gmake fix" exit 1 fi if [ -f ../site/backup_smtp_mail.m4 ] ; then echo "ERROR: file ../site/backup_smtp_mail.m4 deprecated and must be renamed to site/configure.backup_smtp_mail.m4" echo "ERROR: run gmake fix" exit 1 fi if [ -f ../site/backup_smtp_rcpt.m4 ] ; then echo "ERROR: file ../site/backup_smtp_rcpt.m4 deprecated and must be renamed to site/configure.backup_smtp_rcpt.m4" echo "ERROR: run gmake fix" exit 1 fi if [ -f ../site/acl_smtp_data_before_accept.m4 ] ; then echo "ERROR: file ../site/acl_smtp_data_before_accept.m4 deprecated and must be renamed to site/configure.acl_smtp_data_before_accept.m4" echo "ERROR: run gmake fix" exit 1 fi if [ -f /var/spool/exim/db/proxycheck.db ] ; then echo "ERROR: open proxy checking is deprecated" echo "ERROR: run gmake fix to remove /var/spool/exim/db/proxycheck.db" exit 1 fi if [ -f ../skip_proxy_check ] ; then echo "ERROR: file ../skip_proxy_check deprecated" echo "ERROR: run gmake fix to remove it" exit 1 fi if [ -f ../skip_numeric_mailbox_check ] ; then echo "ERROR: using of file ../skip_numeric_mailbox_check deprecated" echo "ERROR: use ../access-mail instead (see example in samples/access-mail)" exit 1 fi if [ -f ../skip_rfc_ignorant ] ; then echo "ERROR: using of file ../skip_rfc_ignorant deprecated" echo "ERROR: run gmake fix" exit 1 fi if [ -f ../skip_rfc_ignorant_mail ] ; then echo "ERROR: using of file ../skip_rfc_ignorant_mail deprecated" echo "ERROR: run gmake fix" exit 1 fi if [ ! -z "`grep '^country_' ../access-relay`" ] ; then echo "ERROR: prefix 'country_' in ../access-relay is deprecated" echo "ERROR: you must remove it manually or run gmake fix" exit 1 fi if [ -f ../recipients_invalid ] ; then echo "ERROR: using of file ../recipients_invalid deprecated" echo "ERROR: use ../access-rcpt instead" exit 1 fi if [ -f ../antivir_notification.txt ] ; then echo "ERROR: file ../antivir_notification.txt must be renamed" echo "ERROR: run gmake fix" exit 1 fi if [ -f ../antivir_notification_plain.txt ] ; then echo "ERROR: file ../antivir_notification_plain.txt must be renamed" echo "ERROR: run gmake fix" exit 1 fi if [ -f ../bounce-message.template ] ; then echo "ERROR: file ../bounce-message.template must be renamed" echo "ERROR: run gmake fix" exit 1 fi if [ -f ../warning-message.template ] ; then echo "ERROR: file ../warning-message.template must be renamed" echo "ERROR: run gmake fix" exit 1 fi if [ -f ../DSN.txt ] ; then echo "ERROR: file ../DSN.txt must be renamed" echo "ERROR: run gmake fix" exit 1 fi if [ -f /usr/local/etc/exim/site/configure.general ] && [ ! -z "`grep bounce-message.template /usr/local/etc/exim/site/configure.general`" ] ; then echo "ERROR: file ../bounce-message.template deprecated" echo "ERROR: replace bounce-message.template with template.bounce-message in /usr/local/etc/exim/site/configure.general" exit 1 fi if [ -f /usr/local/etc/exim/site/configure.general ] && [ ! -z "`grep warning-message.template /usr/local/etc/exim/site/configure.general`" ] ; then echo "ERROR: file ../warning-message.template deprecated" echo "ERROR: replace warning-message.template with template.warning-message in /usr/local/etc/exim/site/configure.general" exit 1 fi if [ ! -z "`grep -i 'smtp[46]? *[0-9]' ../mailertable | grep -v '^ *#'`" ] ; then echo "ERROR: you must set smtp port number after hostname in mailertable" exit 1 fi if [ ! -z "`grep -i 'lmtp *[0-9]' ../mailertable | grep -v '^ *#'`" ] ; then echo "ERROR: you must set lmtp port number after hostname in mailertable" exit 1 fi if [ ! -z "`grep -i 'mx(.*)' ../mailertable | grep -v '^ *#'`" ] ; then echo "ERROR: mx(domain.tld) in mailertable is deprecated" echo "ERROR: use domain.tld/MX" exit 1 fi if [ -f ../access-relay-dialup ] ; then echo "ERROR: file ../access-relay-dialup must be renamed to ../access-relay-dynamic" echo "ERROR: you must run gmake fix" exit 1 fi if [ -f ../domains-exchange ] ; then echo "ERROR: file ../domains-exchange deprecated" echo "ERROR: you must remove it run gmake fix" exit 1 fi if [ -f ../skip_exch_check ] ; then echo "ERROR: file ../skip_exch_check deprecated" echo "ERROR: you must remove it or run gmake fix" exit 1 fi if [ -f ../domains-domino ] ; then echo "ERROR: file ../domains-domino deprecated" echo "ERROR: you must remove it run gmake fix" exit 1 fi if [ -f ../skip_domino_check ] ; then echo "ERROR: file ../skip_domino_check deprecated" echo "ERROR: you must remove it or run gmake fix" exit 1 fi if [ -f ../access-spf ] ; then echo "ERROR: file ../access-spf found" echo "ERROR: use variable confSPF2 and ../access-spf2 instead" exit 1 fi exit 0