Postfix sendet ohne Passwort

Postfix, QMail, Sendmail, Dovecot, Cyrus, Courier, Anti-Spam
amiga1200
Posts: 213
Joined: 2007-01-13 19:58
 

Postfix sendet ohne Passwort

Post by amiga1200 »

Ich konfiguriere gerade postfix mit dovecot:
Soweit läuft alles Senden & empfangen geht!
Doch es wird auch ohne Passwort verschickt
Mit mynetworks=192... ist Postfix erst mal sicher,
So lange das Problem nicht behoben ist.

Aus dem Netz habe ich folgende Zeilen in der main.cf
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/smtp_auth
smtpd_sasl_auth_enable = no
smtpd_sasl_local_domain = $myhostname
broken_sasl_auth_clients = yes

in etc/postfix/smtp_auth steht:
smtp.provider.de user:password
und postmap smtp_auth ist gemacht.
relayhost = kann das simmen?

Hat jemand eine Idee?
Edit: Der Server sendet direkt raus ohne Prvider, ich lese gerade,
die Datei smtp_auth ist dazu da, über ein Provider zu senden


main.cf

Code: Select all

biff = no
broken_sasl_auth_clients = yes
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = 
daemon_directory = /usr/lib/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
defer_transports = 
delay_warning_time = 1h
disable_dns_lookups = no
disable_mime_output_conversion = no
html_directory = /usr/share/doc/packages/postfix-doc/html
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mail_spool_directory = /var/mail
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mailbox_transport = 
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains = 
masquerade_exceptions = root
message_size_limit = 0
message_strip_characters = \0
mydestination = $myhostname, localhost.$mydomain
myhostname = mein.de
mynetworks = 212.x.x.x/27, 127.0.0.1/32
mynetworks_style = subnet
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/packages/postfix-doc/README_FILES
relay_clientcerts = 
relayhost = 
relocated_maps = hash:/etc/postfix/relocated
sample_directory = /usr/share/doc/packages/postfix-doc/samples
sender_canonical_maps = hash:/etc/postfix/sender_canonical
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtp_enforce_tls = no
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/smtp_auth
smtp_sasl_security_options = noanonymous
smtp_tls_CAfile = 
smtp_tls_CApath = 
smtp_tls_cert_file = 
smtp_tls_key_file = 
smtp_tls_session_cache_database = 
smtp_use_tls = no
smtpd_client_restrictions = 
smtpd_helo_required = no
smtpd_helo_restrictions = 
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination
smtpd_sasl_auth_enable = no
smtpd_sasl_local_domain = $myhostname
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_tls_CAfile = 
smtpd_tls_CApath = 
smtpd_tls_ask_ccert = no
smtpd_tls_cert_file = 
smtpd_tls_key_file = 
smtpd_tls_received_header = no
smtpd_use_tls = no
strict_8bitmime = no
strict_rfc821_envelopes = no
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_domains = hash:/etc/postfix/virtual
virtual_alias_maps = hash:/etc/postfix/virtual
User avatar
daemotron
Administrator
Administrator
Posts: 2641
Joined: 2004-01-21 17:44
 

Re: Postfix sendet ohne Passwort

Post by daemotron »

Du willst smtpd_auth; das regelt das Verhalten von Postfix, wenn es Mails entgegennimmt. Die smtp_ Einstellungen regeln das Verhalten von Postfix, wenn es selbst Mails versendet.
“Some humans would do anything to see if it was possible to do it. If you put a large switch in some cave somewhere, with a sign on it saying 'End-of-the-World Switch. PLEASE DO NOT TOUCH', the paint wouldn't even have time to dry.” — Terry Pratchett, Thief of Time
amiga1200
Posts: 213
Joined: 2007-01-13 19:58
 

Re: Postfix sendet ohne Passwort

Post by amiga1200 »

Du willst smtpd_auth; das regelt das Verhalten von Postfix, wenn es Mails entgegennimmt. Die smtp_ Einstellungen regeln das Verhalten von Postfix, wenn es selbst Mails versendet.

Wie meins Du das?
es geht ja um Versenden von Mails, also Postfix soll die direkt zum
User ausliefern.
Was ja schon funktioniert, leider auch ohne Passwort.
Im Netz habe ich was von TLS gehört, brauch man das?
ddm3ve
Moderator
Moderator
Posts: 1235
Joined: 2011-07-04 10:56
 

