Postfix sendet keine Mails

Postfix, QMail, Sendmail, Dovecot, Cyrus, Courier, Anti-Spam
svesch
Posts: 5
Joined: 2006-08-03 14:59
 

Postfix sendet keine Mails

Post by svesch »

hallo zusammen,

ich habe ein problem mit meinem postfix, welcher unter einem sles9 läuft. ich habe schon mit google nach einer möglichen fehlerursache geforscht, aber leider bin ich nicht fündig geworden. :(
ich hoffe ihr könnt mir weiterhelfen:!:
die config sieht für mich ok aus, und auch ein test per telnet localhost 25 bringt keinen fehler. die mail bleibt aber unter /var/spool/postfix/defer hängen:

Code: Select all

<homer.simpson@test.de>: connect to localhost[127.0.0.1]: Connection refused
recipient=homer.simpson@test.de
offset=278
status=4.0.0
action=delayed
reason=connect to localhost[127.0.0.1]: Connection refused
wer oder was versucht sich da am localhost anzumelden :?: :roll:
hier noch die anderen zwei config-files von postfix:

main.cf

Code: Select all

readme_directory = /usr/share/doc/packages/postfix/README_FILES
inet_protocols = all
biff = no
mail_spool_directory = /var/mail
canonical_maps = hash:/etc/postfix/canonical
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_alias_domains = hash:/etc/postfix/virtual
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
sender_canonical_maps = hash:/etc/postfix/sender_canonical
masquerade_exceptions = root
masquerade_classes = envelope_sender, header_sender, header_recipient
myhostname = g99nt001.test.de
program_directory = /usr/lib/postfix
inet_interfaces = all
masquerade_domains = test.de, oesbox.de
mydomain = test.de
mydestination = $myhostname, localhost.$mydomain
defer_transports = 
mynetworks_style = subnet
disable_dns_lookups = no
relayhost = g099sx04
mailbox_command = 
mailbox_transport = 
strict_8bitmime = no
disable_mime_output_conversion = no
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_client_restrictions = 
smtpd_helo_required = no
smtpd_helo_restrictions = 
strict_rfc821_envelopes = no
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination
smtp_sasl_auth_enable = no
smtpd_sasl_auth_enable = no
smtpd_use_tls = no
smtp_use_tls = no
alias_maps = hash:/etc/aliases
mailbox_size_limit = 0
message_size_limit = 10240000
virtual_maps = hash:/etc/postfix/virtual
content_filter = vscan:
smtp_sasl_security_options = 
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
master.cf

Code: Select all

#
# Postfix master process configuration file.  For details on the format
# of the file, see the Postfix master(5) manual page.
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       y       -       2       smtpd -o content_filter=smtp:[localhost]:10024
#submission inet n      -       n       -       -       smtpd
#	-o smtpd_etrn_restrictions=reject
#	-o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps    inet  n       -       n       -       2       smtpd -o smtpd_tls_wrappermode=yes -o content_filter=smtp:[localhost]:10024
#  -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission   inet    n       -       n       -       -       smtpd
#  -o smtpd_etrn_restrictions=reject
#  -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
#628      inet  n       -       n       -       -       qmqpd
pickup    fifo  n       -       y       60      1       pickup
cleanup   unix  n       -       y       -       0       cleanup
qmgr      fifo  n       -       y       300     1       qmgr
#qmgr     fifo  n       -       n       300     1       oqmgr
#tlsmgr    unix  -       -       n       1000?   1       tlsmgr
rewrite   unix  -       -       y       -       -       trivial-rewrite
bounce    unix  -       -       y       -       0       bounce
defer     unix  -       -       y       -       0       bounce
trace     unix  -       -       n       -       0       bounce
verify    unix  -       -       n       -       1       verify
flush     unix  n       -       n       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
smtp      unix  -       -       y       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       n       -       -       smtp
	-o fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       y       -       -       showq
error     unix  -       -       y       -       -       error
discard   unix  -       -       n       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       y       -       -       virtual
lmtp      unix  -       -       y       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
localhost:10025 inet	n	-	y	-	-	smtpd -o content_filter=
scache	  unix	-	-	n	-	1	scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent.  See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
cyrus	  unix	-	n	n	-	-	pipe
  user=cyrus argv=/usr/lib/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
uucp	  unix	-	n	n	-	-	pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
procmail  unix  -       n       n       -       -       pipe
  flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender} ${recipient}

