Bearbeiten von „StuRa:Server/SRS14/2018“
Zur Navigation springen
Zur Suche springen
Die Bearbeitung kann rückgängig gemacht werden. Bitte prüfe den Vergleich unten, um sicherzustellen, dass du dies tun möchtest, und veröffentliche dann unten deine Änderungen, um die Bearbeitung rückgängig zu machen.
Aktuelle Version | Dein Text | ||
Zeile 1: | Zeile 1: | ||
Verwendungszweck: [[mailman]] für [http://lists.htw.stura-dresden.de lists.htw.stura-dresden.de] | |||
[[ | |||
== Ports == | |||
== | === installierte Ports === | ||
* [[#apache | apache]] | |||
* [[#apr | apr]] | |||
* autoconf | |||
* autoconf-wrapper | |||
* automake | |||
* automake-wrapper | |||
* db41 | |||
* db42 | |||
* [[#dovecot2 | dovecot2]] | |||
* expat | |||
* [[#gdbm | gdbm]] | |||
* gettext | |||
* gmake | |||
* [[Server/Jails#help2man | help2man]] | |||
* [[Server/Jails#libiconv | libiconv]] | |||
* [[Server/Jails#m4 |m4]] | |||
* maildrop | |||
* [[#mailman |mailman]] | |||
* p5-Locale-gettext | |||
* [[Server/Jails#pcre |pcre]] | |||
* [[Server/Jails#perl |perl-threaded]] | |||
* portaudit | |||
* [[Server/Jails#portupgrade |portupgrade]] | |||
* [[#postfix |postfix]] | |||
* [[#python27 |python27]] | |||
* [[#sudo |sudo]] | |||
* [[Server/Jails#ruby |ruby]] | |||
* ruby18-bdb | |||
* [[Server/Jails#zsh |zsh]] | |||
== | === konfigurierte Ports === | ||
=== | ==== apache ==== | ||
==== / | <code> | ||
OPTIONS_FILE_SET+=AUTH_BASIC | |||
OPTIONS_FILE_SET+=AUTH_DIGEST | |||
OPTIONS_FILE_SET+=AUTHN_ALIAS | |||
OPTIONS_FILE_SET+=AUTHN_ANON | |||
OPTIONS_FILE_UNSET+=AUTHN_DBD | |||
OPTIONS_FILE_SET+=AUTHN_DBM | |||
OPTIONS_FILE_SET+=AUTHN_DEFAULT | |||
OPTIONS_FILE_SET+=AUTHN_FILE | |||
OPTIONS_FILE_SET+=AUTHZ_DBM | |||
OPTIONS_FILE_SET+=AUTHZ_DEFAULT | |||
OPTIONS_FILE_SET+=AUTHZ_GROUPFILE | |||
OPTIONS_FILE_SET+=AUTHZ_HOST | |||
OPTIONS_FILE_SET+=AUTHZ_OWNER | |||
OPTIONS_FILE_SET+=AUTHZ_USER | |||
OPTIONS_FILE_UNSET+=AUTHNZ_LDAP | |||
OPTIONS_FILE_UNSET+=LDAP | |||
OPTIONS_FILE_UNSET+=DBD | |||
OPTIONS_FILE_SET+=CACHE | |||
OPTIONS_FILE_SET+=DISK_CACHE | |||
OPTIONS_FILE_SET+=FILE_CACHE | |||
OPTIONS_FILE_UNSET+=MEM_CACHE | |||
OPTIONS_FILE_SET+=DAV | |||
OPTIONS_FILE_SET+=DAV_FS | |||
OPTIONS_FILE_UNSET+=DAV_LOCK | |||
OPTIONS_FILE_SET+=ACTIONS | |||
OPTIONS_FILE_SET+=ALIAS | |||
OPTIONS_FILE_SET+=ASIS | |||
OPTIONS_FILE_SET+=AUTOINDEX | |||
OPTIONS_FILE_SET+=CERN_META | |||
OPTIONS_FILE_SET+=CGI | |||
OPTIONS_FILE_UNSET+=CGID | |||
OPTIONS_FILE_SET+=CHARSET_LITE | |||
OPTIONS_FILE_SET+=DEFLATE | |||
OPTIONS_FILE_SET+=DIR | |||
OPTIONS_FILE_SET+=DUMPIO | |||
OPTIONS_FILE_SET+=ENV | |||
OPTIONS_FILE_SET+=EXPIRES | |||
OPTIONS_FILE_SET+=HEADERS | |||
OPTIONS_FILE_SET+=IMAGEMAP | |||
OPTIONS_FILE_SET+=INCLUDE | |||
OPTIONS_FILE_SET+=INFO | |||
OPTIONS_FILE_SET+=LOG_CONFIG | |||
OPTIONS_FILE_SET+=LOGIO | |||
OPTIONS_FILE_SET+=MIME | |||
OPTIONS_FILE_SET+=MIME_MAGIC | |||
OPTIONS_FILE_SET+=NEGOTIATION | |||
OPTIONS_FILE_SET+=REWRITE | |||
OPTIONS_FILE_SET+=SETENVIF | |||
OPTIONS_FILE_SET+=SPELING | |||
OPTIONS_FILE_SET+=STATUS | |||
OPTIONS_FILE_SET+=UNIQUE_ID | |||
OPTIONS_FILE_SET+=USERDIR | |||
OPTIONS_FILE_SET+=USERTRACK | |||
OPTIONS_FILE_SET+=VHOST_ALIAS | |||
OPTIONS_FILE_SET+=FILTER | |||
OPTIONS_FILE_UNSET+=SUBSTITUTE | |||
OPTIONS_FILE_SET+=VERSION | |||
OPTIONS_FILE_SET+=SSL | |||
OPTIONS_FILE_UNSET+=SUEXEC | |||
OPTIONS_FILE_UNSET+=SUEXEC_RSRCLIMIT | |||
OPTIONS_FILE_UNSET+=SUEXEC_USERDIR | |||
OPTIONS_FILE_SET+=REQTIMEOUT | |||
OPTIONS_FILE_UNSET+=PROXY | |||
OPTIONS_FILE_UNSET+=IPV4_MAPPED | |||
OPTIONS_FILE_UNSET+=BUCKETEER | |||
OPTIONS_FILE_UNSET+=CASE_FILTER | |||
OPTIONS_FILE_UNSET+=CASE_FILTER_IN | |||
OPTIONS_FILE_UNSET+=EXT_FILTER | |||
OPTIONS_FILE_UNSET+=LOG_FORENSIC | |||
OPTIONS_FILE_UNSET+=OPTIONAL_HOOK_EXPORT | |||
OPTIONS_FILE_UNSET+=OPTIONAL_HOOK_IMPORT | |||
OPTIONS_FILE_UNSET+=OPTIONAL_FN_IMPORT | |||
OPTIONS_FILE_UNSET+=OPTIONAL_FN_EXPORT | |||
OPTIONS_FILE_UNSET+=PROXY_AJP | |||
OPTIONS_FILE_UNSET+=PROXY_BALANCER | |||
OPTIONS_FILE_UNSET+=PROXY_CONNECT | |||
OPTIONS_FILE_UNSET+=PROXY_FTP | |||
OPTIONS_FILE_UNSET+=PROXY_HTTP | |||
OPTIONS_FILE_UNSET+=PROXY_SCGI | |||
</code> | |||
==== apr ==== | |||
<code> | |||
OPTIONS_FILE_SET+=THREADS | |||
OPTIONS_FILE_SET+=IPV6 | |||
OPTIONS_FILE_SET+=DEVRANDOM | |||
OPTIONS_FILE_SET+=BDB | |||
OPTIONS_FILE_SET+=GDBM | |||
OPTIONS_FILE_UNSET+=LDAP | |||
OPTIONS_FILE_UNSET+=MYSQL | |||
OPTIONS_FILE_UNSET+=NDBM | |||
OPTIONS_FILE_UNSET+=PGSQL | |||
OPTIONS_FILE_UNSET+=SQLITE | |||
</code> | |||
==== dovecot2 ==== | |||
<code> | |||
OPTIONS_FILE_SET+=DOCS | |||
OPTIONS_FILE_SET+=EXAMPLES | |||
OPTIONS_FILE_UNSET+=GSSAPI | |||
OPTIONS_FILE_SET+=KQUEUE | |||
OPTIONS_FILE_UNSET+=LDAP | |||
OPTIONS_FILE_UNSET+=LIBWRAP | |||
OPTIONS_FILE_UNSET+=MYSQL | |||
OPTIONS_FILE_UNSET+=PGSQL | |||
OPTIONS_FILE_UNSET+=SOLR | |||
OPTIONS_FILE_UNSET+=SQLITE | |||
OPTIONS_FILE_SET+=SSL | |||
OPTIONS_FILE_UNSET+=VPOPMAIL | |||
</code> | |||
==== gdbm ==== | |||
<code> | |||
OPTIONS_FILE_UNSET+=COMPAT | |||
</code> | |||
==== [[Server/Jails#help2man |help2man]] ==== | |||
==== [[Server/Jails#libiconv |libiconv]] ==== | |||
==== [[Server/Jails#m4 |m4]] ==== | |||
==== mailman ==== | |||
<code> | |||
OPTIONS_FILE_SET+=DOCS | |||
OPTIONS_FILE_UNSET+=HTDIG | |||
OPTIONS_FILE_SET+=INTEGRATION | |||
OPTIONS_FILE_SET+=MTA | |||
OPTIONS_FILE_UNSET+=NAMAZU2 | |||
OPTIONS_FILE_SET+=NLS | |||
OPTIONS_FILE_UNSET+=SENDMAIL | |||
OPTIONS_FILE_UNSET+=EXIM3 | |||
OPTIONS_FILE_UNSET+=EXIM4 | |||
OPTIONS_FILE_SET+=POSTFIX | |||
OPTIONS_FILE_UNSET+=COURIER | |||
</code> | |||
==== [[Server/Jails#pcre |pcre]] ==== | |||
==== [[Server/Jails#perl |perl-threaded]] ==== | |||
==== [[Server/Jails#portupgrade |portupgrade]] ==== | |||
==== postfix ==== | |||
<code> | <code> | ||
OPTIONS_FILE_SET+=PCRE | |||
OPTIONS_FILE_UNSET+=SASL2 | |||
OPTIONS_FILE_UNSET+=DOVECOT | |||
OPTIONS_FILE_UNSET+=DOVECOT2 | |||
OPTIONS_FILE_UNSET+=SASLKRB5 | |||
OPTIONS_FILE_UNSET+=SASLKMIT | |||
OPTIONS_FILE_UNSET+=TLS | |||
OPTIONS_FILE_UNSET+=BDB | |||
OPTIONS_FILE_UNSET+=MYSQL | |||
OPTIONS_FILE_UNSET+=PGSQL | |||
OPTIONS_FILE_UNSET+=SQLITE | |||
OPTIONS_FILE_UNSET+=OPENLDAP | |||
OPTIONS_FILE_UNSET+=LDAP_SASL | |||
OPTIONS_FILE_UNSET+=CDB | |||
OPTIONS_FILE_UNSET+=NIS | |||
OPTIONS_FILE_UNSET+=VDA | |||
OPTIONS_FILE_UNSET+=TEST | |||
OPTIONS_FILE_UNSET+=SPF | |||
OPTIONS_FILE_UNSET+=INST_BASE | |||
</code> | |||
<code> | |||
Would you like to activate Postfix in /etc/mail/mailer.conf [n]? y | |||
</code> | |||
==== python27 ==== | |||
<code> | |||
OPTIONS_FILE_SET+=EXAMPLES | |||
OPTIONS_FILE_UNSET+=FPECTL | |||
OPTIONS_FILE_SET+=IPV6 | |||
OPTIONS_FILE_SET+=NLS | |||
OPTIONS_FILE_UNSET+=PTH | |||
OPTIONS_FILE_SET+=PYMALLOC | |||
OPTIONS_FILE_UNSET+=SEM | |||
OPTIONS_FILE_SET+=THREADS | |||
OPTIONS_FILE_UNSET+=UCS2 | |||
OPTIONS_FILE_SET+=UCS4 | |||
</code> | |||
==== sudo ==== | |||
<code> | |||
OPTIONS_FILE_SET+=AUDIT | |||
OPTIONS_FILE_UNSET+=DISABLE_AUTH | |||
OPTIONS_FILE_SET+=DISABLE_ROOT_SUDO | |||
OPTIONS_FILE_UNSET+=INSULTS | |||
OPTIONS_FILE_UNSET+=LDAP | |||
OPTIONS_FILE_SET+=NLS | |||
OPTIONS_FILE_UNSET+=NOARGS_SHELL | |||
OPTIONS_FILE_UNSET+=OPIE | |||
</code> | |||
==== [[Server/Jails#ruby |ruby]] ==== | |||
==== [[Server/Jails#zsh |zsh]] ==== | |||
=== zusätzliche Konfigurationsdateien === | |||
==== Jail ==== | |||
===== /etc/rc.conf ===== | |||
<code> | |||
apache22_enable="YES" | |||
mailman_enable="YES" | mailman_enable="YES" | ||
sshd_enable="YES" | sshd_enable="YES" | ||
dovecot_enable="YES" | dovecot_enable="YES" | ||
</code> | </code> | ||
== | ==== apache ==== | ||
=== | |||
==== httpd.conf ==== | ===== httpd.conf ===== | ||
<code> | <code> | ||
Zeile 51: | Zeile 276: | ||
</code> | </code> | ||
==== httpd-vhost.conf ==== | ===== httpd-vhost.conf ===== | ||
<code><b> | <code><b> | ||
# | # Default domain on this server | ||
# | # | ||
<Virtualhost *:80> | <Virtualhost *:80> | ||
ServerAdmin webmaster@domain.tld | |||
DocumentRoot "/usr/local/www/apache22/data" | |||
ServerName www.domain.tld | |||
ServerAlias domain.tld www.domain.tld | |||
<Directory "/usr/local/www/apache22/data"> | |||
AllowOverride None | |||
Options None | |||
AllowOverride | |||
Options | |||
Order allow,deny | Order allow,deny | ||
Allow from all | Allow from all | ||
</Directory> | |||
ErrorLog /var/log/httpd-error.log | |||
# | CustomLog /var/log/httpd-access.log combined | ||
</Virtualhost> | |||
# Mailman mailing list domain. | |||
# | |||
<Virtualhost *:80> | |||
ServerAdmin webmaster@domain.tld | |||
DocumentRoot "/usr/local/mailman" | |||
ServerName lists.domain.tld | |||
ServerAlias lists.domain.tld | |||
ScriptAlias /cgi-bin/ "/usr/local/mailman/cgi-bin/" | |||
ScriptAlias /mailman/ "/usr/local/mailman/cgi-bin/" | |||
Alias /pipermail "/usr/local/mailman/archives/public" | |||
Alias /icons "/usr/local/mailman/icons" | |||
<Directory "/usr/local/mailman"> | |||
AllowOverride All | |||
Options FollowSymlinks | |||
Order allow,deny | |||
Allow from all | |||
</Directory> | |||
ErrorLog /var/log/httpd-error.log | |||
CustomLog /var/log/httpd-access.log combined | |||
</Virtualhost> | </Virtualhost> | ||
...</b> | ...</b> | ||
Zeile 98: | Zeile 325: | ||
After adding the above VirtualHost directive, you can delete or comment out the remaining lines in the httpd-vhosts.conf file being as they’re just the default examples and pretty much useless. | After adding the above VirtualHost directive, you can delete or comment out the remaining lines in the httpd-vhosts.conf file being as they’re just the default examples and pretty much useless. | ||
=== dovecot2 === | ==== dovecot2 ==== | ||
default config kopieren | default config kopieren | ||
Zeile 111: | Zeile 333: | ||
</code> | </code> | ||
==== dovecot.conf ==== | ===== dovecot.conf ===== | ||
<code> | <code> | ||
Zeile 124: | Zeile 346: | ||
</code> | </code> | ||
=== maildrop === | ==== maildrop ==== | ||
* maildir in users homeverzeichnis anlegen | * maildir in users homeverzeichnis anlegen | ||
Zeile 145: | Zeile 367: | ||
</code> | </code> | ||
=== mailman === | ==== mailman ==== | ||
<!--<code> | <!--<code> | ||
Zeile 155: | Zeile 377: | ||
</code> | </code> | ||
==== /usr/local/mailman/postfix-to-mailman.py ==== | ===== /usr/local/mailman/postfix-to-mailman.py ===== | ||
<code> | <code> | ||
Zeile 166: | Zeile 388: | ||
</code>---> | </code>---> | ||
==== Set Site Password ==== | ===== Set Site Password ===== | ||
<code> | <code> | ||
Zeile 175: | Zeile 397: | ||
</code> | </code> | ||
==== Create Mailman list ==== | ===== Create Mailman list ===== | ||
<code> | <code> | ||
Zeile 189: | Zeile 411: | ||
</code> | </code> | ||
===== Add list to Mailman configuration file /usr/local/mailman/Mailman/mm_cfg.py ===== | |||
= | |||
==== Add list to Mailman configuration file /usr/local/mailman/Mailman/mm_cfg.py ==== | |||
<code> | <code> | ||
Zeile 209: | Zeile 417: | ||
# The default language for this server. | # The default language for this server. | ||
DEFAULT_SERVER_LANGUAGE = 'de' | DEFAULT_SERVER_LANGUAGE = 'de' | ||
SMTPHOST = 'localhost' | SMTPHOST = 'localhost' | ||
# Put YOUR site-specific settings below this line. | # Put YOUR site-specific settings below this line. | ||
Zeile 254: | Zeile 424: | ||
</code> | </code> | ||
==== | ==== postfix ==== | ||
==== /usr/local/etc/postfix/main.cf ==== | ===== /usr/local/etc/postfix/main.cf ===== | ||
<code> | <code> | ||
alias_database = hash:/etc/aliases, hash:/etc/aliases.stura | alias_database = hash:/etc/aliases, hash:/etc/aliases.stura | ||
alias_maps = hash:/etc/aliases, hash: | alias_maps = hash:/etc/aliases, hash:/etc/aliases.stura, hash:/usr/local/mailman/data/aliases | ||
command_directory = /usr/local/sbin | command_directory = /usr/local/sbin | ||
config_directory = /usr/local/etc/postfix | config_directory = /usr/local/etc/postfix | ||
daemon_directory = /usr/local/libexec/postfix | daemon_directory = /usr/local/libexec/postfix | ||
data_directory = /var/db/postfix | data_directory = /var/db/postfix | ||
debug_peer_level = 2 | |||
home_mailbox = Mail/ | home_mailbox = Mail/ | ||
html_directory = /usr/local/share/doc/postfix | html_directory = /usr/local/share/doc/postfix | ||
Zeile 378: | Zeile 449: | ||
mydomain = stura.htw-dresden.de | mydomain = stura.htw-dresden.de | ||
myhostname = mail.stura.htw-dresden.de | myhostname = mail.stura.htw-dresden.de | ||
mynetworks_style = subnet | |||
myorigin = $myhostname | myorigin = $myhostname | ||
newaliases_path = /usr/local/bin/newaliases | newaliases_path = /usr/local/bin/newaliases | ||
queue_directory = /var/spool/postfix | queue_directory = /var/spool/postfix | ||
readme_directory = /usr/local/share/doc/postfix | readme_directory = /usr/local/share/doc/postfix | ||
relay_domains = $mydomain htw-dresden.de stura.tu-dresden.de rz.hfbk-dresden.de | |||
sample_directory = /usr/local/etc/postfix | sample_directory = /usr/local/etc/postfix | ||
sendmail_path = /usr/local/sbin/sendmail | sendmail_path = /usr/local/sbin/sendmail | ||
Zeile 388: | Zeile 460: | ||
smtpd_client_restrictions = | smtpd_client_restrictions = | ||
reject_rbl_client dnsbl.sorbs.net | reject_rbl_client dnsbl.sorbs.net | ||
smtpd_helo_restrictions = | smtpd_helo_restrictions = | ||
reject_invalid_helo_hostname, | reject_invalid_helo_hostname, | ||
reject_non_fqdn_helo_hostname, | reject_non_fqdn_helo_hostname, | ||
Zeile 401: | Zeile 470: | ||
reject_invalid_hostname, | reject_invalid_hostname, | ||
reject_unknown_recipient_domain, | reject_unknown_recipient_domain, | ||
reject_unauth_destination, | |||
reject_rbl_client sbl.spamhaus.org, | reject_rbl_client sbl.spamhaus.org, | ||
permit | permit | ||
smtpd_sender_restrictions = | smtpd_sender_restrictions = | ||
reject_unknown_sender_domain, | reject_unknown_sender_domain, | ||
reject_non_fqdn_sender | reject_non_fqdn_sender | ||
Zeile 415: | Zeile 480: | ||
unknown_local_recipient_reject_code = 550 | unknown_local_recipient_reject_code = 550 | ||
</code> | </code> | ||
== Siehe auch == | == Siehe auch == | ||
* [[mailman]] | * [[mailman]] | ||
== Weblinks == | == Weblinks == | ||
Zeile 542: | Zeile 490: | ||
* [https://www.gnu.org/software/mailman/index.html GNU Mailman] (offical website) | * [https://www.gnu.org/software/mailman/index.html GNU Mailman] (offical website) | ||
[[Kategorie:Rechentechnik]] | [[Kategorie:Rechentechnik]] | ||
[[Kategorie:Software]] | [[Kategorie:Software]] | ||
[[Kategorie:Jail]] | [[Kategorie:Jail]] |