Hallo! Ich bin auf meinem SUSE 9.2-Server auf Cyrus umgestiegen. Alles (Postfix, SpamAssassin, Virenkontrolle) funktioniert soweit gut, was noch fehlt, ist die Filterung der Emails. Da ich bereits ein recht ausgefeiltes Filtersystem mit Procmail für den alten Imap-Server erstellt habe, würde ich das gerne weiter benutzen. Geht das? Wenn ja, wie? Oder muss ich mich mit Sieve beschäftigen? Wo finde ich da einen anfängertauglichen deutschen Einstieg? Beste Grüße Ralf Tempel -- ---------------------[ Ciphire Signature ]---------------------- From: rte-suse@arcor.de signed email body (406 characters) Date: on 27 April 2005 at 08:52:09 UTC To: suse-linux@suse.com ---------------------------------------------------------------- : Ciphire has secured this email against identity theft. : Free download at www.ciphire.com. The garbled lines : below are the sender's verifiable digital signature. ---------------------------------------------------------------- 00fAAAAAEAAAC5Um9ClgEAANACAAIAAgACACCjslPqt2D6NcKorbD84whd6oBbXo zFIaKhw0Qzi6MNgAEAhuoWllJK+/uWwq+kRG4dpm8bbUEHQG5TIXGX6EIWMC8MjL jC3zxRyT4wY2yY9AlgUCm3GdwI/qpzXE8CLOa+aQ== ------------------[ End Ciphire Signed Message ]----------------
Ralf Tempel wrote:
Hallo! Ich bin auf meinem SUSE 9.2-Server auf Cyrus umgestiegen. Alles (Postfix, SpamAssassin, Virenkontrolle) funktioniert soweit gut, was noch fehlt, ist die Filterung der Emails. Da ich bereits ein recht ausgefeiltes Filtersystem mit Procmail für den alten Imap-Server erstellt habe, würde ich das gerne weiter benutzen. Geht das? Wenn ja, wie?
Sollte funktionieren, sobald der Mailbox_transport auf procmail gesetzt ist. In /etc/postfix/main.cf mailbox_transport=procmail setzen. Setze dann am besten den fallback_transport = cyrus.
Oder muss ich mich mit Sieve beschäftigen? Wo finde ich da einen anfängertauglichen deutschen Einstieg?
Ich wäre schon froh, wenn ich eine brauchbare Beschreibung in Englisch finden würde. (^-^) Sandy
Sandy Drobic schrieb:
Sollte funktionieren, sobald der Mailbox_transport auf procmail gesetzt ist. In /etc/postfix/main.cf mailbox_transport=procmail setzen.
Setze dann am besten den fallback_transport = cyrus.
Danke, das werde ich gleich mal ausprobieren
Ich wäre schon froh, wenn ich eine brauchbare Beschreibung in Englisch finden würde. (^-^)
Oh, so schlimm? Dann bleibe ich lieber bei Procmail. Viele Grüße Ralf -- ---------------------[ Ciphire Signature ]---------------------- From: rte-suse@arcor.de signed email body (368 characters) Date: on 27 April 2005 at 10:11:23 UTC To: suse-linux@suse.com ---------------------------------------------------------------- : Ciphire has secured this email against identity theft. : Free download at www.ciphire.com. The garbled lines : below are the sender's verifiable digital signature. ---------------------------------------------------------------- 00fAAAAAEAAABLZW9CcAEAAE8CAAIAAgACACCjslPqt2D6NcKorbD84whd6oBbXo zFIaKhw0Qzi6MNgAEAhuoWllJK+/uWwq+kRG4dpm8bbUEHQG5TIXGX6EIWMC8d9L 9kLFD/pS4mYZOFRY9iAMe7+WnCRgQ6OyqR11IUGQ== ------------------[ End Ciphire Signed Message ]----------------
Hallo, Sandy Drobic wrote:
Ich wäre schon froh, wenn ich eine brauchbare Beschreibung in Englisch finden würde. (^-^)
Was hälst du von ... ? http://www.cyrusoft.com/sieve/ http://wiki.fastmail.fm/wiki/index.php/SieveExamples Thomas.
Sandy Drobic schrieb:
Sollte funktionieren, sobald der Mailbox_transport auf procmail gesetzt ist. In /etc/postfix/main.cf mailbox_transport=procmail setzen.
Setze dann am besten den fallback_transport = cyrus.
Ich habe die main.cf entsprechend geändert, allerdings werden nun keine
E-Mails mehr zugestellt. in der mail-logdatei finde ich:
Apr 27 17:28:46 FTE-Server postfix/pipe[7372]: AD8FC2993:
to=
Ralf Tempel wrote:
Ich habe die main.cf entsprechend geändert, allerdings werden nun keine E-Mails mehr zugestellt. in der mail-logdatei finde ich:
Apr 27 17:28:46 FTE-Server postfix/pipe[7372]: AD8FC2993: to=
, relay=procmail, delay=2036, status=deferred (temporary failure) was muß ich noch tun, bzw. wo könnte der Fehler liegen?
AFAIK erwartet postfix die Filterdatei als /etc/procmailrc. Wo ist die Filterdatei denn abgelegt? Hier noch eine kurze Anleitung dazu (sogar in Deutsch) (^-^) http://www.postfix-howto.de/procmail_conf.html Sandy
Sandy Drobic schrieb:
AFAIK erwartet postfix die Filterdatei als /etc/procmailrc. Wo ist die Filterdatei denn abgelegt?
In jedem Home-Verzeichnis, so wie es vorher mit dem alten Imap funktioniert hat. Beste Grüße Ralf -- ---------------------[ Ciphire Signature ]---------------------- From: rte-suse@arcor.de signed email body (188 characters) Date: on 27 April 2005 at 22:32:51 UTC To: suse-linux@suse.com ---------------------------------------------------------------- : Ciphire has secured this email against identity theft. : Free download at www.ciphire.com. The garbled lines : below are the sender's verifiable digital signature. ---------------------------------------------------------------- 00fAAAAAEAAAATE3BCvAAAABECAAIAAgACACCjslPqt2D6NcKorbD84whd6oBbXo zFIaKhw0Qzi6MNgAEAhuoWllJK+/uWwq+kRG4dpm8bbUEHQG5TIXGX6EIWMC+DsE 8bmHTK2cDfo0m9UciDzZsMQLpMjFz9jFzif4jCLg== ------------------[ End Ciphire Signed Message ]----------------
Ralf Tempel schrieb:
Sandy Drobic schrieb:
AFAIK erwartet postfix die Filterdatei als /etc/procmailrc. Wo ist die Filterdatei denn abgelegt?
In jedem Home-Verzeichnis, so wie es vorher mit dem alten Imap funktioniert hat.
Die /etc/procmailrc. gibt es übrigens auch. das war vorher auch schon so. Hier mal die main.cf. und die master.cf Vielleicht springt jemandem ja was ins Auge: Main.cf daemon_directory = /usr/lib/postfix #default_privs = nobody myhostname = FTE-Server.foliant #myhostname = virtual.domain.tld #mydomain = domain.tld #myorigin = $myhostname #myorigin = $mydomain # inet_interfaces = all # inet_interfaces = $myhostname # inet_interfaces = $myhostname, localhost #proxy_interfaces = #proxy_interfaces = 1.2.3.4 #mydestination = $myhostname, localhost.$mydomain #mydestination = $myhostname, localhost.$mydomain $mydomain #mydestination = $myhostname, localhost.$mydomain, $mydomain, # mail.$mydomain, www.$mydomain, ftp.$mydomain #local_recipient_maps = unix:passwd.byname $alias_maps #local_recipient_maps = proxy:unix:passwd.byname $alias_maps #local_recipient_maps = #unknown_local_recipient_reject_code = 550 unknown_local_recipient_reject_code = 450 # file:/root #mynetworks_style = class mynetworks_style = subnet #mynetworks_style = host #mynetworks = 168.100.189.0/28, 127.0.0.0/8 #mynetworks = $config_directory/mynetworks #mynetworks = hash:/etc/postfix/network_table #relay_domains = $mydestination #relayhost = $mydomain #relayhost = gateway.my.domain #relayhost = uucphost #relayhost = [an.ip.add.ress] #relay_recipient_maps = hash:/etc/postfix/relay_recipients #in_flow_delay = 1s #alias_maps = dbm:/etc/aliases #alias_maps = hash:/etc/aliases #alias_maps = hash:/etc/aliases, nis:mail.aliases #alias_maps = netinfo:/aliases #alias_database = dbm:/etc/aliases #alias_database = dbm:/etc/mail/aliases #alias_database = hash:/etc/aliases #alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases #recipient_delimiter = + #home_mailbox = Mailbox #home_mailbox = Maildir/ #mail_spool_directory = /var/mail #mail_spool_directory = /var/spool/mail #mailbox_command = /some/where/procmail #mailbox_command = /some/where/procmail -a "$EXTENSION" #luser_relay = $user@other.host #luser_relay = $local@other.host #luser_relay = admin+$local #header_checks = regexp:/etc/postfix/header_checks #fast_flush_domains = $relay_domains #fast_flush_domains = #smtpd_banner = $myhostname ESMTP $mail_name #smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) #local_destination_concurrency_limit = 2 #default_destination_concurrency_limit = 20 debug_peer_level = 2 #debug_peer_list = 127.0.0.1 #debug_peer_list = some.domain debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin xxgdb $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/sbin/sendmail newaliases_path = /usr/bin/newaliases mailq_path = /usr/bin/mailq setgid_group = maildrop manpage_directory = /usr/share/man sample_directory = /usr/share/doc/packages/postfix/samples readme_directory = /usr/share/doc/packages/postfix/README_FILES canonical_maps = hash:/etc/postfix/canonical virtual_maps = hash:/etc/postfix/virtual relocated_maps = hash:/etc/postfix/relocated transport_maps = hash:/etc/postfix/transport sender_canonical_maps = hash:/etc/postfix/sender_canonical masquerade_exceptions = root masquerade_classes = envelope_sender, header_sender, header_recipient program_directory = /usr/lib/postfix masquerade_domains = defer_transports = disable_dns_lookups = no content_filter = smtp:[127.0.0.1]:10024 mailbox_command = /usr/lib/cyrus/bin/deliver #mailbox_transport = cyrus mailbox_transport = procmail fallback_transport = cyrus smtpd_sender_restrictions = hash:/etc/postfix/access strict_rfc821_envelopes = no smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination smtp_sasl_auth_enable = yes smtpd_sasl_auth_enable = no smtpd_use_tls = no smtp_use_tls = no alias_maps = hash:/etc/aliases mailbox_size_limit = 0 message_size_limit = 10240 smtp_sasl_security_options = smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd recipient_canonical_maps = hash:/etc/postfix/recipient_canonical relayhost = xxxxxxxxxx.de html_directory = /usr/share/doc/packages/postfix/html Und hier die master.cf: smtp inet n - n - 50 smtpd -o content_filter=smtp:[127.0.0.1]:10024 # smtp inet n - n - 8 smtpd -o content_filter=smtp:[127.0.0.1]:10024 # smtp inet n - n - 2 smtpd -o # content_filter=smtp:[127.0.0.1]:10024 #smtps inet n - n - 2 smtpd -o smtpd_tls_wrappermode=yes -o # content_filter=smtp:[127.0.0.1]:10024 # -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes #submission inet n - n - - smtpd # -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes #628 inet n - n - - qmqpd pickup fifo n - n 60 1 pickup cleanup unix n - n - 0 cleanup qmgr fifo n - n 300 1 qmgr #qmgr fifo n - n 300 1 nqmgr #tlsmgr fifo - - n 300 1 tlsmgr rewrite unix - - n - - trivial-rewrite bounce unix - - n - 0 bounce defer unix - - n - 0 bounce flush unix n - n 1000? 0 flush proxymap unix - - n - - proxymap smtp unix - - n - - smtp relay unix - - n - - smtp # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5 showq unix n - n - - showq error unix - - n - - error local unix - n n - - local virtual unix - n n - - virtual lmtp unix - - n - - lmtp # localhost:10025 inet n - n - - smtpd -o content_filter= [127.0.0.1]:10025 inet n - y - - smtpd -o content_filter= -o local_recipient_maps= -o relay_recipient_maps= -o smtpd_restriction_classes= -o smtpd_client_restrictions= -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o mynetworks=127.0.0.1/8 -o strict_rfc821_envelopes=yes -o smtpd_error_sleep_time=0 -o smtpd_soft_error_limit=1001 -o smtpd_hard_error_limit=1000 smtp-amavis unix - - y - 50 smtp -o smtp_data_done_timeout = 1200 # # Interfaces to non-Postfix software. Be sure to examine the manual # pages of the non-Postfix software to find out what options it wants. # # maildrop. See the Postfix MAILDROP_README file for details. # maildrop unix - n n - - pipe flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient} cyrus unix - n n - - pipe user=cyrus argv=/usr/lib/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user} uucp unix - n n - - pipe flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient) ifmail unix - n n - - pipe flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient) bsmtp unix - n n - - pipe flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient vscan unix - n n - 10 pipe user=vscan argv=/usr/sbin/amavis ${sender} ${recipient} procmail unix - n n - - pipe flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender} ${recipient} trace unix - - n - 0 bounce verify unix - - n - 1 verify -- ---------------------[ Ciphire Signature ]---------------------- From: rte-suse@arcor.de signed email body (6004 characters) Date: on 27 April 2005 at 23:01:24 UTC To: suse-linux@suse.com ---------------------------------------------------------------- : Ciphire has secured this email against identity theft. : Free download at www.ciphire.com. The garbled lines : below are the sender's verifiable digital signature. ---------------------------------------------------------------- 00fAAAAAEAAADEGXBCdBcAAJcCAAIAAgACACCjslPqt2D6NcKorbD84whd6oBbXo zFIaKhw0Qzi6MNgAEAhuoWllJK+/uWwq+kRG4dpm8bbUEHQG5TIXGX6EIWMC9MS0 wg+PtBNn+PwvIZVWuVoYaC3O5ASybCDYRwMfYufg== ------------------[ End Ciphire Signed Message ]----------------
On Thu, Apr 28, 2005 at 01:01:21AM +0200, Ralf Tempel wrote:
Ralf Tempel schrieb:
Sandy Drobic schrieb:
AFAIK erwartet postfix die Filterdatei als /etc/procmailrc. Wo ist die Filterdatei denn abgelegt?
In jedem Home-Verzeichnis, so wie es vorher mit dem alten Imap funktioniert hat.
Die /etc/procmailrc. gibt es übrigens auch. das war vorher auch schon so.
Hier mal die main.cf. und die master.cf Vielleicht springt jemandem ja was ins Auge:
Statt der kompletten main.cf tut's das nächste Mal auch die Ausgabe von postconf -n. Ist übersichtlicher.
Main.cf daemon_directory = /usr/lib/postfix myhostname = FTE-Server.foliant unknown_local_recipient_reject_code = 450 mynetworks_style = subnet debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin xxgdb $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/sbin/sendmail newaliases_path = /usr/bin/newaliases mailq_path = /usr/bin/mailq setgid_group = maildrop manpage_directory = /usr/share/man sample_directory = /usr/share/doc/packages/postfix/samples readme_directory = /usr/share/doc/packages/postfix/README_FILES canonical_maps = hash:/etc/postfix/canonical virtual_maps = hash:/etc/postfix/virtual relocated_maps = hash:/etc/postfix/relocated transport_maps = hash:/etc/postfix/transport sender_canonical_maps = hash:/etc/postfix/sender_canonical masquerade_exceptions = root masquerade_classes = envelope_sender, header_sender, header_recipient program_directory = /usr/lib/postfix masquerade_domains = defer_transports = disable_dns_lookups = no content_filter = smtp:[127.0.0.1]:10024 mailbox_command = /usr/lib/cyrus/bin/deliver
Das kann doch jetzt auskommentiert werden.
mailbox_transport = procmail fallback_transport = cyrus smtpd_sender_restrictions = hash:/etc/postfix/access strict_rfc821_envelopes = no smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination smtp_sasl_auth_enable = yes smtpd_sasl_auth_enable = no smtpd_use_tls = no smtp_use_tls = no alias_maps = hash:/etc/aliases mailbox_size_limit = 0 message_size_limit = 10240 smtp_sasl_security_options = smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd recipient_canonical_maps = hash:/etc/postfix/recipient_canonical relayhost = xxxxxxxxxx.de html_directory = /usr/share/doc/packages/postfix/html
Und hier die master.cf:
smtp inet n - n - 50 smtpd -o content_filter=smtp:[127.0.0.1]:10024 # smtp inet n - n - 8 smtpd -o content_filter=smtp:[127.0.0.1]:10024 # smtp inet n - n - 2 smtpd -o # content_filter=smtp:[127.0.0.1]:10024 #smtps inet n - n - 2 smtpd -o smtpd_tls_wrappermode=yes -o # content_filter=smtp:[127.0.0.1]:10024 # -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes #submission inet n - n - - smtpd # -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes #628 inet n - n - - qmqpd pickup fifo n - n 60 1 pickup cleanup unix n - n - 0 cleanup qmgr fifo n - n 300 1 qmgr #qmgr fifo n - n 300 1 nqmgr #tlsmgr fifo - - n 300 1 tlsmgr rewrite unix - - n - - trivial-rewrite bounce unix - - n - 0 bounce defer unix - - n - 0 bounce flush unix n - n 1000? 0 flush proxymap unix - - n - - proxymap smtp unix - - n - - smtp relay unix - - n - - smtp # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5 showq unix n - n - - showq error unix - - n - - error local unix - n n - - local virtual unix - n n - - virtual lmtp unix - - n - - lmtp # localhost:10025 inet n - n - - smtpd -o content_filter= [127.0.0.1]:10025 inet n - y - - smtpd -o content_filter= -o local_recipient_maps= -o relay_recipient_maps= -o smtpd_restriction_classes= -o smtpd_client_restrictions= -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o mynetworks=127.0.0.1/8 -o strict_rfc821_envelopes=yes -o smtpd_error_sleep_time=0 -o smtpd_soft_error_limit=1001 -o smtpd_hard_error_limit=1000 smtp-amavis unix - - y - 50 smtp -o smtp_data_done_timeout = 1200 # # Interfaces to non-Postfix software. Be sure to examine the manual # pages of the non-Postfix software to find out what options it wants. # # maildrop. See the Postfix MAILDROP_README file for details. # maildrop unix - n n - - pipe flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient} cyrus unix - n n - - pipe user=cyrus argv=/usr/lib/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user} uucp unix - n n - - pipe flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient) ifmail unix - n n - - pipe flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient) bsmtp unix - n n - - pipe flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient vscan unix - n n - 10 pipe user=vscan argv=/usr/sbin/amavis ${sender} ${recipient} procmail unix - n n - - pipe flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender} ${recipient} trace unix - - n - 0 bounce verify unix - - n - 1 verify
Sonst fällt mir auch nichts auf. Steht wirklich nicht mehr in den Logs? Gruß, Jürgen
Jürgen Knelangen schrieb:
Sonst fällt mir auch nichts auf. Steht wirklich nicht mehr in den Logs?
Hier die komplette Ausgabe für eine Testmail, die ich intern verschickt
habe:
Apr 28 14ostfix/smtpd[20436]: connect from FTE-Server.foliant[192.168.0.1]
Apr 28 14:28:31 FTE-Server postfix/smtpd[20436]: D73F555A7:
client=FTE-Server.foliant[192.168.0.1]
Apr 28 14:28:31 FTE-Server postfix/cleanup[20439]: D73F555A7:
message-id=<200504281428.31505.rte-suse@arcor.de>
Apr 28 14:28:31 FTE-Server postfix/qmgr[19827]: D73F555A7:
from=
Hallo, Ralf Tempel wrote:
Hallo! Ich bin auf meinem SUSE 9.2-Server auf Cyrus umgestiegen. Alles (Postfix, SpamAssassin, Virenkontrolle) funktioniert soweit gut, was noch fehlt, ist die Filterung der Emails. Da ich bereits ein recht ausgefeiltes Filtersystem mit Procmail für den alten Imap-Server erstellt habe, würde ich das gerne weiter benutzen. Geht das? Wenn ja, wie? Ja geht. Für den Backup eingehender Meldungen geht z.B. das folgende:
deliver = "/usr/sbin/cyrdeliver" uid = "ein-cyrus-user" box_backup = "backup" put_backup = "$deliver -a $uid -m $box_backup $uid" :0 c | ${put_backup} Wo das cyrus deliver Kommando bei suse liegt, musst du schauen. Die Lösung oben läuft auf einem Debian System.
Oder muss ich mich mit Sieve beschäftigen? Wo finde ich da einen anfängertauglichen deutschen Einstieg? Bei vorhandener procmail Filtersammlung würde ich dabei bleiben.
Thomas.
participants (4)
-
Jürgen Knelangen
-
Ralf Tempel
-
Sandy Drobic
-
Thomas Klopf