Re: Postfix sendet ohne Passwort

Post by ddm3ve »

Was meinst Du genau?

Der Postfix nimmt Emails ohne Passwort an, die er lokal auf seine verwaltete Accounts weiter stellt...


Oder, man ist in der Lage eine Email von extern über einen der verwalteten Accounts ohne Passwort Autentifizierung zu verwenden?

Oder kann eine lokal auf dem gleichen Server laufende Webanwendung ohne smtp Authentifizierung Emails versenden?


Welcher der 3 Fälle ist für dich zutreffend und was davon soll sich ändern?
02:32:12 21.12.2012 und dann sind Deine Probleme alle unwichtig.
User avatar
daemotron
Administrator
Administrator
Posts: 2641
Joined: 2004-01-21 17:44
 

Re: Postfix sendet ohne Passwort

Post by daemotron »

amiga1200 wrote:es geht ja um Versenden von Mails, also Postfix soll die direkt zum
User ausliefern.
Äh, ausliefern != senden. Postfix kann grundsätzlich drei Dinge tun:

1. Mails annehmen (von einem einliefernden Client oder einliefernden anderen MTA)
2. Mails (die zuvor angenommen wurden) in ein Postfach legen (==> Mail delivery agent)
3. Mails (die zuvor angenommen wurden) an einen anderen Mailserver versenden.

Üblicherweise will man für Punkt 1 eine Konfiguration haben, die
- Mails für Domains, für die sich Postfix selbst zuständig fühlt, ohne Authentifizierung annimmt (und sie dann ins entsprechende Postfach packt)
- Mails für Domains, für die sich Postfix nicht selbst zuständig fühlt, nur nach erfolgter Authentifizierung animmt (und sie dann an einen anderen MTA weiterleitet).

Konfigurationsdirektiven, die sich auf ebenjenen Punkt 1 beziehen, beginnen bei Postfix mit smtpd_, während Konfigurationsdirektiven, die sich auf Punkt 3 beziehen, mit smtp_ beginnnen.

Daher meine Aussage, dass Du smtpd_auth und nicht smtp_auth haben möchtest.
amiga1200 wrote:Was ja schon funktioniert, leider auch ohne Passwort.
Im Netz habe ich was von TLS gehört, brauch man das?
TLS hat mit Authentifizierung (vordergründig) nichts zu tun. TLS ist eine Transportverschlüsselung, um die Verbindung zwischen Client und Server oder Server und Server abzusichern.


P. S. ich verweise mal auf http://www.rootforum.org/forum/viewtopi ... 10&t=46643 - dort findet sich eine funktionierende Beispielkonfiguration.
Last edited by daemotron on 2012-07-12 16:39, edited 1 time in total.
“Some humans would do anything to see if it was possible to do it. If you put a large switch in some cave somewhere, with a sign on it saying 'End-of-the-World Switch. PLEASE DO NOT TOUCH', the paint wouldn't even have time to dry.” — Terry Pratchett, Thief of Time
amiga1200
Posts: 213
Joined: 2007-01-13 19:58
 

Re: Postfix sendet ohne Passwort

Post by amiga1200 »

man ist in der Lage eine Email von extern über einen der verwalteten Accounts ohne Passwort Autentifizierung zu verwenden?

natürlich habe ich erst mal mynetworks=192.168.x.x gesetzt,
Postfix ist auch noch nicht Extern erreichbar,
solange bis das Problem behoben ist.

Der Server hat 2 Netzwerk Karten (Intern/Extern), und steht bei mir im Keller, und ich teste nur Intern

Zum Abrufen der Mail über Dovecot wird ein Passwort verlang.
Ich sende über ein Windows Rechner, und wenn ich das Passwort ändere, kann ich
trotzdem Mail Senden eben noch mal getestet, man kann auch den Username ändern!

Musst man dann für smtp eine Autentifizierung setzen = (Programm installieren?)

oder wird intern generell kein Passwort beim Senden verlang?
User avatar
Joe User
Project Manager
Project Manager
Posts: 11184
Joined: 2003-02-27 01:00
Location: Hamburg
 

