fetchmail + Postfix + Cyrus
hallo, habe hier ein Problem mit Postfix. Ich brauch Postfix nicht, um eine Email zu verschicken, ich brauche ihn lediglich, um die Emails, die mit Fetchmail eingesammelt wurden, an Cyrus weiterzugeben. Nun benutze ich in Cyrus jedoch keine Systemuser, sondern ich benutze eine sasldb2 Datenbank für die userverwaltung (sasl_pwchedck_method: auxprop). fetchmail holt sich die mails mit <<poll "pop.onlinehome.de" protocol POP3 : user "xyz" there with password "xxx" is "max" here smtpname "max";>> ab. Die Fetchmail-Log meldet dann auch brav "flushed" Das Problem ist, dass die Emails irgendwo im Datennirvana verschwinden und nie ankommen. Der Benutzer max funktioniert in Cyrus einwandfrei. Ich vermute ich habe in der etc/postfix/main.cf einfach etwas vergessen, deswegen schicke ich sie mit. Es fehlt nur der Teil, den YAST auch nicht antastet, der zwischen den Kommentaren steht: mailbox_transport = cyrus mailq_path = /usr/bin/mailq manpage_directory = /usr/share/man masquerade_classes = envelope_sender, header_sender, header_recipient mydestination = $myhostname, localhost.$mydomain myhostname = Servername.Domain mynetworks = 10.0.0.0/24, 127.0.0.0/8 myorigin = $mydomain newaliases_path = /usr/bin/newaliases program_directory = /usr/lib/postfix queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/packages/postfix/README_FILES relayhost = smtp.isp.com relocated_maps = hash:/etc/postfix/relocated sample_directory = /usr/share/doc/packages/postfix/samples sender_canonical_maps = hash:/etc/postfix/sender_canonical sendmail_path = /usr/sbin/sendmail setgid_group = maildrop smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = noanonymous smtpd_helo_required = yes smtpd_sender_restrictions = hash:/etc/postfix/access smtpd:etrn_restrictions = reject strict_rfc821_envelopes = yes transport_maps = hash:/etc/postfix/transport smtp_sasl_security_options = noanonymous smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd danke mfg max
Am Sonntag, 8. Februar 2004 20:17 schrieb Max Maahn:
habe hier ein Problem mit Postfix. Ich brauch Postfix nicht, um eine Email zu verschicken, ich brauche ihn lediglich, um die Emails, die mit Fetchmail eingesammelt wurden, an Cyrus weiterzugeben. Nun benutze ich in Cyrus jedoch keine Systemuser, sondern ich benutze eine sasldb2 Datenbank für die userverwaltung (sasl_pwchedck_method: auxprop). fetchmail holt sich die mails mit <<poll "pop.onlinehome.de" protocol POP3 : user "xyz" there with password "xxx" is "max" here smtpname "max";>> ab. Die Fetchmail-Log meldet dann auch brav "flushed" Das Problem ist, dass die Emails irgendwo im Datennirvana verschwinden und nie ankommen. Der Benutzer max funktioniert in Cyrus einwandfrei. Ich vermute ich habe in der etc/postfix/main.cf einfach etwas vergessen, deswegen schicke ich sie mit. Es fehlt nur der Teil, den YAST auch nicht antastet, der zwischen den Kommentaren steht:
# mailq Zeigt dir die Queue von Postfix und im Log siehst Du was so passiert ist. Welche Versionen setzt Du denn ein?
mailbox_transport = cyrus mailq_path = /usr/bin/mailq manpage_directory = /usr/share/man masquerade_classes = envelope_sender, header_sender, header_recipient mydestination = $myhostname, localhost.$mydomain myhostname = Servername.Domain mynetworks = 10.0.0.0/24, 127.0.0.0/8 myorigin = $mydomain newaliases_path = /usr/bin/newaliases program_directory = /usr/lib/postfix queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/packages/postfix/README_FILES relayhost = smtp.isp.com relocated_maps = hash:/etc/postfix/relocated sample_directory = /usr/share/doc/packages/postfix/samples sender_canonical_maps = hash:/etc/postfix/sender_canonical sendmail_path = /usr/sbin/sendmail setgid_group = maildrop smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = noanonymous smtpd_helo_required = yes smtpd_sender_restrictions = hash:/etc/postfix/access smtpd:etrn_restrictions = reject strict_rfc821_envelopes = yes transport_maps = hash:/etc/postfix/transport smtp_sasl_security_options = noanonymous smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
-- Andreas
# mailq
Zeigt dir die Queue von Postfix und im Log siehst Du was so passiert ist.
Das Queue war leer. Allerdings hat er gemeckert, dass myhostname nicht korrekt vergeben sei. mir ist dann aufgefallen, dass mydomain gar nicht definiert ist. kaum hab ich das gemacht, spuckt mir fetchmail wieder "smtp error: 450 <max>: user unknown in local recipient table" aus. In var/log/mail steht dann analog dazu "reject: RCPT from localhost [127.0.0.1]: 450 <max>: user unknown in local recipient table; from=<bla@bla.de> to <max> proto=ESMTP helo=<localhost>" Allerdings muss ich dazusagen, dass ich unter myhostname und den anderen parametern, wie myhostname nur den servernamen, bzw servername.dyndnsadresse angegeben hab, da ich gar keinen dns server hier laufen habe und ihn ja auch gar nicht brauche und will, da ja postfix wie gesagt nichts verschicken soll. hab da jetzt genau stehen: mydestination = $myhostname, localhost.$mydomain myhostname = servername.xyz.dyndns.org mydomain = xyz.dyndns.org mynetworks = 192.168.0.0/24 myorigin = $mydomain
Welche Versionen setzt Du denn ein?
suse 9 mit fetchmal 6.2.3, postfix 2.0.14, cyrus 2.1.15
participants (2)
-
Andreas Winkelmann
-
Max Maahn