Postfix Config

Feb 18, 2020
12
0
1
35
Hallo zusammen,

ich versuche schon ewig die Mailfunktion für abgeschlossene Backups, Updates etc in Gang zu bekommen aber es geht einfach nicht.

Könnt ihr mir vielleicht helfen ?

Hier mal ein Auszug aus dem mail.log:

Feb 18 22:22:31 prx1 postfix[25186]: Postfix is running with backwards-compatible default settings
Feb 18 22:22:31 prx1 postfix[25186]: See http://www.postfix.org/COMPATIBILITY_README.html for details
Feb 18 22:22:31 prx1 postfix[25186]: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload"
Feb 18 22:22:31 prx1 postfix/postfix-script[25192]: stopping the Postfix mail system
Feb 18 22:22:31 prx1 postfix/master[22752]: terminating on signal 15
Feb 18 22:22:31 prx1 postfix[25257]: Postfix is running with backwards-compatible default settings
Feb 18 22:22:31 prx1 postfix[25257]: See http://www.postfix.org/COMPATIBILITY_README.html for details
Feb 18 22:22:31 prx1 postfix[25257]: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload"
Feb 18 22:22:31 prx1 postfix/postfix-script[25321]: warning: symlink leaves directory: /etc/postfix/./makedefs.out
Feb 18 22:22:31 prx1 postfix/postfix-script[25360]: starting the Postfix mail system
Feb 18 22:22:31 prx1 postfix/master[25362]: daemon started -- version 3.4.7, configuration /etc/postfix
Feb 18 22:22:31 prx1 postfix/qmgr[25364]: 854C2C08C2: from=<root@prx1.Impeak.de>, size=387, nrcpt=1 (queue active)
Feb 18 22:22:31 prx1 postfix/qmgr[25364]: 5C50FC0743: from=<root@prx1.Impeak.local>, size=760, nrcpt=1 (queue active)
Feb 18 22:22:31 prx1 postfix/qmgr[25364]: 7D667C08C4: from=<root@prx1.Impeak.de>, size=252, nrcpt=1 (queue active)
Feb 18 22:22:31 prx1 postfix/smtp[25367]: warning: relayhost configuration problem
Feb 18 22:22:31 prx1 postfix/smtp[25367]: 854C2C08C2: to=<technik@impeak.de>, relay=none, delay=1379, delays=1379/0.06/0/0, dsn=4.3.5, status=deferred (Host or domain name not found. Name service error for name=smtp.impeak.de type=AAAA: Host not found)
Feb 18 22:22:31 prx1 postfix/smtp[25368]: warning: relayhost configuration problem
Feb 18 22:22:31 prx1 postfix/smtp[25368]: 5C50FC0743: to=<technik@impeak.de>, relay=none, delay=67426, delays=67426/0.06/0/0, dsn=4.3.5, status=deferred (Host or domain name not found. Name service error for name=smtp.impeak.de type=AAAA: Host not found)
Feb 18 22:22:31 prx1 postfix/smtp[25367]: warning: relayhost configuration problem
Feb 18 22:22:31 prx1 postfix/smtp[25367]: 7D667C08C4: to=<technik@impeak.de>, relay=none, delay=1370, delays=1370/0.06/0/0, dsn=4.3.5, status=deferred (Host or domain name not found. Name service error for name=smtp.impeak.de type=AAAA: Host not found)
Feb 18 22:22:35 prx1 postfix[25385]: Postfix is running with backwards-compatible default settings
Feb 18 22:22:35 prx1 postfix[25385]: See http://www.postfix.org/COMPATIBILITY_README.html for details
Feb 18 22:22:35 prx1 postfix[25385]: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload"
Feb 18 22:22:35 prx1 postfix/postfix-script[25391]: refreshing the Postfix mail system
Feb 18 22:22:35 prx1 postfix/master[25362]: reload -- version 3.4.7, configuration /etc/postfix
Feb 18 22:22:50 prx1 postfix/pickup[25395]: D8567C08DA: uid=0 from=<root>
Feb 18 22:22:50 prx1 postfix/cleanup[25447]: D8567C08DA: message-id=<20200218212250.D8567C08DA@prx1.Impeak.local>
Feb 18 22:22:50 prx1 postfix/qmgr[25396]: D8567C08DA: from=<root@prx1.Impeak.local>, size=267, nrcpt=1 (queue active)
Feb 18 22:22:50 prx1 postfix/smtp[25449]: warning: relayhost configuration problem
Feb 18 22:22:50 prx1 postfix/smtp[25449]: D8567C08DA: to=<technik@impeak.de>, relay=none, delay=5.1, delays=5/0.01/0/0, dsn=4.3.5, status=deferred (Host or domain name not found. Name service error for name=smtp.impeak.de type=AAAA: Host not found)
 
