Hallo BSDForen Leser,
ich habe folgendes Problem. Es wurde ein Mailserver mit OpenSMTPD aufgesetzt der wunderbar funktioniert. Er verschickt an intern und extern die E-Mails so wie erwartet.
Jetzt habe ich auf einem anderen Server einem postfix gesagt dass er meinen Mailserver als relayhost verwenden soll. Die relevante config sieht etwa so aus:
Nun das funktioniert soweit auch. Der Postfix schickt alle E-Mails an meinen Mailserver. Alle E-Mails die local auf dem Mailserver existieren werden jetzt auch zugestellt. Nur verschickt der Mailserver keine E-Mail an extern die über den relay reinkommen. Ein Auszug aus dem Debug Log:
Die Externen E-mails werden also mit => 550 Invalid recipient abgelehnt obwohl die E-Mail Adresse existiert. Leider verstehe ich noch gar nicht was das Problem ist. Könnte mir bitte jemand einen Tip geben?
Gruss der OpenBSD Mail Anfänger
ich habe folgendes Problem. Es wurde ein Mailserver mit OpenSMTPD aufgesetzt der wunderbar funktioniert. Er verschickt an intern und extern die E-Mails so wie erwartet.
Jetzt habe ich auf einem anderen Server einem postfix gesagt dass er meinen Mailserver als relayhost verwenden soll. Die relevante config sieht etwa so aus:
Code:
# specify SMTP relay host
relayhost = mail.mydomain.de
# enable SASL authentication
smtp_sasl_auth_enable = yes
# disallow methods that allow anonymous authentication.
smtp_sasl_security_options = noanonymous
# where to find sasl_passwd
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
# Enable STARTTLS encryption
smtp_use_tls = yes
# where to find CA certificates
smtp_tls_CAfile = /certificates.crt
Nun das funktioniert soweit auch. Der Postfix schickt alle E-Mails an meinen Mailserver. Alle E-Mails die local auf dem Mailserver existieren werden jetzt auch zugestellt. Nur verschickt der Mailserver keine E-Mail an extern die über den relay reinkommen. Ein Auszug aus dem Debug Log:
Code:
# smtpd -dv -Tlookup
debug: init ssl-tree
info: loading pki information for mail.mydomain.de
info: OpenSMTPD 5.4.4 starting
debug: bounce warning after 1h
debug: bounce warning after 6h
debug: bounce warning after 2d
debug: using "fs" queue backend
debug: using "ramqueue" scheduler backend
debug: using "ram" stat backend
info: startup [debug mode]
debug: init ssl-tree
debug: parent_send_config_ruleset: reloading
debug: parent_send_config: configuring pony process
debug: parent_send_config: configuring ca process
queue: queue compression enabled
queue: queue encryption enabled
info: loading pki keys for mail.mydomain.de
debug: ca_engine_init: using RSA privsep engine
debug: smtp: listen on 127.0.0.1 port 10026 flags 0x400 pki ""
debug: smtp: listen on xx.xx.xx.xx port 465 flags 0x44a pki "mail.mydomain.de"
debug: smtp: listen on xx.xx.xx.xx port 25 flags 0x401 pki "mail.mydomain.de"
debug: pony: rsae_init
debug: pony: rsae_init
debug: smtp: will accept at most 501 clients
debug: init private ssl-tree
debug: queue: done loading queue into scheduler
debug: smtpd: scanning offline queue...
debug: smtpd: offline scanning done
debug: smtp: new client on listener: 0x108e76fdf000
smtp-in: New session 4743c3c59c75a798 from host xxx.mydomain.de [yy.yy.yy.yy] <--- (Postfix Server)
debug: lka: looking up pki "mail.nailfashion-leo.de"
debug: session_start_ssl: switching to SSL
debug: pony: rsae_priv_enc
smtp-in: Started TLS on session 4743c3c59c75a798: version=TLSv1/SSLv3, cipher=ECDHE-RSA-AES256-GCM-SHA384, bits=256
debug: smtp: SIZE in MAIL FROM command
lookup: check "yy.yy.yy.yy" as NETADDR in table static:<localhost> -> 0
lookup: check "yy.yy.yy.yy" as NETADDR in table static:<localhost> -> 0
lookup: check "yy.yy.yy.yy" as NETADDR in table static:<anyhost> -> found
lookup: check "no-reply@mydomain.de" as MAILADDR in table static:sendername -> 0
lookup: check "test@externadresse.de" as MAILADDR in table static:blacklist-recipients -> 0
lookup: check "externadresse.de" as DOMAIN in table static:domains -> 0
lookup: check "yy.yy.yy.yy" as NETADDR in table static:<localhost> -> 0
smtp-in: Failed command on session 4743c3c59c75a798: "RCPT TO:<test@externadresse.de> ORCPT=rfc822;test@externadresse.de" => 550 Invalid recipient
smtp-in: Closing session 4743c3c59c75a798
Die Externen E-mails werden also mit => 550 Invalid recipient abgelehnt obwohl die E-Mail Adresse existiert. Leider verstehe ich noch gar nicht was das Problem ist. Könnte mir bitte jemand einen Tip geben?
Gruss der OpenBSD Mail Anfänger