Re: Postfix sendet ohne Passwort

Post by Joe User »

amiga1200 wrote:oder wird intern generell kein Passwort beim Senden verlang?
Sieh Dir mal Deine Config etwas genauer an, insbesondere mynetworks und smtpd_recipient_restrictions und lese die Bedeutung (nicht nur) dieser Optionen in der Doku nach.
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
amiga1200
Posts: 213
Joined: 2007-01-13 19:58
 

Re: Postfix sendet ohne Passwort

Post by amiga1200 »

Bin leider immer noch nicht weiter.
Also ich will mit mein Windows Mailprogramm über mein Linuxserver
eine Mail versenden, (der Server soll die Mail direkt zustellen ohne Provider) Domaine & Feste IP vorhanden.
Damit ist wohl das gemeint:
1. Mails annehmen (von einem einliefernden Client oder einliefernden anderen MTA)

Was ja eigentlich schon geht, nur auch ohne Passwort:
Also ich kann das Passwort unter mein Win-Mail Programm ändern,und Postfix versendet alles Brav raus.

Daher bin ich de Meinung, es hat mit der authentication zu tun.
Mein Mailprogramm habe ich bei den Ausgangserver auf "erfordert Authentifikation" gesetzt (gleiche Einstellung wie pop)

Dann habe ich meine main.cf ergänzt.

smtpd_sasl_type=dovecot
smtpd_sasl_path=private/auth
smtpd_sasl_auth_enable=yes
smtpd_recipient_restrictions=permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination

ist Dovecot überhaupt dazu da?
Postfix meldet dann:
fatal: no SASL authentication mechanisms

ich vermute, das Fehler liegt an Dovecot:

Code: Select all

  # 1.2.17: /etc/dovecot/dovecot.conf
# OS: Linux 3.1.10-1.16-desktop x86_64 openSUSE 12.1 (x86_64) 
protocols: pop3 imap
ssl: no
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
mail_location: mbox:~/mail:INBOX=/var/mail/%u
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_plugin_dir(default): /usr/lib64/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib64/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib64/dovecot/modules/pop3
lda:
  mail_plugin_dir: /usr/lib64/dovecot/modules/lda
auth default:
  passdb:
    driver: pam
  userdb:
    driver: passwd
Noch mal aktuelle main.cf

Code: Select all

alias_maps = hash:/etc/aliases
biff = no
broken_sasl_auth_clients = yes
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = 
daemon_directory = /usr/lib/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
defer_transports = 
delay_warning_time = 1h
disable_dns_lookups = no
disable_mime_output_conversion = no
html_directory = /usr/share/doc/packages/postfix-doc/html
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mail_spool_directory = /var/mail
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mailbox_transport = 
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains = 
masquerade_exceptions = root
message_size_limit = 0
message_strip_characters = \0
mydestination = $myhostname, localhost.$mydomain
myhostname = xxx.de
mynetworks = 212.00.xx.xxx/27, 127.0.0.1/32
mynetworks_style = subnet
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/packages/postfix-doc/README_FILES
relay_clientcerts = 
relayhost = 
relocated_maps = hash:/etc/postfix/relocated
sample_directory = /usr/share/doc/packages/postfix-doc/samples
sender_canonical_maps = hash:/etc/postfix/sender_canonical
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtp_enforce_tls = no
smtp_sasl_auth_enable = no
smtp_sasl_password_maps = hash:/etc/postfix/smtp_auth
smtp_sasl_security_options = noanonymous
smtp_tls_CAfile = 
smtp_tls_CApath = 
smtp_tls_cert_file = 
smtp_tls_key_file = 
smtp_tls_session_cache_database = 
smtp_use_tls = no
smtpd_client_restrictions = 
smtpd_helo_required = no
smtpd_helo_restrictions = 
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_tls_CAfile = 
smtpd_tls_CApath = 
smtpd_tls_ask_ccert = no
smtpd_tls_cert_file = 
smtpd_tls_key_file = 
smtpd_tls_received_header = no
smtpd_use_tls = no
strict_8bitmime = no
strict_rfc821_envelopes = no
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_domains = hash:/etc/postfix/virtual
virtual_alias_maps = hash:/etc/postfix/virtual
ist es ratsam, die Config Dateien in Kurzform zu halten
also einmal postconf -n > main.cf ?