Danke für die Hilfe.

Ich konnte das auch lösen, jedoch spinnt er jetzt an anderer Stelle.

Feb 21 10:11:37 prx1 postfix/postfix-script[24515]: starting the Postfix mail system
Feb 21 10:11:37 prx1 postfix/master[24517]: daemon started -- version 3.4.7, configuration /etc/postfix
Feb 21 10:11:46 prx1 postfix/pickup[24518]: 083CDC08A3: uid=0 from=<root>
Feb 21 10:11:46 prx1 postfix/cleanup[24620]: 083CDC08A3: message-id=<20200221091146.083CDC08A3@prx1.Impeak.local>
Feb 21 10:11:46 prx1 postfix/qmgr[24519]: 083CDC08A3: from=<root@prx1.Impeak.local>, size=261, nrcpt=1 (queue active)
Feb 21 10:11:46 prx1 postfix/smtp[24624]: 083CDC08A3: to=<technik@impeak.de>, relay=smtp.impeak.de[80.67.29.4]:25, delay=3, delays=2.8/0.01/0.14/0.02, dsn=5.0.0, status=bounced (host smtp.impeak.de[80.67.29.4] said: 550 "envelope sender not allowed root@prx1.Impeak.local" (in reply to MAIL FROM command))
Feb 21 10:11:46 prx1 postfix/cleanup[24620]: 3DFE1C08AA: message-id=<20200221091146.3DFE1C08AA@prx1.Impeak.local>
Feb 21 10:11:46 prx1 postfix/bounce[24625]: 083CDC08A3: sender non-delivery notification: 3DFE1C08AA
Feb 21 10:11:46 prx1 postfix/qmgr[24519]: 3DFE1C08AA: from=<>, size=2217, nrcpt=1 (queue active)
Feb 21 10:11:46 prx1 postfix/qmgr[24519]: 083CDC08A3: removed
Feb 21 10:11:46 prx1 postfix/local[24626]: 3DFE1C08AA: to=<root@prx1.Impeak.local>, relay=local, delay=0.01, delays=0/0.01/0/0, dsn=5.1.1, status=bounced (unknown user: "r")
Feb 21 10:11:46 prx1 postfix/qmgr[24519]: 3DFE1C08AA: removed


Kann mir bitte jemand eine Hilfestellung für die Neukonfiguration geben ?

Ich hatte den DNS Eintrag auf unserem DNS-Server hinzugefügt und mit etwas Verzögerung kam auch die Testmail, aber keine Backup Notification.

Wir haben ein Cluster mit 3 Servern.

Ich bin mir auch nicht sicher, ob unser Hostname korrekt ist, da unsere Domäne von meinem Vorgänger als impeak.de angelegt wurde...

LG
 
# See /usr/share/postfix/main.cf.dist for a commented, more complete version

myhostname=prx1.Impeak.local

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

alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = $myhostname, localhost.$mydomain, localhost
relayhost = smtp.impeak.de:25
# 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 = no
# where to find CA certificates
#smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crtmynetworks = 127.0.0.0/8
inet_interfaces = loopback-only
recipient_delimiter = +compatibility_level = 2
 
ok. Also soweit passt es, bis auf Deine Domain
prx1.Impeak.local

Warum steht hier local wenn Eure Domain doch Impeak.de ist?

Aber das eigentliche Problem ist das der angegebene Absender kein Recht hat über den Relay Host zu senden.

Code:
said: 550 "envelope sender not allowed root@prx1.Impeak.local"
 
