Postfix Konfiguration will nicht

Hallo,

Irgendwie fehlt eine Kategorie E-Mail…

Ich habe an meinem Hypervisor Postfix konfiguriert, so dass der Server mir Mails (über Belwü) versenden kann. Am alten Server klappt das seit Jahren problemlos, beim neuen Server kommt nichts bei mir an.

Der alte Server heißt proxmox.lokal, der neue pve.intern.

Die /etc/postfix/main.cf

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

#myhostname=pve.intern
myhostname=proxmox.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 = mbox1.belwue.de
mynetworks = 127.0.0.0/8
#inet_interfaces = loopback-only
inet_interfaces = all
recipient_delimiter = +

myorigin = /etc/mailname
mailbox_size_limit = 0
# inet_protocols = ipv4

# hinzugefügt
# uncomment the following lines to activate smtp authentication
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/smtp_auth
smtp_sasl_security_options = noanonymous
smtp_sasl_mechanism_filter = plain, login
smtp_use_tls=yes
#smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
smtp_tls_note_starttls_offer = yes
smtp_starttls_timeout = 10s

# mailbox_command = procmail -a "$EXTENSION"

inet_protocols = all

Ich habe es schon mit beiden internen Namen bei myhostname getestet,

Die /etc/mailname
proxmox.local

Auch hier habe ich schon pve.intern getestet (dann in der /etc/postfix/main.cf gleich)

Die /etc/postfix/smtp_auth
mbox1.belwue.de Postfachname:Passwort

wobei Postfachname:Passwort hier natürlich nur ein Platzhalter ist

danach verhasht mit postmap /etc/postfix/smtp_auth
danach Postfix neu gestartet mit /etc/init.d/postfix restart

Test auf der Konsole:
echo "Ich bin der Nachrichtentext" | mail -s"Testmail" admin@edv.afs-engen.de

kommt nicht an - am alten Server schon.
Belwü habe ich auch mal kontaktiert (ob bei denen was ankommt und ggf. abgelehnt wird) aber noch keine Antwort.

Wo könnte der Fehler / das Problem stecken?

Viele Grüße
Steffen

Hi Steffen,

Was sagt /var/log/mail.log ?

Hallo Arnaud,

ich hatte nur die Häfte raus kopiert

cannot authenticate to server mbox1.belwue.de[129.143.2.21]: no mechanism available
warning: SASL authentication failure: No worthy mechs found

Aber wie behebe ich das jetzt?

Viele Grüße
Steffen

Ist libsasl2-modules installiert ?

Hallo Arnaud,

Ist libsasl2-modules installiert ?

das habe ich vorhin gerade auch herausgefunden und nachinstalliert und
es geht jetzt. Trotzdem vielen Dank für den Wink.

Eine Frage noch:
Wie bringt man Postfix bei, als Absender nicht root@interne.domain zu
verwenden?

Viele Grüße
Steffen

Hallo Steffen,

Hier eine kleine Erklärung : http://semi-legitimate.com/blog/item/how-to-rewrite-outgoing-address-in-postfix

Gruß

Arnaud