crash badly when postfix is not properly configured
This commit is contained in:
		
							parent
							
								
									78657e960f
								
							
						
					
					
						commit
						7ce145c2fa
					
				|  | @ -29,7 +29,7 @@ Homepage: http://www.alternc.org/ | |||
| Package: alternc-slave | ||||
| Architecture: all | ||||
| Pre-depends: debconf (>= 0.5.00) | debconf-2.0 | ||||
| Depends: debianutils (>= 1.13.1), apache2, libapache2-mod-php5, courier-ssl, courier-imap-ssl, courier-pop-ssl, php5-mysql, phpmyadmin, postfix, proftpd-mod-mysql, proftpd-basic, squirrelmail, postfix-tls, bind9, wget, rsync, quota, courier-authmysql | courier-authlib-mysql, ca-certificates, locales, perl-suid, perl, postfix-mysql, wwwconfig-common, sasl2-bin, libsasl2-modules, php5-cli, lockfile-progs (>= 0.1.9), gettext (>= 0.10.40-5), adduser, mysql-client, postgrey, sudo | ||||
| Depends: debianutils (>= 1.13.1), apache2, libapache2-mod-php5, courier-ssl, courier-imap-ssl, courier-pop-ssl, php5-mysql, phpmyadmin, postfix, proftpd-mod-mysql, proftpd-basic, squirrelmail, postfix-tls, bind9, wget, rsync, quota, courier-authmysql | courier-authlib-mysql, ca-certificates, locales, perl-suid, perl, postfix-mysql, wwwconfig-common, sasl2-bin, libsasl2-modules, php5-cli, lockfile-progs (>= 0.1.9), gettext (>= 0.10.40-5), adduser, mysql-client, sudo | ||||
| Recommends: apache2 | ||||
| Conflicts: alternc-admintools, alternc-awstats (<= 0.3.2), alternc-webalizer (<= 0.9.4), alternc | ||||
| Provides: alternc | ||||
|  |  | |||
|  | @ -31,4 +31,4 @@ virtual_minimum_uid = 1000 | |||
| virtual_gid_maps = proxy:mysql:/etc/postfix/mygid.cf | ||||
| virtual_uid_maps = static:33 | ||||
| default_privs = www-data | ||||
| 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 | ||||
| smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_invalid_hostname, reject_non_fqdn_hostname, reject_non_fqdn_sender, reject_rbl_client zen.spamhaus.org, reject_non_fqdn_recipient, reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_unauth_pipelining, reject_unlisted_recipient, reject_unauth_destination | ||||
|  |  | |||
|  | @ -253,6 +253,17 @@ if [ -e /etc/postfix/myalias.cf -o -e /etc/postfix/mydomain.cf -o -e /etc/postfi | |||
|     chmod 640 /etc/postfix/my* | ||||
| fi | ||||
| 
 | ||||
| if [ ! -f /etc/postfix/main.cf ] | ||||
| then | ||||
|     echo "****************************************" | ||||
|     echo "POSTFIX is NOT configured properly" | ||||
|     echo "please launch dpkg-reconfigure -plow postfix"  | ||||
|     echo "and choose 'Internet Site'" | ||||
|     echo "then reinstall alternc" | ||||
|     echo "****************************************" | ||||
|     exit 1 | ||||
| fi | ||||
| 
 | ||||
| # configure postfix appropriatly for our needs | ||||
| if [ "$slave" = "1" ]; then | ||||
|     postfix_conf=/etc/alternc/postfix-slave.cf | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Benjamin Sonntag
						Benjamin Sonntag