Hallo Community, ich war schon öfter hier und hab schon viel durch bestehende Threads gelöst bekommen, nun aber bin ich an dem Punkt wo ich keine Antworten finde. Mein Vorhaben ist, dass ich von einem bestehenden Email-Server mit mehreren Postfächern, einen lokalen Server habe der alle Postfächer abruft und von da aus an Clients verteilt. Die Clients sollen dann über den lokalen Server ihre Mails schicken, dieser wiederum schickt sie dem Email-Server im Rechenzentrum. Mir gehts darum, dass ich die Mails für Backup Zwecke auf einer Maschine zum sichern habe.
Nun habe ich angefangen das ganze im Kleinen zu probieren. Ich habe zwei Yahoo Mails, diese möchte ich auf meinem Mailserver abrufen können und dann mit dem Hauptnutzer abrufen. Angefangen habe ich mit Postfix um erstmal über smtp von meinem Server aus eine Mail im Namen von meiner Yahoo-Mail zu verschicken.
Dies klappt aber nicht so ganz und ich habe nun 12std am Stück rumprobiert. Ich bin relativ neu und unerfahren in der Thematik Postfix etc..
Ich hoffe ihr wisst ungefähr was ich meine, nun zeige ich euch meine Conf Dateien und die Mail.log damit ihr mir vielleicht sagen könnt was ich die ganze Zeit übersehe.
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 (Ubuntu) biff = no # appending .domain is the MUA's job. append_dot_mydomain = no # 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 = maildaemon-virtual-machine.localdomain alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = $myhostname, mail.example.com, maildaemon-virtual-machine, localhost.localdomain, localhost # Yahoo relayhost = [smtp.mail.yahoo.com]:587 # Yahoo mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = loopback-only default_transport = smtp relay_transport = smtp inet_protocols = all smtp_use_tls=yes smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = noanonymous smtp_sasl_tls_security_options = noanonymous
Mail.log
Aug 24 18:04:32 maildaemon-virtual-machine postfix[9437]: Postfix is running with backwards-compatible default settings Aug 24 18:04:32 maildaemon-virtual-machine postfix[9437]: See http://www.postfix.org/COMPATIBILITY_README.html for details Aug 24 18:04:32 maildaemon-virtual-machine postfix[9437]: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload" Aug 24 18:04:32 maildaemon-virtual-machine postfix/master[9233]: terminating on signal 15 Aug 24 18:04:32 maildaemon-virtual-machine postfix[9533]: Postfix is running with backwards-compatible default settings Aug 24 18:04:32 maildaemon-virtual-machine postfix[9533]: See http://www.postfix.org/COMPATIBILITY_README.html for details Aug 24 18:04:32 maildaemon-virtual-machine postfix[9533]: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload" Aug 24 18:04:32 maildaemon-virtual-machine postfix/master[9570]: daemon started -- version 3.1.0, configuration /etc/postfix Aug 24 18:04:37 maildaemon-virtual-machine postfix/pickup[9577]: DDE83123732: uid=1000 from=<maildaemon@maildaemon-virtual-machine> Aug 24 18:04:37 maildaemon-virtual-machine postfix/cleanup[9594]: DDE83123732: message-id=<20160824160437.DDE83123732@maildaemon-virtual-machine.localdomain> Aug 24 18:04:37 maildaemon-virtual-machine postfix/qmgr[9578]: DDE83123732: from=<maildaemon@maildaemon-virtual-machine>, size=423, nrcpt=1 (queue active) Aug 24 18:04:38 maildaemon-virtual-machine postfix/smtp[9596]: DDE83123732: to=<meinname@yahoo.de>, relay=smtp.mail.yahoo.com[217.146.190.250]:587, delay=0.63, delays=0.04/0.03/0.5/0.05, dsn=5.0.0, status=bounced (host smtp.mail.yahoo.com[217.146.190.250] said: 501 Syntax error in arguments (in reply to MAIL FROM command)) Aug 24 18:04:38 maildaemon-virtual-machine postfix/cleanup[9594]: 9DC78123736: message-id=<20160824160438.9DC78123736@maildaemon-virtual-machine.localdomain> Aug 24 18:04:38 maildaemon-virtual-machine postfix/bounce[9598]: DDE83123732: sender non-delivery notification: 9DC78123736 Aug 24 18:04:38 maildaemon-virtual-machine postfix/qmgr[9578]: 9DC78123736: from=<>, size=2593, nrcpt=1 (queue active) Aug 24 18:04:38 maildaemon-virtual-machine postfix/qmgr[9578]: DDE83123732: removed Aug 24 18:04:38 maildaemon-virtual-machine postfix/local[9599]: 9DC78123736: to=<maildaemon@maildaemon-virtual-machine>, relay=local, delay=0.02, delays=0/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox) Aug 24 18:04:38 maildaemon-virtual-machine postfix/qmgr[9578]: 9DC78123736: removed
Und nochmal das was in der /var/mail/maildaemon steht
The mail system <meinname@yahoo.de>: host smtp.mail.yahoo.com[217.146.190.250] said: 501 Syntax error in arguments (in reply to MAIL FROM command) --DDE83123732.1472054678/maildaemon-virtual-machine.localdomain Content-Description: Delivery report Content-Type: message/delivery-status Reporting-MTA: dns; maildaemon-virtual-machine.localdomain X-Postfix-Queue-ID: DDE83123732 X-Postfix-Sender: rfc822; maildaemon@maildaemon-virtual-machine Arrival-Date: Wed, 24 Aug 2016 18:04:37 +0200 (CEST) Final-Recipient: rfc822; meinname@yahoo.de Original-Recipient: rfc822;meinname@yahoo.de Action: failed Status: 5.0.0 Remote-MTA: dns; smtp.mail.yahoo.com Diagnostic-Code: smtp; 501 Syntax error in arguments --DDE83123732.1472054678/maildaemon-virtual-machine.localdomain Content-Description: Undelivered Message Content-Type: message/rfc822 Return-Path: <maildaemon@maildaemon-virtual-machine> Received: by maildaemon-virtual-machine.localdomain (Postfix, from userid 1000) id DDE83123732; Wed, 24 Aug 2016 18:04:37 +0200 (CEST) Subject: Testmal To: <meinname@yahoo.de> X-Mailer: mail (GNU Mailutils 2.99.99) Message-Id: <20160824160437.DDE83123732@maildaemon-virtual-machine.localdomain> Date: Wed, 24 Aug 2016 18:04:37 +0200 (CEST) From: maildaemon@maildaemon-virtual-machine (MailDaemon) Hallo Test --DDE83123732.1472054678/maildaemon-virtual-machine.localdomain--
Eingegeben habe ich zum verschicken: echo "Hallo Test" | mail -s Testmal meinname@yahoo.de
Stutzig macht mir am meisten das, aber ich finde dazu nichts ☹ "(host smtp.mail.yahoo.com[217.146.190.250] said: 501 Syntax error in arguments (in reply to MAIL FROM command))"
So sehr viel geschrieben, hoffe ihr versteht mich, bin aber auch echt geschafft ☹