redhat 8+postfix + saslauthd

J

jlpicard55

Grünschnabel
hallo,

bin neu hier und bitte um eure hilfe.

ich habe einen rh8 server laufen, mit dem ich postfix betreibe und die mails versende.

entsprechende installation ist soweit auch am laufen.

probleme habe ich mit dem saslauthd.

teste ich telnet localhost 25 bekomme ich NICHT

250-AUTH PLAIN LOGIN

ich möchte aber meinen mailverkehr zum provider über tls absichern.

gegooglt hab ich schon ohne ende, aber ich finde den (meinen) fehler nicht.

hättet ihr tip's, wie ich die sache angehe.

danke schon mal +

grüsse
jlpicard
 
teste ich telnet localhost 25 bekomme ich NICHT
250-AUTH PLAIN LOGIN
Zu einer vollständigen Fehlerbeschreibung gehört hier: Was hast Du geschickt, und was hat der Server _alles_ zurück geschickt?

ich möchte aber meinen mailverkehr zum provider über tls absichern.
TLS ist nicht SMTP-Auth (welches mit saslauthd zusammen arbeitet).

Howto's dazu:
Debian/Postfix: SMTP-Auth einrichten
Probleme mit Postfix und SASL
Eine typische SMTP-Sitzung
ESMTP-Dialog (SMTP-Auth)

huschi.
 
hallo huschi,

hier die kpl. meldung

220 ncd1701ll.ncd.de ESMTP Postfix
ehlo localhost
250-ncd1701ll.ncd.de
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN


die mails sollen an den provider sollen mit smtp-auth übermittelt werden.

alle mails gehen jedoch nicht raus, sondern bekommen die meldung

550 You must authenticate to use