Kann ich das ohne Sorge abändern ?
Das ist so leider auch in den Proxmox DNS Einstellungen bei searchdomain hinterlegt ...

Ich hatte immer sorge das ich etwas kaputt mache wenn ich das anpasse ...


Wie kann ich dem Absender denn das Recht dazu geben ?

Danke für deine Bemühungen :)
 
Code:
Feb 21 10:11:46 prx1 postfix/smtp[24624]: 083CDC08A3: to=<technik@impeak.de>, relay=smtp.impeak.de[80.67.29.4]:25, delay=3, delays=2.8/0.01/0.14/0.02, dsn=5.0.0, status=bounced (host smtp.impeak.de[80.67.29.4] said: 550 "envelope sender not allowed root@prx1.Impeak.local" (in reply to MAIL FROM command))


Deine Absenderadresse root@prx1.Impeak.local wird vom Mailserver smtp.impeak.de abgelehnt.
Du musst also diem Absenderadresse mit Hilfe der canonical table von Postfix umschreiben.
Das könnte so aussehen:


Code:
echo "root@prx1.Impeak.local prxi@impeak.de" >> /etc/postfix/canonical
echo "canonical_maps = hash:/etc/postfix/canonical" >> /etc/postfix/main.cf
postmap /etc/postfix/canonical

(prxi@impeak.de wäre dann die Absenderadresse)
Je nachdem wie der Mailserver smtp.impeak.de konfiguriert ist muss dies Adresse auch existieren oder es reicht dem Mailserver aus, wenn der Domainname impeak.de vorhanden ist.
 
  • Like
Reactions: awalon
Du kannst das einfach so ändern.
Da es sich offensichtlich um ein Unternehmen handelt frage doch bitte einmal die Admins welche für den Mailserver zuständig sind.
Eventuell musst Du Dich am SMTP Authentifizierung.
 
Ok soweit hat alles geklappt...

Außer beim PRx3

Da kommt keine Testmail, aber auch keine Fehlermeldung soweit ich sehen kann ...

Feb 21 11:58:49 prx3 postfix[31561]: Postfix is running with backwards-compatible default settings
Feb 21 11:58:49 prx3 postfix[31561]: See http://www.postfix.org/COMPATIBILITY_README.html for details
Feb 21 11:58:49 prx3 postfix[31561]: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload"
Feb 21 11:58:49 prx3 postfix/postfix-script[31567]: stopping the Postfix mail system
Feb 21 11:58:49 prx3 postfix/master[25943]: terminating on signal 15
Feb 21 11:58:49 prx3 postfix[31648]: Postfix is running with backwards-compatible default settings
Feb 21 11:58:49 prx3 postfix[31648]: See http://www.postfix.org/COMPATIBILITY_README.html for details
Feb 21 11:58:49 prx3 postfix[31648]: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload"
Feb 21 11:58:49 prx3 postfix/postfix-script[31737]: warning: symlink leaves directory: /etc/postfix/./makedefs.out
Feb 21 11:58:49 prx3 postfix/postfix-script[31776]: starting the Postfix mail system
Feb 21 11:58:49 prx3 postfix/master[31778]: daemon started -- version 3.4.7, configuration /etc/postfix
Feb 21 11:58:49 prx3 postfix/qmgr[31780]: 9B3E68404: from=<prx3@impeak.de>, size=251, nrcpt=1 (queue active)
Feb 21 11:58:49 prx3 postfix/qmgr[31780]: 14895815C: from=<prx3@impeak.de>, size=251, nrcpt=1 (queue active)
Feb 21 11:58:55 prx3 postfix/pickup[31779]: A23247FF0: uid=0 from=<root>
Feb 21 11:58:55 prx3 postfix/cleanup[31890]: A23247FF0: message-id=<20200221105855.A23247FF0@prx3.Impeak.local>
Feb 21 11:58:55 prx3 postfix/qmgr[31780]: A23247FF0: from=<prx3@impeak.de>, size=251, nrcpt=1 (queue active)


main.cf ist identisch mit den anderen, mal abgesehen vom hostname ...



Aber ich danke jetzt schon, denn der dritte läuft aktuell eh nur für Testsysteme.
 
