# Qualified Domain Name (FQDN) and remove the # at the beginning of the line.
#
#$myhostname = "mail.example.com";
-$myhostname = "<%= fqdn %>";
+$myhostname = "<%= @fqdn %>";
1; # ensure a defined return
--- /dev/null
+dovecot.conf.wheezy.erb
\ No newline at end of file
protocol lda {
auth_socket_path = /var/run/dovecot/auth-master
mail_plugins = sieve
- postmaster_address = postmaster@<%= fqdn %>
+ postmaster_address = postmaster@<%= @fqdn %>
}
# Should saving a mail to a non-existing mailbox automatically create it?
-/^.*+request\@<%= subdomain.gsub(/\./, '\.') %>$/ firmarequest:
-/^.*\@<%= subdomain.gsub(/\./, '\.') %>$/ firma:
+/^.*+request\@<%= @subdomain.gsub(/\./, '\.') %>$/ firmarequest:
+/^.*\@<%= @subdomain.gsub(/\./, '\.') %>$/ firma:
-/^(.*)-request\@<%= subdomain.gsub(/\./, '\.') %>$/ $1+request@<%= subdomain %>
+/^(.*)-request\@<%= @subdomain.gsub(/\./, '\.') %>$/ $1+request@<%= @subdomain %>
# dbc_dbuser: database user
# the name of the user who we will use to connect to the database.
-dbc_dbuser='<%= database_name %>'
+dbc_dbuser='<%= @database_name %>'
# dbc_dbpass: database user password
# the password to use with the above username when connecting
# to a database, if one is required
-dbc_dbpass='<%= database_password %>'
+dbc_dbpass='<%= @database_password %>'
# dbc_dbserver: database host.
# leave unset to use localhost (or a more efficient local method
# if it exists).
-dbc_dbserver='<%= database_host %>'
+dbc_dbserver='<%= @database_host %>'
# dbc_dbport: remote database port
# leave unset to use the default. only applicable if you are
# dbc_dbname: name of database
# this is the name of your application's database.
-dbc_dbname='<%= database_name %>'
+dbc_dbname='<%= @database_name %>'
# dbc_dbadmin: name of the administrative user
# this is the administrative user that is used to create all of the above
# dbc_dbuser: database user
# the name of the user who we will use to connect to the database.
-dbc_dbuser='<%= database_name %>'
+dbc_dbuser='<%= @database_name %>'
# dbc_dbpass: database user password
# the password to use with the above username when connecting
# to a database, if one is required
-dbc_dbpass='<%= database_password %>'
+dbc_dbpass='<%= @database_password %>'
# dbc_dbserver: database host.
# leave unset to use localhost (or a more efficient local method
# if it exists).
-dbc_dbserver='<%= database_host %>'
+dbc_dbserver='<%= @database_host %>'
# dbc_dbport: remote database port
# leave unset to use the default. only applicable if you are
# dbc_dbname: name of database
# this is the name of your application's database.
-dbc_dbname='<%= database_name %>'
+dbc_dbname='<%= @database_name %>'
# dbc_dbadmin: name of the administrative user
# this is the administrative user that is used to create all of the above
###\\\\ General definition ////###
## Main robot hostname
-domain <%= subdomain %>.<%= domain %>
+domain <%= @subdomain %>.<%= @domain %>
## Listmasters email list comma separated
## Sympa will associate listmaster privileges to these email addresses (mail and web interfaces). Some error reports may also be sent to these addresses.
-listmaster <%= listmasters %>
+listmaster <%= @listmasters %>
## Local part of sympa email adresse
## Effective address will be [EMAIL]@[HOST]
email sympa
## Default lang (cs | de | el | en_US | fr | hu | it | ja_JP | nl | oc | pt_BR | tr)
-lang <%= lang %>
+lang <%= @lang %>
## Who is able to create lists
## This parameter is a scenario, check sympa documentation about scenarios if you want to define one
## Name of the database
## with SQLite, the name of the DB corresponds to the DB file
-db_name <%= database_name %>
+db_name <%= @database_name %>
## The host hosting your sympa database
-db_host <%= database_host %>
+db_host <%= @database_host %>
## Database user for connexion
-db_user <%= database_name %>
+db_user <%= @database_name %>
## Database password (associated to the db_user)
## What ever you use a password or not, you must protect the SQL server (is it a not a public internet service ?)
-db_passwd <%= database_password %>
+db_passwd <%= @database_password %>
## Database private extention to user table
## You need to extend the database format with these fields
###\\\\ Web interface ////###
## Sympa's main page URL
-wwsympa_url https://<%= subdomain %>.<%= domain %>/wws
+wwsympa_url https://<%= @subdomain %>.<%= @domain %>/wws
## SOAP service URL
-soap_url https://<%= subdomain %>.<%= domain %>/sympasoap
+soap_url https://<%= @subdomain %>.<%= @domain %>/sympasoap
## Supported languages for the user interface
supported_lang en_US,pt_BR
<%- unless logo_html_definition.to_s.empty? then -%>
## Logo
-logo_html_definition <%= logo_html_definition %>
+logo_html_definition <%= @logo_html_definition %>
<%- end %>
###\\\\ General definition ////###
## Main robot hostname
-domain <%= subdomain %>.<%= domain %>
+domain <%= @subdomain %>.<%= @domain %>
## Listmasters email list comma separated
## Sympa will associate listmaster privileges to these email addresses (mail and web interfaces). Some error reports may also be sent to these addresses.
-listmaster <%= listmasters %>
+listmaster <%= @listmasters %>
## Local part of sympa email adresse
## Effective address will be [EMAIL]@[HOST]
email sympa
## Default lang (cs | de | el | en_US | fr | hu | it | ja_JP | nl | oc | pt_BR | tr)
-lang <%= lang %>
+lang <%= @lang %>
## Who is able to create lists
## This parameter is a scenario, check sympa documentation about scenarios if you want to define one
db_host <%= database_host %>
## Database user for connexion
-db_user <%= database_name %>
+db_user <%= @database_name %>
## Database password (associated to the db_user)
## What ever you use a password or not, you must protect the SQL server (is it a not a public internet service ?)
-db_passwd <%= database_password %>
+db_passwd <%= @database_password %>
## Database private extention to user table
## You need to extend the database format with these fields
###\\\\ Web interface ////###
## Sympa's main page URL
-wwsympa_url https://<%= subdomain %>.<%= domain %>/wws
+wwsympa_url https://<%= @subdomain %>.<%= @domain %>/wws
## SOAP service URL
-soap_url https://<%= subdomain %>.<%= domain %>/sympasoap
+soap_url https://<%= @subdomain %>.<%= @domain %>/sympasoap
## Supported languages for the user interface
supported_lang en_US,pt_BR,es,fr,de
<%- unless logo_html_definition.to_s.empty? then -%>
## Logo
-logo_html_definition <%= logo_html_definition %>
+logo_html_definition <%= @logo_html_definition %>
<%- end %>
-/^.*+owner\@<%= subdomain.gsub(/\./, '\.') %>$/ sympabounce:
-/^.*\@<%= subdomain.gsub(/\./, '\.') %>$/ sympa:
+/^.*+owner\@<%= @subdomain.gsub(/\./, '\.') %>$/ sympabounce:
+/^.*\@<%= @subdomain.gsub(/\./, '\.') %>$/ sympa:
-/^(.*)-owner\@<%= subdomain.gsub(/\./, '\.') %>$/ $1+owner@<%= subdomain %>
+/^(.*)-owner\@<%= @subdomain.gsub(/\./, '\.') %>$/ $1+owner@<%= @subdomain %>
// Default Aliases
// The default aliases that need to be created for all domains.
$CONF['default_aliases'] = array (
- 'abuse' => 'abuse@<%= domain %>',
- 'hostmaster' => 'hostmaster@<%= domain %>',
- 'postmaster' => 'postmaster@<%= domain %>',
- 'webmaster' => 'webmaster@<%= domain %>'
+ 'abuse' => 'abuse@<%= @domain %>',
+ 'hostmaster' => 'hostmaster@<%= @domain %>',
+ 'postmaster' => 'postmaster@<%= @domain %>',
+ 'webmaster' => 'webmaster@<%= @domain %>'
);
// Mailboxes
// replace Roundcube logo with this image
// specify an URL relative to the document root of this Roundcube installation
-$rcmail_config['skin_logo'] = <%= roundcube_logo %>;
+$rcmail_config['skin_logo'] = <%= @roundcube_logo %>;
// Includes should be interpreted as PHP files
$rcmail_config['skin_include_php'] = false;
// this key is used to encrypt the users imap password which is stored
// in the session record (and the client cookie if remember password is enabled).
// please provide a string of exactly 24 chars.
-$rcmail_config['des_key'] = '<%= roundcube_des_key %>';
+$rcmail_config['des_key'] = '<%= @roundcube_des_key %>';
// Automatically add this domain to user names for login
// Only for IMAP servers that require full e-mail addresses for login
// Login_info plugin
$rcmail_config['login_info'] = <<<EOT
<div id="login_info" style="margin-top:3%;margin-left:auto;margin-right:auto;;width:380px;border-radius:10px;padding:10px;-moz-border-radius:10px;background-color:lightgrey;text-align:center;color:red;">
- <%= roundcube_login_info %>
+ <%= @roundcube_login_info %>
</div>
EOT;
<% end -%>