Hallo zusammen,
ich hoffe meine Beschreibung hilft mein Problem zu lösen:
Ich habe pmg installiert, es kommen auch mails an (firewall etc sollte also korrekt sein), allerdings schaffe ich es nicht mails weiterzuleiten.
Nun der Aufbau:
Mail (von extern@postfach.de an mich@meinedomän.de) --> PMG (nimmt an und verarbeitet : mx funktioniert ist eine feste ip) --> df.eu (ins Postfach mich@meinedomän.de)
ich habe es hiermit probiert (dachte smarthost sollte gehen):
1. Let’s take care of software dependencies first. You need to install a SASL library that’s not included by default; if you skip this step, you’ll see errors in your Postfix log and authentication will fail. Update software package information, and then install “libsasl2-modules.”
apt-get update
apt-get install libsasl2-modules
2. Change to the /etc/postfix/ directory and create a file to store the hostname, username, and password of your relay host; and set secure permissions on the file. It doesn’t matter what you name the file; just use a name that makes sense to you. I’ve chosen to call it “relay_passwd.”
cd /etc/postfix
touch relay_passwd
chmod 0600 relay_passwd
3. Edit the file using your favourite command-line editor, and enter just one line in precisely this format (replacing your relay server, port number, username, and password with your own information):
[smtp.example.com]:587 username
assword
4. Save and close the file. Then, hash the newly created password file to make a db file Postfix can use:
postmap relay_passwd
5. Make a backup copy of your main.cf file in case you mess things up and need to restore known-good configuration. I like to date-stamp my configuration file backups, like so. Replace with today’s date.
cp main.cf main.cf.2018-10-06
6. Edit main.cf and add the following lines. Again, replace the “smtp.example.com” host name with the actual host name of your smart host; use the correct port number; and pay attention to the file name.
relayhost=[sslout.df.eu]:465
smtp_use_tls = yes
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/relay_passwd
smtp_sasl_security_options =
smtp_tls_wrappermode = yes
smtp_tls_security_level = encrypt
7. Restart Postfix, and test your new configuration.
systemctl restart postfix
allerdings bekomme ich ein:
pmg postfix/smtp[7597]: CCEC120308: to=<mail@domain.de>, relay=sslout.df.eu[134.119.18.24]:465, delay=0.49, delays=0.05/0.01/0.38/0.05, dsn=5.0.0, status=bounced (host sslout.df.eu[134.119.18.24] said: 550 "envelope sender not allowed extern@postfach.de" (in reply to MAIL FROM command))
ich kann ja nicht für alle canonicals einrichten, nur damit df.eu das versendet.
So nun meine Frage, ich möchte das die Mails an mich auf den PMG landen (funktioinert) und dann weiter zum df.eu postfach geleitet werden.
Bin mir nicht sicher, aber ich denke mein PMG ist ein relayhost, den df.eu nicht akzeptiert... was kann ich tun?
Danke für jeden Kommentar der mich auf die richtige Spur bringt.
BTW: ich habe auch schon gesucht, weil ich natürlich weiß, dass ich bestimmt nicht der Einzige mit diesem Problem bin, habe aber nichts Richtiges gefunden. Liegt wohl an meiner Unkenntis.
Grüße und Danke
ich hoffe meine Beschreibung hilft mein Problem zu lösen:
Ich habe pmg installiert, es kommen auch mails an (firewall etc sollte also korrekt sein), allerdings schaffe ich es nicht mails weiterzuleiten.
Nun der Aufbau:
Mail (von extern@postfach.de an mich@meinedomän.de) --> PMG (nimmt an und verarbeitet : mx funktioniert ist eine feste ip) --> df.eu (ins Postfach mich@meinedomän.de)
ich habe es hiermit probiert (dachte smarthost sollte gehen):
1. Let’s take care of software dependencies first. You need to install a SASL library that’s not included by default; if you skip this step, you’ll see errors in your Postfix log and authentication will fail. Update software package information, and then install “libsasl2-modules.”
apt-get update
apt-get install libsasl2-modules
2. Change to the /etc/postfix/ directory and create a file to store the hostname, username, and password of your relay host; and set secure permissions on the file. It doesn’t matter what you name the file; just use a name that makes sense to you. I’ve chosen to call it “relay_passwd.”
cd /etc/postfix
touch relay_passwd
chmod 0600 relay_passwd
3. Edit the file using your favourite command-line editor, and enter just one line in precisely this format (replacing your relay server, port number, username, and password with your own information):
[smtp.example.com]:587 username

4. Save and close the file. Then, hash the newly created password file to make a db file Postfix can use:
postmap relay_passwd
5. Make a backup copy of your main.cf file in case you mess things up and need to restore known-good configuration. I like to date-stamp my configuration file backups, like so. Replace with today’s date.
cp main.cf main.cf.2018-10-06
6. Edit main.cf and add the following lines. Again, replace the “smtp.example.com” host name with the actual host name of your smart host; use the correct port number; and pay attention to the file name.
relayhost=[sslout.df.eu]:465
smtp_use_tls = yes
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/relay_passwd
smtp_sasl_security_options =
smtp_tls_wrappermode = yes
smtp_tls_security_level = encrypt
7. Restart Postfix, and test your new configuration.
systemctl restart postfix
allerdings bekomme ich ein:
pmg postfix/smtp[7597]: CCEC120308: to=<mail@domain.de>, relay=sslout.df.eu[134.119.18.24]:465, delay=0.49, delays=0.05/0.01/0.38/0.05, dsn=5.0.0, status=bounced (host sslout.df.eu[134.119.18.24] said: 550 "envelope sender not allowed extern@postfach.de" (in reply to MAIL FROM command))
ich kann ja nicht für alle canonicals einrichten, nur damit df.eu das versendet.
So nun meine Frage, ich möchte das die Mails an mich auf den PMG landen (funktioinert) und dann weiter zum df.eu postfach geleitet werden.
Bin mir nicht sicher, aber ich denke mein PMG ist ein relayhost, den df.eu nicht akzeptiert... was kann ich tun?
Danke für jeden Kommentar der mich auf die richtige Spur bringt.
BTW: ich habe auch schon gesucht, weil ich natürlich weiß, dass ich bestimmt nicht der Einzige mit diesem Problem bin, habe aber nichts Richtiges gefunden. Liegt wohl an meiner Unkenntis.
Grüße und Danke