Jetzt kam was dazu ....

Feb 21 11:58:49 prx3 postfix[31648]: Postfix is running with backwards-compatible default settings
Feb 21 11:58:49 prx3 postfix[31648]: See http://www.postfix.org/COMPATIBILITY_README.html for details
Feb 21 11:58:49 prx3 postfix[31648]: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload"
Feb 21 11:58:49 prx3 postfix/postfix-script[31737]: warning: symlink leaves directory: /etc/postfix/./makedefs.out
Feb 21 11:58:49 prx3 postfix/postfix-script[31776]: starting the Postfix mail system
Feb 21 11:58:49 prx3 postfix/master[31778]: daemon started -- version 3.4.7, configuration /etc/postfix
Feb 21 11:58:49 prx3 postfix/qmgr[31780]: 9B3E68404: from=<prx3@impeak.de>, size=251, nrcpt=1 (queue active)
Feb 21 11:58:49 prx3 postfix/qmgr[31780]: 14895815C: from=<prx3@impeak.de>, size=251, nrcpt=1 (queue active)
Feb 21 11:58:55 prx3 postfix/pickup[31779]: A23247FF0: uid=0 from=<root>
Feb 21 11:58:55 prx3 postfix/cleanup[31890]: A23247FF0: message-id=<20200221105855.A23247FF0@prx3.Impeak.local>
Feb 21 11:58:55 prx3 postfix/qmgr[31780]: A23247FF0: from=<prx3@impeak.de>, size=251, nrcpt=1 (queue active)
Feb 21 12:03:49 prx3 postfix/qmgr[31780]: 05C7E8423: from=<prx3@impeak.de>, size=251, nrcpt=1 (queue active)
Feb 21 12:03:49 prx3 postfix/smtp[31784]: 9B3E68404: to=<technik@impeak.de>, relay=smtp.impeak.de[80.67.29.4]:25, delay=673, delays=373/0.01/300/0, dsn=4.4.2, status=deferred (conversation with smtp.impeak.de[80.67.29.4] timed out while performing the EHLO handshake)
Feb 21 12:03:49 prx3 postfix/smtp[31785]: 14895815C: to=<technik@impeak.de>, relay=smtp.impeak.de[80.67.29.4]:25, delay=809, delays=509/0.01/300/0, dsn=4.4.2, status=deferred (conversation with smtp.impeak.de[80.67.29.4] timed out while performing the EHLO handshake)
Feb 21 12:03:55 prx3 postfix/smtp[31892]: A23247FF0: to=<technik@impeak.de>, relay=smtp.impeak.de[80.67.29.4]:25, delay=302, delays=2.3/0.01/300/0, dsn=4.4.2, status=deferred (conversation with smtp.impeak.de[80.67.29.4] timed out while performing the EHLO handshake)
Feb 21 12:08:49 prx3 postfix/smtp[31784]: 05C7E8423: to=<technik@impeak.de>, relay=smtp.impeak.de[80.67.29.4]:25, delay=911, delays=610/0.01/300/0, dsn=4.4.2, status=deferred (conversation with smtp.impeak.de[80.67.29.4] timed out while performing the EHLO handshake)
Feb 21 12:10:29 prx3 postfix/scache[4970]: statistics: start interval Feb 21 12:03:49
Feb 21 12:10:29 prx3 postfix/scache[4970]: statistics: domain lookup hits=0 miss=1 success=0%
Feb 21 12:10:29 prx3 postfix/scache[4970]: statistics: address lookup hits=0 miss=1 success=0%
 
# See /usr/share/postfix/main.cf.dist for a commented, more complete version

myhostname=prx3.Impeak.local

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

alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = $myhostname, localhost.$mydomain, localhost
relayhost = smtp.impeak.de:25
# 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 = no
# where to find CA certificates
#smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crtmynetworks = 127.0.0.0/8
inet_interfaces = loopback-only
recipient_delimiter = +compatibility_level = 2
canonical_maps = hash:/etc/postfix/canonical
canonical_maps = hash:/etc/postfix/canonical


Das ist die main.cf

Der Reiter mit dem Zertifikat ist doch deaktiviert oder ...
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!