Page 1 of 1

postfix - ganz einfache Konfiguration...

Posted: 2008-02-24 19:08
by slayer2205
... und geht trotzdem nicht. Ich sitze bereits den ganzen Tag und habe rumgesucht, wie ein Blöder, aber ich kriege es einfach nicht hin. Ich hoffe, es kann mir jemand helfen :-/ Hier mal meine main.cf:

Code: Select all

# 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

# 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:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_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 = lokal.domain.tld
mydomain = domain.tld
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = localhost.localdomain, localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all

canonical_maps = hash:/etc/postfix/canonical
canonical

Code: Select all

mail@domain.tld <benutzer>
Ich habe postfix eben noch einmal komplett neu installiert, in der Hoffnun, dass es jetzt klappt, aber Fehlanzeige.
postmap auf canonical habe ich durchgeführt, MX-Eintrag ist vorhanden.

Das hier kommt beim Versenden zurück:

Reporting-MTA: dns; xxxxx
X-Postfix-Queue-ID: 7C3175DB104
X-Postfix-Sender: rfc822; absender@mail.de
Arrival-Date: Sun, 24 Feb 2008 19:00:53 +0100 (CET)

Final-Recipient: rfc822; mail@domain.tld
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; mail for domain.tld loops back to myself

Re: postfix - ganz einfache Konfiguration...

Posted: 2008-02-24 19:23
by Roger Wilco
Deine Domain fehlt in $mydestination.

Außerdem: http://www.rootforum.org/forum/viewtopi ... 22&t=46643

Re: postfix - ganz einfache Konfiguration...

Posted: 2008-02-24 19:39
by slayer2205
Die Zeile sieht jetzt so aus:

Code: Select all

mydestination = localhost.localdomain, localhost, domain.tld
Klappt aber immer noch nicht. Das muss doch mit dieser grundeinfachen Konfiguration funktionieren..

Vielleicht ist das relevant: Der DNS-Eintrag sieht so aus:

Code: Select all

*	domain.tld	A	<IP>
					  MX	mail.domain.tld

Re: postfix - ganz einfache Konfiguration...

Posted: 2008-02-24 20:04
by aubergine
myhostname = FQDN-der-auch-reverse-dns-ist
## mydomain = domain.tld
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = $myhostname
mydestination = localhost.localdomain, localhost, deine-mail-domain.tld


Das was dann bei myhostname steht, sollte auch in /etc/hosts hinter der Public IP stehen.