Betr. Suse 12.1
Last edited by amiga1200 on 2012-07-13 17:46, edited 4 times in total.
ddm3ve
Moderator
Moderator
Posts: 1235
Joined: 2011-07-04 10:56
 

Re: Postfix sendet ohne Passwort

Post by ddm3ve »

Dein Windows Rechner hängt dieser in dem Netz?

212.x.x.x/27
02:32:12 21.12.2012 und dann sind Deine Probleme alle unwichtig.
amiga1200
Posts: 213
Joined: 2007-01-13 19:58
 

Re: Postfix sendet ohne Passwort

Post by amiga1200 »

Dein Windows Rechner hängt dieser in dem Netz?
212.x.x.x/27

Genau den XP ist mit SR1 so sicher wie Linux!

Nur ein Spass
Der Server hat 2 Netzwerk Karten Intern & Extern.
Bisher teste ich nur Intern
User avatar
Joe User
Project Manager
Project Manager
Posts: 11184
Joined: 2003-02-27 01:00
Location: Hamburg
 

Re: Postfix sendet ohne Passwort

Post by Joe User »

Solange Dein Mailclient in mynetworks steckt, wird Postfix dank Deiner aktuellen smtpd_*_restrictions dessen Mails blind annehmen. Du solltest die Doku wirklich mal lesen, dann verstehst Du es auch.
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
amiga1200
Posts: 213
Joined: 2007-01-13 19:58
 

Re: Postfix sendet ohne Passwort

Post by amiga1200 »

kleiner Schritt weiter
Ich teste jetzt von außerhalb, zum Glück habe ich zuhause auch eine Feste IP, die ich dort eingetragen habe:

mynetworks = 85.xx.xxx.xx, 127.0.0.1/32

Mit smtpd_*_restrictions habe ich mir dank ausführlicher Doku auch befasst
http://www.admin-magazin.de/Online-Arti ... (offset)/2

Meine smtpd_recipient_restrictions
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination, permit_sasl_authenticated,reject_non_fqdn_recipient,reject_unknown_recipient_domain,reject_unauth_destination,check_recipient_access hash:/etc/postfix/relocated, reject_unauth_pipelining,permit
Aber Postfix nimmt immer noch alles ohne Passwort von mein Win-Mailprogramm an!

als POP-Server habe ich Dovecot.
Nun lese ich immer was von SASL und SMTP-AUTH

Frage: wird saslauthd benötigt ?
Beim Starten bekomme ich eine Fehlermeldung!Failed to issue method call: Unit saslauthd.service failed to load: No such file or directory. See system logs and 'systemctl status saslauthd.service' for details.

Gehört saslauthd nicht zur Cyrus SASL ???

Code: Select all

alias_maps = hash:/etc/aliases
biff = no
broken_sasl_auth_clients = yes
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = 
daemon_directory = /usr/lib/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
defer_transports = 
delay_warning_time = 1h
disable_dns_lookups = no
disable_mime_output_conversion = no
html_directory = /usr/share/doc/packages/postfix-doc/html
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mail_spool_directory = /var/mail
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mailbox_transport = 
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains = 
masquerade_exceptions = root
message_size_limit = 0
message_strip_characters = \0
mydestination = $myhostname, localhost.$mydomain
myhostname = mein.de
#mynetworks = 212.86.53.192/27, 127.0.0.1/32
mynetworks = 85.xxx.xxx.xx, 127.0.0.1/32
mynetworks_style = subnet
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/packages/postfix-doc/README_FILES
relay_clientcerts = 
relayhost = 
relocated_maps = hash:/etc/postfix/relocated
sample_directory = /usr/share/doc/packages/postfix-doc/samples
sender_canonical_maps = hash:/etc/postfix/sender_canonical
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtp_enforce_tls = no
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/smtp_auth
smtp_sasl_security_options = noanonymous
smtp_tls_CAfile = 
smtp_tls_CApath = 
smtp_tls_cert_file = 
smtp_tls_key_file = 
smtp_tls_session_cache_database = 
smtp_use_tls = no
 

smtpd_client_restrictions =
  permit_mynetworks,
  permit_sasl_authenticated,
  reject_unknown_reverse_client_hostname,
  reject_unauth_pipelining,
  permit