smtp_auth ist gefüllt mit dem server und der kennung+passwort (über thunderbird wurde getestet, funktioniert alles korrekt

aber über den linux-server geht es nicht.

smtpd.conf unter /usr/lib/sasl2 wie folgt neu angelegt:

pwcheck_method: saslauthd
mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5
log_level = 3
auxprop_plugin: sasldb

gruss
jlpicard
 
Um wirklich weiter zu kommen:
Über was für einen Server reden wir hier?
Ein dedizierter Server der die Emails annehmen und verschicken soll oder ein Server in Deinem lokalem Netzwerk der die Emails lediglich relayen soll?

Nach Deinem ersten Beitrag ersteres. Nach dem Zweiten wohl eher letzteres.

huschi.
 
Ist die SASL-Authentifizierung in der main.cf aktiviert bzw. wie sieht deine main.cf aus?
 
postfix - main.cf

alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter =
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
debug_peer_list = 127.0.0.1
disable_dns_lookups = yes
header_checks = regexp:/etc/postfix/header_checks
html_directory = /usr/share/doc/postfix-2.4.3-documentation/html
ignore_mx_lookup_error = yes
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
maximal_queue_lifetime = 2d
mydestination = $myhostname, localhost.$mydomain
mydomain = my_domain.com (geändert!)
myhostname = myserver.domain.com (geändert!)
mynetworks = xx.xx.xx/8, 127.0.0.0/8
newaliases_path = /usr/bin/newaliases.postfix
readme_directory = /usr/share/doc/postfix-2.4.3-documentation/readme
relayhost = [outbound.mailhop.org]:2525 (über dyndns soll versendet werden!)
sample_directory = /usr/share/doc/postfix-1.1.12/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/smtp_auth
smtp_sasl_security_options =
smtp_tls_CAfile = /etc/postfix/cacert.pem
smtp_tls_cert_file = /etc/postfix/smtpd.crt
smtp_tls_key_file = /etc/postfix/smtpd.key
smtp_tls_session_cache_database = btree:/etc/postfix/smtp_scache
smtp_use_tls = yes
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_tls_CAfile = /etc/postfix/cacert.pem
smtpd_tls_cert_file = /etc/postfix/smtpd.crt
smtpd_tls_key_file = /etc/postfix/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_database = btree:/etc/postfix/smtpd_scache
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
strict_rfc821_envelopes = no
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 450
.
.
.
EDIT (autom. Beitragszusammenführung) :
.

hallo,

hab gerade die main.cf gepostet.

bisher: mails werden lokal erstellt und gehen über provider nach draussen.
in der smtp_auth liegt der relay-server + kennung:kennwort

jetzt: versandt über dyndns (account freigeschaltet zum versand)
normal würde ich sagen: in der smtp_auth relayserver + kennung:kennwort
ist alles eingetragen, führt aber zum beschriebenen fehler

hier vollständig:

status=bounced (host outbound.mailhop.org[63.208.196.178] said: 550 You must authenticate to use MailHop Outbound (in reply to MAIL FROM command))

und hier häng ich jetzt. nach allen howto etc. ist der mich erkennbare unterschied die sache mit saslauthd

gruss
jlpicard


>Um wirklich weiter zu kommen:
>Über was für einen Server reden wir hier?
>Ein dedizierter Server der die Emails annehmen und verschicken soll oder ein >Server in Deinem lokalem Netzwerk der die Emails lediglich relayen soll?

>Nach Deinem ersten Beitrag ersteres. Nach dem Zweiten wohl eher letzteres.

>huschi.
 
Zuletzt bearbeitet:
Existiert die Datei /etc/postfix/smtp_auth und ist sie ein ordnungsgemäßes Hashfile? Ausserdem solltest du mal dringend die doppelten Einträge entfernen (wie z.B. smtp_sasl_security_options). Gibt es beim Start oder beim Verbindungsaufbau Warnungen oder Fehlermeldungen in den Mailserver-Logs?

Edit: Deine Änderung kam leider zeitgleich mit meiner Antwort, beantwortet aber schon einiges. Die Meldung "bounced (host outbound.mailhop.org[63.208.196.178] said: 550 You must authenticate to use MailHop Outbound (in reply to MAIL FROM command))" besagt, dass du dich beim Relay-Server authentifizieren musst. Das hat nichts mit deiner lokalen Authentifizierung zu tun.
 
Zuletzt bearbeitet:
Schalte Deinen Postfix mal etwas gesprächiger (siehe Verbose-Logging in Postfix).
Und dann versende eine Email und paste alle Logeinträge vom Relayserver hier rein.

huschi.
 
testmail ...

Jan 7 22:15:18 ncd1701l postfix/postfix-script[27601]: starting the Postfix mail system
Jan 7 22:15:18 ncd1701l postfix/master[27602]: daemon started -- version 2.4.3, configuration /etc/postfix
Jan 7 22:15:18 ncd1701l postfix/nqmgr[27606]: warning: please update the /etc/postfix/master.cf file; the new queue manager
Jan 7 22:15:18 ncd1701l postfix/nqmgr[27606]: warning: (old name: nqmgr) has become the standard queue manager (new name: qmgr)
Jan 7 22:15:18 ncd1701l postfix/nqmgr[27606]: warning: support for the name old name (nqmgr) will be removed from Postfix
Jan 7 22:15:18 ncd1701l postfix/nqmgr[27606]: warning: bounce_queue_lifetime is larger than maximal_queue_lifetime - adjusting bounce_queue_lifetime
Jan 7 22:15:57 ncd1701l postfix/smtpd[27607]: connect from 33.Red-88-1-1.dynamicIP.rima-tde.net[xxx.x.x.xx]
Jan 7 22:15:57 ncd1701l postfix/cleanup[27611]: warning: regexp map /etc/postfix/header_checks, line 12: out of range replacement index "2": skipping this rule
Jan 7 22:15:57 ncd1701l postfix/smtpd[27607]: 81488FB68: client=33.Red-88-1-1.dynamicIP.rima-tde.net[xxx.x.x.xx]
Jan 7 22:15:57 ncd1701l postfix/cleanup[27611]: 81488FB68: message-id=<OF87C3AD96.5B9A344E-ONC12573C9.0074C4A6-C12573C9.0074D2DB@ncd.de>
Jan 7 22:15:57 ncd1701l postfix/nqmgr[27606]: 81488FB68: from=<name@web.de>, size=852, nrcpt=1 (queue active) (geändert!)
Jan 7 22:15:57 ncd1701l postfix/smtpd[27607]: disconnect from 33.Red-88-1-1.dynamicIP.rima-tde.net[xxx.x.x.xx]
Jan 7 22:15:57 ncd1701l postfix/smtp[27612]: < outbound.mailhop.org[63.208.196.178]: 220-mho-01-bos.mailhop.org ESMTP Exim 4.68 Mon, 07 Jan 2008 21:16:03 +0000
Jan 7 22:15:57 ncd1701l postfix/smtp[27612]: < outbound.mailhop.org[63.208.196.178]: 220- This is a private server for DynDNS MailHop Outbound customers.
Jan 7 22:15:57 ncd1701l postfix/smtp[27612]: < outbound.mailhop.org[63.208.196.178]: 220- See http://www.mailhop.org/outbound/ for details.
Jan 7 22:15:57 ncd1701l postfix/smtp[27612]: < outbound.mailhop.org[63.208.196.178]: 220 All Access Is Logged. Authorized Users Only.
Jan 7 22:15:57 ncd1701l postfix/smtp[27612]: > outbound.mailhop.org[63.208.196.178]: EHLO myserver.domain.com
Jan 7 22:15:57 ncd1701l postfix/smtp[27612]: < outbound.mailhop.org[63.208.196.178]: 250-mho-01-bos.mailhop.org Hello dslb-0xx-0xx-xxx-0xx.pools.arcor-ip.net [xx.xx.xxx.xx]
Jan 7 22:15:57 ncd1701l postfix/smtp[27612]: < outbound.mailhop.org[63.208.196.178]: 250-SIZE 52428800
Jan 7 22:15:57 ncd1701l postfix/smtp[27612]: < outbound.mailhop.org[63.208.196.178]: 250-PIPELINING
Jan 7 22:15:57 ncd1701l postfix/smtp[27612]: < outbound.mailhop.org[63.208.196.178]: 250-AUTH PLAIN LOGIN
Jan 7 22:15:57 ncd1701l postfix/smtp[27612]: < outbound.mailhop.org[63.208.196.178]: 250-STARTTLS
Jan 7 22:15:57 ncd1701l postfix/smtp[27612]: < outbound.mailhop.org[63.208.196.178]: 250 HELP
Jan 7 22:15:57 ncd1701l postfix/smtp[27612]: server features: 0x101d size 52428800
Jan 7 22:15:57 ncd1701l postfix/smtp[27612]: Using ESMTP PIPELINING, TCP send buffer size is 4096
Jan 7 22:15:57 ncd1701l postfix/smtp[27612]: > outbound.mailhop.org[63.208.196.178]: STARTTLS
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: < outbound.mailhop.org[63.208.196.178]: 220 TLS go ahead
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: send attr request = lookup
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: send attr cache_type = smtp
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: send attr cache_id = smtp:63.208.196.178:2525:mho-01-bos.mailhop.org
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: private/tlsmgr: wanted attribute: status
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: input attribute name: status
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: input attribute value: 4294967295
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: private/tlsmgr: wanted attribute: session
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: input attribute name: session
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: input attribute value: (end)
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: private/tlsmgr: wanted attribute: (list terminator)
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: input attribute name: (end)
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: send attr request = seed
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: send attr size = 32
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: private/tlsmgr: wanted attribute: status
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: input attribute name: status
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: input attribute value: 0
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: private/tlsmgr: wanted attribute: seed
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: input attribute name: seed
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: input attribute value: c5sHHRRucK3GxSI2cVz75R9M25McxNHo338V2LpXig4=
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: private/tlsmgr: wanted attribute: (list terminator)
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: input attribute name: (end)
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: send attr request = update
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: send attr cache_type = smtp
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: send attr cache_id = smtp:63.208.196.178:2525:mho-01-bos.mailhop.org
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: send attr session = [data 899 bytes]
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: private/tlsmgr: wanted attribute: status
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: input attribute name: status
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: input attribute value: 0
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: private/tlsmgr: wanted attribute: (list terminator)
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: input attribute name: (end)
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: > outbound.mailhop.org[63.208.196.178]: EHLO ncd1701ll.ncd.de
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: < outbound.mailhop.org[63.208.196.178]: 250-mho-01-bos.mailhop.org Hello dslb-0xx-0xx-xxx-0xx.pools.arcor-ip.net [xx.xx.xxx.xx]
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: < outbound.mailhop.org[63.208.196.178]: 250-SIZE 52428800
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: < outbound.mailhop.org[63.208.196.178]: 250-PIPELINING
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: < outbound.mailhop.org[63.208.196.178]: 250-AUTH PLAIN LOGIN
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: < outbound.mailhop.org[63.208.196.178]: 250 HELP
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: server features: 0x100d size 52428800
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: Using ESMTP PIPELINING, TCP send buffer size is 4096
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: > outbound.mailhop.org[63.208.196.178]: MAIL FROM:<name@web.de>(geändert!)
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: > outbound.mailhop.org[63.208.196.178]: RCPT TO:<test@googlemail.com>(geändert!)
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: > outbound.mailhop.org[63.208.196.178]: DATA
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: < outbound.mailhop.org[63.208.196.178]: 550 You must authenticate to use MailHop Outbound
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: connect to subsystem private/bounce
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: send attr nrequest = 0
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: send attr flags = 0
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: send attr queue_id = 81488FB68
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: send attr original_recipient = **********
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: send attr recipient = **********
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: send attr offset = 645
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: send attr dsn_orig_rcpt = rfc822;test@googlemail.com
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: send attr notify_flags = 0
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: send attr status = 5.0.0
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: send attr diag_type = smtp
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: send attr diag_text = 550 You must authenticate to use MailHop Outbound
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: send attr mta_type = dns
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: send attr mta_mname = outbound.mailhop.org
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: send attr action = failed
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: send attr reason = host outbound.mailhop.org[63.208.196.178] said: 550 You must authenticate to use MailHop Outbound (in reply to MAIL FROM command)
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: private/bounce socket: wanted attribute: status
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: input attribute name: status
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: input attribute value: 0
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: private/bounce socket: wanted attribute: (list terminator)
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: input attribute name: (end)
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: 81488FB68: to=<test@googlemail.com>, relay=outbound.mailhop.org[63.208.196.178]:2525, delay=1.2, delays=0.11/0.06/0.97/0.1, dsn=5.0.0, status=bounced (host outbound.mailhop.org[63.208.196.178] said: 550 You must authenticate to use MailHop Outbound (in reply to MAIL FROM command))
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: < outbound.mailhop.org[63.208.196.178]: 503 sender not yet given
Jan 7 22:15:58 ncd1701l postfix/smtp[27612]: < outbound.mailhop.org[63.208.196.178]: 503-All RCPT commands were rejected with this error:
Jan 7 22:15:59 ncd1701l postfix/smtp[27612]: < outbound.mailhop.org[63.208.196.178]: 503-503 sender not yet given
Jan 7 22:15:59 ncd1701l postfix/smtp[27612]: < outbound.mailhop.org[63.208.196.178]: 503 Valid RCPT command must precede DATA
Jan 7 22:15:59 ncd1701l postfix/smtp[27612]: > outbound.mailhop.org[63.208.196.178]: RSET
Jan 7 22:15:59 ncd1701l postfix/smtp[27612]: > outbound.mailhop.org[63.208.196.178]: QUIT
Jan 7 22:15:59 ncd1701l postfix/smtp[27612]: < outbound.mailhop.org[63.208.196.178]: 250 Reset OK
Jan 7 22:15:59 ncd1701l postfix/smtp[27612]: name_mask: resource
Jan 7 22:15:59 ncd1701l postfix/smtp[27612]: name_mask: software
 
Zuletzt bearbeitet:
Wie ich bereits sagte, authentifiziert sich dein Server nicht bei outbound.mailhop.org. Vielleicht solltest du mal da ansetzen. :rolleyes:

Code:
You must authenticate to use MailHop Outbound
 
hallo bitmuncher,


>Wie ich bereits sagte, authentifiziert sich dein Server nicht bei >outbound.mailhop.org. Vielleicht solltest du mal da ansetzen.

>Code:

>You must authenticate to use MailHop Outbound

ist mir zu allgemein - versteh ich leider nicht ??? - hilf mir doch mal auf die sprünge...

in der smtp_auth ist der server + kennung:kennwort eingetragen.

danach postmap + postfix reload oder/und(verzweifelt ...) postfix restart

alles in der config wie gehabt unter smtpXXX eingetragen, s. mein posting.

wo also könnte/muss ich denn (noch) ansetzen??

gruss
jlpicard
 
Hier fehlt ein "noanonymous" damit er es gar nicht erst ohne Auth probiert.

huschi.
Nein, das fehlt nicht. Das steht weiter unten in der main.cf. Deswegen wies ich ja darauf hin, dass die doppelten Sachen mal ausgeräumt werden. Da aber das noanonymous der leeren Definition folgt, überschreibt dieses die vorherige Einstellung.
 
Alles wie gehabt - nichts funktioniert

Hallo,

alle Änderungen in der Passwort-Datei fruchten nichts.

Ergebnis (leider) immer das gleiche ...

Gruss
jlpicard

Jan 9 19:51:14 ncd1701l postfix/smtp[11988]: F025EFB68: to=<user@usermail.com>(geändert), relay=outbound.mailhop.org[63.208.196.178], delay=5, status=bounced (host outbound.mailhop.org[63.208.196.178] said: 550 You must authenticate to use MailHop Outbound (in reply to MAIL FROM command))
Jan 9 19:51:14 ncd1701l postfix/smtp[11988]: < outbound.mailhop.org[63.208.196.178]: 503 sender not yet given
Jan 9 19:51:14 ncd1701l postfix/smtp[11988]: < outbound.mailhop.org[63.208.196.178]: 503-All RCPT commands were rejected with this error:
Jan 9 19:51:14 ncd1701l postfix/smtp[11988]: < outbound.mailhop.org[63.208.196.178]: 503-503 sender not yet given
Jan 9 19:51:14 ncd1701l postfix/smtp[11988]: < outbound.mailhop.org[63.208.196.178]: 503 Valid RCPT command must precede DATA
Jan 9 19:51:14 ncd1701l postfix/smtp[11988]: > outbound.mailhop.org[63.208.196.178]: RSET
Jan 9 19:51:14 ncd1701l postfix/smtp[11988]: > outbound.mailhop.org[63.208.196.178]: QUIT
Jan 9 19:51:14 ncd1701l postfix/smtp[11988]: < outbound.mailhop.org[63.208.196.178]: 250 Reset OK
Jan 9 19:51:14 ncd1701l postfix/smtp[11988]: name_mask: resource
Jan 9 19:51:14 ncd1701l postfix/smtp[11988]: name_mask: software
 

Ähnliche Themen

solved Problem mit smtp (postfix) als send-only mta hinter NAT

postfix/dovecot/cyrus sasl: basic conf

Mailversand mit Outlook2010 und Postfix unter Synology Linux

dovecot und postfix Konfiguration Problem

eMail system - Massaker

Zurück
Oben