Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
|
zeilinger [2010/11/25 22:14] 127.0.0.1 Externe Bearbeitung |
zeilinger [2015/11/10 17:23] (aktuell) admin [Löschen von Mails mit bestimmten Inhalt] |
||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| + | *[[http://www.pcwelt.de/ratgeber/Den_eigenen_Mailserver_einrichten_-_so_geht_s-Linux_als_Server-8716159.html|Den eigenen Mailserver einrichten - so geht's]] | ||
| + | |||
| ====== Zeilinger (1. August 2010) ====== | ====== Zeilinger (1. August 2010) ====== | ||
| Zeile 539: | Zeile 541: | ||
| rcpostfix start | rcpostfix start | ||
| rccyrus start | rccyrus start | ||
| + | | ||
| + | ==== Postfix Datenbanken ==== | ||
| + | |||
| + | cd /etc/postfix | ||
| + | postmap /etc/postfix/access | ||
| + | postmap /etc/postfix/relocated | ||
| + | postmap /etc/postfix/canonical | ||
| + | postmap /etc/postfix/virtual | ||
| + | postmap /etc/postfix/transport | ||
| ==== ALT: Migration von alten, reinen POP Postfächern ==== | ==== ALT: Migration von alten, reinen POP Postfächern ==== | ||
| Zeile 1023: | Zeile 1034: | ||
| *comm -23 mailuser.txt user.txt > verwaist.txt | *comm -23 mailuser.txt user.txt > verwaist.txt | ||
| *verwaist.txt editieren! | *verwaist.txt editieren! | ||
| + | |||
| + | ==== Mailq ==== | ||
| + | |||
| + | postcat -q MAILQ-ID | ||
| + | |||
| + | <code ini postfix-delete.pl> | ||
| + | #!/usr/bin/perl | ||
| + | |||
| + | $REGEXP = shift || die "no email-adress given (regexp-style, e.g. bl.*\@yahoo.com)!"; | ||
| + | |||
| + | @data = qx</usr/sbin/postqueue -p>; | ||
| + | for (@data) { | ||
| + | if (/^(\w+)(\*|\!)?\s/) { | ||
| + | $queue_id = $1; | ||
| + | } | ||
| + | if($queue_id) { | ||
| + | if (/$REGEXP/i) { | ||
| + | $Q{$queue_id} = 1; | ||
| + | $queue_id = ""; | ||
| + | } | ||
| + | } | ||
| + | } | ||
| + | |||
| + | #open(POSTSUPER,"|cat") || die "couldn't open postsuper" ; | ||
| + | open(POSTSUPER,"|postsuper -d -") || die "couldn't open postsuper" ; | ||
| + | |||
| + | foreach (keys %Q) { | ||
| + | print POSTSUPER "$_\n"; | ||
| + | }; | ||
| + | close(POSTSUPER); | ||
| + | </code> | ||
| ==== Datenbank reparieren ==== | ==== Datenbank reparieren ==== | ||
| Zeile 1074: | Zeile 1116: | ||
| ./make_sub.sh | ./make_sub.sh | ||
| </code> | </code> | ||
| + | |||
| + | ==== Spamer blockieren ==== | ||
| + | |||
| + | <code ini /etc/postfix/sender_access> | ||
| + | ... | ||
| + | user@abadboy.com REJECT | ||
| + | ... | ||
| + | </code> | ||
| + | |||
| + | postmap hash:sender_access | ||
| + | |||
| + | <code ini /etc/postfix/main.cf> | ||
| + | ... | ||
| + | smtpd_recipient_restrictions = check_sender_access hash:/etc/postfix/sender_access | ||
| + | ... | ||
| + | </code> | ||
| + | |||
| + | rcpostfix restart | ||
| + | |||
| + | <code ini /etc/mail/spamassassin/local.cf> | ||
| + | ... | ||
| + | blacklist_from user@abadboy.com | ||
| + | ... | ||
| + | </code> | ||
| + | |||
| + | rcamavis restart | ||
| ====== Diverse Anleitungen ====== | ====== Diverse Anleitungen ====== | ||
| Zeile 1100: | Zeile 1168: | ||
| *http://www.susegeek.com/networking/how-to-configure-postfix-to-send-emails-in-opensuse-and-suse-linux/ | *http://www.susegeek.com/networking/how-to-configure-postfix-to-send-emails-in-opensuse-and-suse-linux/ | ||
| *[[http://oreilly.com/catalog/mimap/chapter/ch09.html#91630|Share Folder]] | *[[http://oreilly.com/catalog/mimap/chapter/ch09.html#91630|Share Folder]] | ||
| + | *[[http://sareport.darold.net/install.html|SendmailAnalyzer]] | ||
| + | [[http://www.novell.com/coolsolutions/feature/16264.html|Configuring a Mail Server on SLES]] \\ | ||
| + | [[http://rajasuperman.blogspot.com/2006/09/gmail-as-smarthost-for-fre_115764792412436946.html|Gmail als smarthost]] \\ | ||
| + | [[http://www.scalix-komplett.de/en/howto/27-mit-scalix-entfernte-postfaecher-abfragen.html|Fetchmail]] \\ | ||
| + | [[http://postfix.state-of-mind.de/patrick.koetter/smtpauth/postfix_configuration.html|11. Basic Postfix configuration and preparation for SMTP AUTH]] \\ | ||
| + | [[http://dokuwiki.nausch.org/doku.php/centos:mailserver:grundabsicherung_von_postfix|Grundabsicherung von Postfix]] \\ | ||
| + | |||
| + | ==== Problem - löschen von E-Mails ==== | ||
| + | |||
| + | Fehlermeldung: UID COPY: Mailbox does not exist | ||
| + | |||
| + | === Lösung === | ||
| + | |||
| + | *http://bgweiz.at > Anmelden > my.Mail > rechts oben auf: Einstellungen > links: Spezialordner > bei Gelöscht - Auswahlfenster öffnen und | ||
| + | *Entwurf auswählen > Speichern => Erfolgreich gespeichert | ||
| + | *wieder bei Gelöscht das Auswahlfenster öffnen und Papierkorb auswählen => Erfolgreich gespeichert | ||
| + | *re. oben auf E-Mail klicken > das Löschen von E-Mails sollte wieder funktionieren | ||
| + | |||
| + | ==== Löschen von Mails mit bestimmten Inhalt ==== | ||
| + | |||
| + | cd /var/spool/imap/user/vorname^zuname | ||
| + | grep -l 'Undeliver' * | tr '\n' ' ' | xargs rm -rf | ||
| + | grep -l 'delivery' * | tr '\n' ' ' | xargs rm -rf | ||
| + | cd /opt/imap | ||
| + | sh cyr_repair.sh vorname^zuname | ||
| + | |||
| + | |||