Hallo zusammen,
ich habe hier auf einem Server mit dynamischer IP ein Problem. Da dort ein Programm läuft das direkt über sendmail Mails verschickt muss ich wohl einen Smarthost benutzen, da ja nur wenige (und schlecht konfigurierte Server) Mailserver Mails von dynamischen IPs annehmen.
Nun habe ich auf dem Server Postfix installiert. In der main.cf habe ich folgende Konfiguration vorgenommen:
Auch habe ich eine smtp_auth datei angelegt und mit "postmap smtp_auth" verarbeitet. Nun wollte ich eine Mail schreiben und bekomme von Strato immer diese Antwort:
vielen Dank im Voraus.
Gruß,
Chris
ich habe hier auf einem Server mit dynamischer IP ein Problem. Da dort ein Programm läuft das direkt über sendmail Mails verschickt muss ich wohl einen Smarthost benutzen, da ja nur wenige (und schlecht konfigurierte Server) Mailserver Mails von dynamischen IPs annehmen.
Nun habe ich auf dem Server Postfix installiert. In der main.cf habe ich folgende Konfiguration vorgenommen:
debian5:/etc/postfix# cat main.cf
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
readme_directory = no
# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
myhostname = debian5.local
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = debian5.local, localhost.local, localhost
# =======================================================================#
# Strato Mailserver als Smarthost #
# =======================================================================#
# Smarthost (MX-Auflösung)
relayhost = [post.strato.de]
# Smarthost Authentifizierung
smtpd_sasl_auth_enable = yes
# Smarthost Authentifizierungsmap
smtp_sasl_password_maps = hash:/etc/postfix/smtp_auth
# Smarthost Authentifizerungsmethode
smtp_sasl_security_options = noanonymous
# =======================================================================#
mynetworks = 127.0.0.0/8 192.168.1.0/24
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
# inet_interfaces = loopback-only
broken_sasl_auth_clients = yes
#smtp_recipient_restrictions = permit_sasl_authenticated, reject_unauth_destination
Auch habe ich eine smtp_auth datei angelegt und mit "postmap smtp_auth" verarbeitet. Nun wollte ich eine Mail schreiben und bekomme von Strato immer diese Antwort:
Dec 25 16:38:16 debian5 postfix/qmgr[7879]: C3E1026F2B: from=<>, size=3395, nrcpt=1 (queue active)
Dec 25 16:38:17 debian5 postfix/smtp[7909]: C3E1026F2B: to=<****@****.de>, relay=post.strato.de[81.169.145.136]:25, delay=0.31, delays=0.01/0/0.23/0.07, dsn=5.7.0, status=bounced (host post.strato.de[81.169.145.136] said: 530 5.7.0 Bitte konfigurieren Sie ihr E-Mailprogramm fuer Authentifizierung am SMTP Server, wie auf www.strato.de/email-hilfe beschrieben. - Please configure your mail client for using SMTP Server Authentication (in reply to MAIL FROM command))
Dec 25 16:38:17 debian5 postfix/qmgr[7879]: C3E1026F2B: removed
vielen Dank im Voraus.
Gruß,
Chris