ich wäre euch für hinweise oder korrekturen dankbar :!:

grüße
Roger Wilco
Posts: 5923
Joined: 2004-05-23 12:53
 

Re: Postfix sendet keine Mails

Post by Roger Wilco »

svesch wrote:

Code: Select all

relayhost = g099sx04
Sicher, dass du das willst?
svesch wrote:

Code: Select all

content_filter = vscan:
Sicher, dass du das so willst?
svesch
Posts: 5
Joined: 2006-08-03 14:59
 

Re: Postfix sendet keine Mails

Post by svesch »

also unser mailserver heißt so, oder meinst du, daß ich da den den fqn des servers verwenden sollte? ich kann den mailserver mit dem short und dem full-qualified-name anpingen, das hab ich getestet.

was ist beim 2.punkt auffällig? sollte da was anderes stehen?
Roger Wilco
Posts: 5923
Joined: 2004-05-23 12:53
 

Re: Postfix sendet keine Mails

Post by Roger Wilco »

svesch wrote:also unser mailserver heißt so, oder meinst du, daß ich da den den fqn des servers verwenden sollte?
Die FQDN ist auf jeden Fall nicht schlecht. Ich dachte nur, dass du die Mails vielleicht direkt ausliefern willst.
svesch wrote:was ist beim 2.punkt auffällig? sollte da was anderes stehen?
Es gibt keine passende Transport/Content Filter Definition in deiner master.cf -> http://www.postfix.org/postconf.5.html#content_filter
svesch
Posts: 5
Joined: 2006-08-03 14:59
 

Re: Postfix sendet keine Mails

Post by svesch »

Roger Wilco wrote:
svesch wrote:also unser mailserver heißt so, oder meinst du, daß ich da den den fqn des servers verwenden sollte?
Die FQDN ist auf jeden Fall nicht schlecht. Ich dachte nur, dass du die Mails vielleicht direkt ausliefern willst.
svesch wrote:was ist beim 2.punkt auffällig? sollte da was anderes stehen?
Es gibt keine passende Transport/Content Filter Definition in deiner master.cf -> http://www.postfix.org/postconf.5.html#content_filter
ok ich werde es mit dem fqdn testen.

was das mit dem content_filter angeht, steh ich wohl grad auf dem schlauch, was sollte deiner meinung nach da stehen? :oops:
Roger Wilco
Posts: 5923
Joined: 2004-05-23 12:53
 

Re: Postfix sendet keine Mails

Post by Roger Wilco »

svesch wrote:was das mit dem content_filter angeht, steh ich wohl grad auf dem schlauch, was sollte deiner meinung nach da stehen? :oops:
Irgendein Transport oder Filter, der in deiner master.cf definiert wurde. Oder gar nichts...
svesch
Posts: 5
Joined: 2006-08-03 14:59
 

Re: Postfix sendet keine Mails

Post by svesch »

Roger Wilco wrote:
svesch wrote:was das mit dem content_filter angeht, steh ich wohl grad auf dem schlauch, was sollte deiner meinung nach da stehen? :oops:
Irgendein Transport oder Filter, der in deiner master.cf definiert wurde. Oder gar nichts...
danke roger :-D
ich habs mal mit keinem wert versucht, und ich habe daraufhin die email bekommen.
svesch
Posts: 5
Joined: 2006-08-03 14:59
 

Re: Postfix sendet keine Mails

Post by svesch »

hmm ok teilweise kommando zurück, wenn ich den test mit dem telnet von meinem linux-pc aus mache, bekomme ich nach der eingabe der empfänger-adresse den Fehler 554: Relay access denied :(