smtpd_helo_required = no
smtpd_helo_restrictions = 
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination, permit_sasl_authenticated,reject_non_fqdn_recipient,reject_unknown_recipient_domain,reject_unauth_destination,check_recipient_access hash:/etc/postfix/relocated, reject_unauth_pipelining,permit
smtpd_sasl_auth_enable = no
smtpd_sasl_local_domain = $myhostname
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_tls_CAfile = 
smtpd_tls_CApath = 
smtpd_tls_ask_ccert = no
smtpd_tls_cert_file = 
smtpd_tls_key_file = 
smtpd_tls_received_header = no
smtpd_use_tls = no
strict_8bitmime = no
strict_rfc821_envelopes = no
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_domains = hash:/etc/postfix/virtual
virtual_alias_maps = hash:/etc/postfix/virtual
Last edited by amiga1200 on 2012-07-14 16:54, edited 1 time in total.
User avatar
Joe User
Project Manager
Project Manager
Posts: 11184
Joined: 2003-02-27 01:00
Location: Hamburg
 

Re: Postfix sendet ohne Passwort

Post by Joe User »

Nimm bitte die offizielle Postfix-Doku und lese dort die Bedeutung jedes einzelnen Wertes Deiner smtpd_*_restrictions nach. Solange Du diese nicht verstehst, wirst Du zwangsläufig immer wieder auf erhebliche Probleme stossen.
http://www.postfix.org/documentation.html
http://www.postfix.org/postconf.5.html
Bei der Gelegenheit kannst Du auch gleich die anderen Optionen und deren Werte nachschlagen und Deine main.cf entsprechend anpassen, sofern nötig.


Und merke Dir bitte, dass wenn erfahrenere Leute von "Doku" oder "Manual/Handbuch" reden, dann meinen sie immer und ausschliesslich die originale/offizielle Dokumentation (Website/Manpage/README) des jeweiligen Produkts und nicht irgendwelche (inoffiziellen) Blogs/Wikis/Websites.


Noch ein Tip: Immer eine Baustelle nach der anderen fertigstellen, sonst verlierst Du schnell den Überblick und hast dann die dreifache Arbeit.


Zu SASL und SMTP-AUTH (Beides will man als guter Postmaster haben) findest Du das Wichtigste ebenfalls in der Postfix-Doku. Spezifische Fragen, gespickt mit Configs und Logs, beantworten wir selbstverständlich gerne, aber etwas mehr Lernbereitschaft sollte schon erkennbar sein, das funktionierte früher bei Dir besser.


So, genug kritisiert/aufgeklärt, nicht dass ich Dich noch verschrecke ;)

Ich hoffe, Du verstehst nach der Doku besser, was ich Dir schon den ganzen Thread lang mit den Hinweisen auf mynetworks/smtpd_*_restrictions sagen will. Falls nicht, frage bitte etwas spezifischer, was genau Du nicht verstehst, danke.


Beim nächsten Post lieferst Du bitte die aktuellen Ausgaben von:

Code: Select all

postconf -n
dovecot -n
Danke und nun viel Erfolg.
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
amiga1200
Posts: 213
Joined: 2007-01-13 19:58
 

Re: Postfix sendet ohne Passwort

Post by amiga1200 »

nach zig Stunden wieder ein kleiner Schritt weiter

smtpd_recipient_restrictions = reject_unknown_recipient_domain, permit_sasl_authenticated, reject_unauth_destination

