diff --git a/install/alternc.install b/install/alternc.install index 5e112be2..ab59d699 100644 --- a/install/alternc.install +++ b/install/alternc.install @@ -334,7 +334,7 @@ fi #populate alternc database with the mailname used by postfix to send mail for each vhost # mailname=`cat /etc/mailname` -mysql_query "update table variable SET value="$mailname" where name='mailname_bounce';" +mysql_query "update table variable SET value='"$mailname"' where name='mailname_bounce';" ####################################################################### # Save installed files to check them during next install diff --git a/install/mysql.sql b/install/mysql.sql index 1da64057..2872786d 100644 --- a/install/mysql.sql +++ b/install/mysql.sql @@ -437,6 +437,9 @@ they log in. Set this to 0 or a "false" string to ignore.'); INSERT IGNORE INTO `variable` (name, value, comment) VALUES ('new_email', 0, 'An email will be sent to this address when new accounts are created if set.'); +INSERT IGNORE INTO `variable` (name, value, comment) VALUES ('mailname_bounce', '', +'FQDN of the mail server, used to create vhost virtual mail_adress.'); + -- -- Table structure for table `dbusers` --