Hallo, ich sitze seit Stunden vor meiner Maschine, und sehe glaube ich vor lauter Bäumen den Wald nicht mehr. Ich bitte euch um Hilfe bei folgendem Problem:
Ich habe Postfix installiert, und möchte Mails über GMX versenden. Ich habe mir die Wiki Einträge angesehen, und auch die Beispiel Konfiguration für GMX aus dem Wiki übernommen. Prinzipiell sendet Postfix auch Mails, diese werden aber vom Empfänger abgelehnt wegen des Absenders:
Ich sende von der Konsole:
mail -s "test von Konsole" john@doe.com < /home/snoopy/test.txt
Auszug aus der /var/log/mail.log:
Feb 15 13:34:35 PigPen postfix/smtp[14768]: 1D3F06F2E8: to=<john@doe.com>, relay=server01.doe.com[99.99.99.99]:25, delay=52460, delays=52460/0.06/0.27/0.22, dsn=4.1.8, status=deferred (host server01.doe.com[99.99.99.99] said: 450 4.1.8 <snoopy@pigpen.localdomain>: Sender address rejected: Domain not found (in reply to RCPT TO command))
Ich habe aber wie in der WIKI beschrieben in /etc/postfix/ eine datei sender_canonical erstellt. Und auch die DB mit dem Konsolen Befehl
sudo postmap /etc/postfix/sender_canonical sudo /etc/init.d/postfix restart
erstellt.
Die Datei /etc/postfix/sender_canonical sieht folgendermaßen aus:
snoopy@pigpen.localdomain meineadresse@gmx.de
Zum Schluss noch die /etc/postfix/main.cf :
mail_owner = postfix unknown_local_recipient_reject_code = 550 inet_protocols = all biff = no # paths queue_directory = /var/spool/postfix command_directory = /usr/sbin daemon_directory = /usr/lib/postfix mailq_path = /usr/bin/mailq mail_spool_directory = /var/mail newaliases_path = /usr/bin/newaliases sendmail_path = /usr/sbin/sendmail program_directory = /usr/lib/postfix debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin xxgdb $daemon_directory/$process_name $process_id & sleep 5 sender_canonical_maps = hash:/etc/postfix/sender_canonical relayhost = smtp.gmx.net myhostname = localhost mydestination = $myhostname,localhost.$mydomain,$mydomain mynetworks = 127.0.0.0/8 masquerade_exceptions = root masquerade_classes = envelope_sender, header_sender, header_recipient masquerade_domains = inet_interfaces = loopback-only defer_transports = disable_dns_lookups = no mailbox_command = procmail -a "$EXTENSION" mailbox_transport = mailbox_size_limit = 51200000 #smtp smtpd_sender_restrictions = hash:/etc/postfix/access smtpd_client_restrictions = smtpd_helo_required = no smtpd_helo_restrictions = smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination smtp_sasl_auth_enable = yes smtpd_sasl_auth_enable = no smtpd_use_tls = no smtp_use_tls = no smtp_sasl_security_options = smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd alias_maps = hash:/etc/aliases message_size_limit = 10240000 recipient_delimiter = + strict_rfc821_envelopes = no
Bitte sagt mir was habe ich falsch gemacht ????? Ich weiß wirklich nicht mehr was ich noch ändern soll 😢
Gruß aus Hamburg
Moderiert von ditsch:
Ein Fragezeichen im Titel reicht auch.