Aktuelle Version |
Dein Text |
Zeile 311: |
Zeile 311: |
| mydomain = stura.htw-dresden.de | | mydomain = stura.htw-dresden.de |
|
| |
|
| #smtp_bind_address = 141.56.50.14
| | smtp_bind_address = 141.56.50.14 |
| smtp_bind_address = 141.56.51.14
| |
|
| |
|
| myorigin = $myhostname | | myorigin = $myhostname |
Zeile 324: |
Zeile 323: |
| # 141.56.16.134 - 141.56.16.136 mailexchanger vom RZ | | # 141.56.16.134 - 141.56.16.136 mailexchanger vom RZ |
| # 141.56.16.231 - 232 mailrelay vom RZ | | # 141.56.16.231 - 232 mailrelay vom RZ |
| mynetworks = 141.56.16.131, 141.56.16.134, 141.56.16.135, 141.56.16.136, 141.56.16.231, 141.56.16.232, 141.56.50.0/26, 127.0.0.0/24, 192.168.100.12, 141.56.51.0/24 | | mynetworks = 141.56.16.131, 141.56.16.134, 141.56.16.135, 141.56.16.136, 141.56.16.231, 141.56.16.232, 141.56.50.0/26, 127.0.0.0/24, 192.168.100.12 |
| | |
|
| |
|
| alias_maps = hash:/etc/aliases, hash:/etc/aliases.stura, hash:/usr/local/mailman/data/aliases | | alias_maps = hash:/etc/aliases, hash:/etc/aliases.stura, hash:/usr/local/mailman/data/aliases |
Zeile 334: |
Zeile 332: |
|
| |
|
| mail_spool_directory = /var/mail | | mail_spool_directory = /var/mail |
|
| |
| mailbox_command = /usr/local/bin/maildrop -d ${USER} | | mailbox_command = /usr/local/bin/maildrop -d ${USER} |
|
| |
|
| header_checks = pcre:$config_directory/header_checks | | header_checks = pcre:$config_directory/header_checks |
|
| |
| ####
| |
| sendmail_path = /usr/local/sbin/sendmail
| |
| newaliases_path = /usr/local/bin/newaliases
| |
| mailq_path = /usr/local/bin/mailq
| |
| setgid_group = maildrop
| |
| html_directory = /usr/local/share/doc/postfix
| |
| manpage_directory = /usr/local/man
| |
| sample_directory = /usr/local/etc/postfix
| |
| readme_directory = /usr/local/share/doc/postfix
| |
| inet_protocols = ipv4
| |
| ####
| |
|
| |
|
| smtpd_sender_restrictions = | | smtpd_sender_restrictions = |
Zeile 389: |
Zeile 374: |
| <pre> | | <pre> |
| /^X-HTW-Spam-Flag:\s+YES/ REDIRECT spam@stura.htw-dresden.de | | /^X-HTW-Spam-Flag:\s+YES/ REDIRECT spam@stura.htw-dresden.de |
| /^X-Spam-Flag:\s+YES/ REDIRECT spam@stura.htw-dresden.de
| |
| </pre> | | </pre> |
|
| |
|
Zeile 430: |
Zeile 414: |
| (vielleicht notwendiges) Neubauen der Datenbank zwecks postfix für Mail-Adressen (speziell für den StuRa) | | (vielleicht notwendiges) Neubauen der Datenbank zwecks postfix für Mail-Adressen (speziell für den StuRa) |
| : <code>postalias /etc/aliases.stura</code> | | : <code>postalias /etc/aliases.stura</code> |
|
| |
| ===== Problem zum Ableiten von SPAM wegen geänderter Eintrag von erkannten SPAM im Header =====
| |
|
| |
| Seit 2020-02-27 wurde plötzlich (mutmaßlich nach den Wartungsarbeiten [https://www.htw-dresden.de/news/wartungsarbeiten-im-netzwerk]) (wieder) erkannter SPAM weitergeleitet.
| |
|
| |
| Es konnte festgestellt werden, dass im Header der Mail nicht mehr die Markierung ''X-HTW-Spam-Flag'' verwendet wird, sondern (wieder standardmäßig) ''X-Spam-Flag''.
| |
|
| |
| So wurde in der Datei <code>/usr/local/etc/postfix/header_checks</code>
| |
| <pre>
| |
| /^X-HTW-Spam-Flag:\s+YES/ REDIRECT spam@stura.htw-dresden.de
| |
| </pre>
| |
| <pre>
| |
| /^X-Spam-Flag:\s+YES/ REDIRECT spam@stura.htw-dresden.de
| |
| </pre>
| |
| hinzugefügt.
| |
|
| |
|
| ==== sudo ==== | | ==== sudo ==== |
Zeile 812: |
Zeile 781: |
| ==== Aktualisierung von Paketen ==== | | ==== Aktualisierung von Paketen ==== |
|
| |
|
| {|
| |
| |
| |
| <pre> | | <pre> |
| pkg lock -y postfix | | pkg lock -y postfix |
Zeile 829: |
Zeile 796: |
| ALLOW_UNSUPPORTED_SYSTEM=1 make build | | ALLOW_UNSUPPORTED_SYSTEM=1 make build |
| ALLOW_UNSUPPORTED_SYSTEM=1 make deinstall | | ALLOW_UNSUPPORTED_SYSTEM=1 make deinstall |
|
| |
| pkg unlock -y postfix | | pkg unlock -y postfix |
| #Unlocking postfix-3.3.0.r1,1 | | #Unlocking postfix-3.3.0.r1,1 |
Zeile 843: |
Zeile 809: |
| pkg lock -y mailman | | pkg lock -y mailman |
| </pre> | | </pre> |
| |
| |
| : <code>service postfix stop</code>
| |
| : <code>service postfix status</code>
| |
| <pre>
| |
| postfix is not running.
| |
| </pre>
| |
| : <code>pkg lock -y postfix</code>
| |
|
| |
| : <code>service mailman stop</code>
| |
| : <code>service mailman status</code>
| |
| <pre>
| |
| mailman is not running.
| |
| </pre>
| |
| : <code>pkg lock -y mailman</code>
| |
|
| |
| : <code>cd /usr/ports/mail/postfix</code>
| |
| : <code>ALLOW_UNSUPPORTED_SYSTEM=YES make build</code>
| |
| : <code>pkg unlock -y postfix</code>
| |
| : <code>ALLOW_UNSUPPORTED_SYSTEM=YES make deinstall</code>
| |
| : <code>ALLOW_UNSUPPORTED_SYSTEM=YES make install clean</code>
| |
| : <code>pkg lock -y postfix</code>
| |
|
| |
| : <code>cd /usr/ports/mail/mailman</code>
| |
| : <code>ALLOW_UNSUPPORTED_SYSTEM=YES make build</code>
| |
| : <code>pkg unlock -y mailman</code>
| |
| : <code>ALLOW_UNSUPPORTED_SYSTEM=YES make deinstall</code>
| |
| : <code>ALLOW_UNSUPPORTED_SYSTEM=YES make install clean</code>
| |
| : <code>pkg lock -y mailman</code>
| |
|
| |
| : <code>service mailman start</code>
| |
| <pre>
| |
| Fixing mailman permissions:
| |
| Warning: Private archive directory is other-executable (o+x).
| |
| This could allow other users on your system to read private archives.
| |
| If you're on a shared multiuser system, you should consult the
| |
| installation manual on how to fix this.
| |
| No problems found
| |
| Starting mailman.
| |
| </pre>
| |
| : <code>service postfix start</code>
| |
| <pre>
| |
| postfix: Postfix is running with backwards-compatible default settings
| |
| postfix: See http://www.postfix.org/COMPATIBILITY_README.html for details
| |
| postfix: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload"
| |
| postfix/postfix-script: starting the Postfix mail system
| |
| </pre>
| |
|
| |
| : <code>pkg info -ak | grep yes</code>
| |
| <pre>
| |
| mailman-2.1.26_4 yes
| |
| postfix-3.3.1,1 yes
| |
| </pre>
| |
| |
| |
| |}
| |
|
| |
|
| == Umzug == | | == Umzug == |
Zeile 928: |
Zeile 840: |
| All filesystems are formatted with the current version. | | All filesystems are formatted with the current version. |
| </pre> | | </pre> |
|
| |
| == Probleme ==
| |
|
| |
| ==== 403 bei den Archiven von öffentlichen Mail-Verteilern ====
| |
|
| |
| Alle Inhalte von Mailman über den Webserver unter ''/pipermail/'', also insbesondere was auch einfach öffentlich archivierte Inhalte sind (zum Beispiel
| |
| http://lists.stura.htw-dresden.de/pipermail/stg.htw-dresden.de/) konnten wegen [[wikipedia:de:HTTP-Statuscode#4xx – Client-Fehler|Fehler ''403'']] nicht einfach öffentlich ausgeliefert werden. Praktisch handelt es sich um alle Inhalte im Ordner <code>/usr/local/mailman/archives/public/</code> (Links).
| |
|
| |
| Der Webserver, der als Account ''www'' läuft, braucht Berechtigungen (und gehört (pauschal) zu ''[[wikipedia:de:Unix-Dateirechte#Benutzerklassen|others]]'').
| |
| <code>chmod o=rx /usr/local/mailman/archives/private</code>
| |
|
| |
| : (Irgendwie erscheint das "falsch", aber …) Das hat früher wohl auch schon [https://www.freebsddiary.org/mailman.php dan.langille.org] so gemacht. :-D
| |
|
| |
| === DNSBL ===
| |
|
| |
| [[wikipedia:de:DNS-based Blackhole List]]
| |
|
| |
| * http://dnsbllookup.com/
| |
| ** http://dnsbllookup.com/?ip=141.56.51.14
| |
| ** http://dnsbllookup.com/?ip=141.56.51.2
| |
| * http://multirbl.valli.org/dnsbl-lookup/
| |
| ** http://multirbl.valli.org/dnsbl-lookup/141.56.51.14.html
| |
| ** http://multirbl.valli.org/dnsbl-lookup/srs14.stura.htw-dresden.de.html
| |
| ** http://multirbl.valli.org/dnsbl-lookup/mail.stura.htw-dresden.de.html
| |
| ** http://multirbl.valli.org/dnsbl-lookup/141.56.51.2.html
| |
| ** http://multirbl.valli.org/dnsbl-lookup/srs2.stura.htw-dresden.de.html
| |