mit permit_mynetworks wurde meine IP ohne AUTH immer durch gewunken.
damit bekomme ich jetzt:
NOQUEUE: reject: RCPT from unknown[85.18...
Relay access denied

Mein Mailprogramm steht auf: Server erfordert authentifizierung
Mit Klartext Authentifizieren
Dovecot ist Aktiv
postconf -a ergibt
cyrus
dovecot
kann es sein, das Postfix cyrus erwartet? glaube ich aber nicht

Unsicher bin ich bei mynetworks = 0.0.0.0/0
Hier steht in Deine Anleitung nichts außer mynetworks_style = host
myhostname = mein.de ohne www davor?
in der main.cf lies man oft
smtpd_sasl_path = private/auth
oder
smtpd_sasl_path = /var/spool/postfix/private/auth
in der dovecot.conf steht unter socket listen
path = /var/spool/postfix/private/auth
mailbox_command

master.cf
smtp inet n - n - - smtpd
Also chroot=n #ist es egal?

was ist richtig:
mailbox_command = procmail -a "$EXTENSION"
mailbox_command = /usr/lib/dovecot/deliver

Code: Select all

alias_maps = hash:/etc/aliases
biff = no
broken_sasl_auth_clients = yes
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = 
daemon_directory = /usr/lib/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
defer_transports = 
delay_warning_time = 1h
disable_dns_lookups = no
disable_mime_output_conversion = no
html_directory = /usr/share/doc/packages/postfix-doc/html
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mail_spool_directory = /var/mail
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mailbox_transport = 
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains = 
masquerade_exceptions = root
message_size_limit = 0
message_strip_characters = \0
mydestination = $myhostname, localhost.$mydomain
myhostname = meine.de
mynetworks = 0.0.0.0/0
mynetworks_style = subnet
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/packages/postfix-doc/README_FILES
relay_clientcerts = 
relayhost = 
relocated_maps = hash:/etc/postfix/relocated
sample_directory = /usr/share/doc/packages/postfix-doc/samples
sender_canonical_maps = hash:/etc/postfix/sender_canonical
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtp_enforce_tls = no
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/smtp_auth
smtp_sasl_security_options = noanonymous
smtp_tls_CAfile = 
smtp_tls_CApath = 
smtp_tls_cert_file = 
smtp_tls_key_file = 
smtp_tls_session_cache_database = 
smtp_use_tls = no
smtpd_client_restrictions = 
smtpd_helo_required = no
smtpd_helo_restrictions = 
smtpd_recipient_restrictions = reject_unauth_destination, permit_sasl_authenticated
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_path = /var/spool/postfix/private/auth
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_tls_CAfile = 
smtpd_tls_CApath = 
smtpd_tls_ask_ccert = no
smtpd_tls_cert_file = 
smtpd_tls_key_file = 
smtpd_tls_received_header = no
smtpd_use_tls = no
strict_8bitmime = no
strict_rfc821_envelopes = no
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_domains = hash:/etc/postfix/virtual
virtual_alias_maps = hash:/etc/postfix/virtual
meine:/etc/dovecot/ori # 

Code: Select all

 1.2.17: /etc/dovecot/dovecot.conf
Warning: There is no way to login to this server: disable_plaintext_auth=yes, ssl=no, no non-plaintext auth mechanisms.
Warning: There is no way to login to this server: disable_plaintext_auth=yes, ssl=no, no non-plaintext auth mechanisms.
# OS: Linux 3.1.10-1.16-desktop x86_64 openSUSE 12.1 (x86_64) 
protocols: pop3 imap
ssl: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
mail_location: mbox:~/mail:INBOX=/var/mail/%u
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_plugin_dir(default): /usr/lib64/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib64/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib64/dovecot/modules/pop3
lda:
  mail_plugin_dir: /usr/lib64/dovecot/modules/lda
auth default:
  passdb:
    driver: shadow
  userdb:
    driver: passwd
  socket:
    type: listen
    client:
      path: /var/spool/postfix/private/auth
      mode: 432
      user: postfix
      group: postfix
Last edited by amiga1200 on 2012-07-16 10:48, edited 10 times in total.
amiga1200
Posts: 213
Joined: 2007-01-13 19:58
 

Re: Postfix sendet ohne Passwort:OK

Post by amiga1200 »

Das login in der dovecot.cf fehlte

auth default
mechanisms = plain login ## login gesetzt: alles ok
userdb passwd
...

Vielen Dank an allen, die geholfen haben.
Ich würde meine Konfiguration und Doku hier veröffentlichen,
an wem müsste man sich wenden?
Last edited by amiga1200 on 2012-07-16 14:15, edited 1 time in total.
User avatar
Joe User
Project Manager
Project Manager
Posts: 11184
Joined: 2003-02-27 01:00
Location: Hamburg
 

Re: Postfix sendet ohne Passwort

Post by Joe User »

Erstelle einfach einen neuen Thread im Mailserver-Subforum, danke.
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.