Postfix (mail transport unavailable)

flydesign

New Member
Guten Tag,
Ich habe einen Testserver mit Postfix in Betrieb (um mich in die Materie einzuarbeiten), bei welchem ich vor kurzem ein dist-upgrade gemacht habe. Vor dem Dist-Upgrade lief alles Problemlos... Das Problem ist nun, dass ich von diesem Server aus keine E-Mail nachrichten Extern versenden kann.

Die Nachricht wird vom Postfix korrekt entgegenommen wird jedoch niemals ausgeliefert. Was mich verwirrt ist, das erstige status=ok und nachher status = deferred(mail transport unavailable)

Beispiel einer Nachricht
Code:
flydesign-hosting:/etc/postfix# egrep EA90E1A18404E /var/log/mail.log
Feb 17 07:16:49 flydesign-hosting postfix/smtpd[5633]: EA90E1A18404E: client=flydesign-hosting.ibone.ch[127.0.0.1]
Feb 17 07:16:50 flydesign-hosting postfix/cleanup[5620]: EA90E1A18404E: message-id=<2ec3784d612bc28e58f272c8a6cb7e1d@localhost>
Feb 17 07:16:50 flydesign-hosting postfix/qmgr[18129]: EA90E1A18404E: from=<test@flydesign.ch>, size=910, nrcpt=1 (queue active)
Feb 17 07:16:50 flydesign-hosting postfix/smtp[5631]: DBB58191C406C: to=<test@testdomain.ch>, relay=127.0.0.1[127.0.0.1]:10025, delay=0.13, delays=0.02/0/0.04/0.06, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as EA90E1A18404E)
Feb 17 07:19:23 flydesign-hosting postfix/qmgr[24292]: EA90E1A18404E: from=<test@flydesign.ch>, size=910, nrcpt=1 (queue active)
Feb 17 07:24:23 flydesign-hosting postfix/error[7599]: EA90E1A18404E: to=<test@testdomain.ch>, relay=none, delay=453, delays=153/300/0/0.02, dsn=4.3.0, status=deferred (mail transport unavailable)
Feb 17 07:34:23 flydesign-hosting postfix/qmgr[24292]: EA90E1A18404E: from=<test@flydesign.ch>, size=910, nrcpt=1 (queue active)
Feb 17 07:34:23 flydesign-hosting postfix/error[3513]: EA90E1A18404E: to=<test@testdomain.ch>, relay=none, delay=1053, delays=1053/0.04/0/0.02, dsn=4.3.0, status=deferred (mail transport unavailable)
Feb 17 07:54:47 flydesign-hosting postfix/qmgr[23903]: EA90E1A18404E: from=<test@flydesign.ch>, size=910, nrcpt=1 (queue active)
Feb 17 07:54:47 flydesign-hosting postfix/error[6055]: EA90E1A18404E: to=<test@testdomain.ch>, relay=none, delay=2277, delays=2277/0.06/0/0.01, dsn=4.3.0, status=deferred (mail transport unavailable)
Feb 17 08:54:20 flydesign-hosting postfix/qmgr[11732]: EA90E1A18404E: from=<test@flydesign.ch>, size=910, nrcpt=1 (queue active)
Feb 17 08:54:20 flydesign-hosting postfix/error[27665]: EA90E1A18404E: to=<test@testdomain.ch>, relay=none, delay=5851, delays=5851/0.15/0/0, dsn=4.3.0, status=deferred (mail transport unavailable)
Feb 17 10:06:42 flydesign-hosting postfix/qmgr[11732]: EA90E1A18404E: from=<test@flydesign.ch>, size=910, nrcpt=1 (queue active)
Feb 17 10:06:42 flydesign-hosting postfix/error[21949]: EA90E1A18404E: to=<test@testdomain.ch>, relay=none, delay=10193, delays=10193/0.06/0/0, dsn=4.3.0, status=deferred (mail transport unavailable)
Feb 17 11:16:42 flydesign-hosting postfix/qmgr[11732]: EA90E1A18404E: from=<test@flydesign.ch>, size=910, nrcpt=1 (queue active)
Feb 17 11:16:42 flydesign-hosting postfix/error[3770]: EA90E1A18404E: to=<test@testdomain.ch>, relay=none, delay=14392, delays=14392/0.07/0/0, dsn=4.3.0, status=deferred (mail transport unavailable)
Feb 17 12:30:09 flydesign-hosting postfix/qmgr[11732]: EA90E1A18404E: from=<test@flydesign.ch>, size=910, nrcpt=1 (queue active)
Feb 17 12:30:09 flydesign-hosting postfix/error[11293]: EA90E1A18404E: to=<test@testdomain.ch>, relay=none, delay=18800, delays=18800/0.06/0/0, dsn=4.3.0, status=deferred (mail transport unavailable)

main.cf
Code:
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

myhostname = flydesign-hosting.ibone.ch
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = $myhostname, localhost.localdomain, localhost
mynetworks = 127.0.0.0/8
mailbox_command = procmail
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
default_process_limit = 10

#smtpd_recipient_restrictions =
#       permit_sasl_authenticated,
#       permit_mynetworks,
#       reject_unauth_destination,
#       reject_invalid_hostname,
#       reject_non_fqdn_hostname,
#       reject_non_fqdn_sender,
#       reject_non_fqdn_recipient,
#       reject_unknown_sender_domain,
#       reject_unknown_recipient_domain,
#       reject_unknown_hostname,
#       reject_unauth_pipelining

## SMTP AUTH & TLS
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_use_tls = no
#smtpd_tls_key_file = /etc/apache/ssl.key/confixx.key
#smtpd_tls_cert_file = /etc/apache/ssl.crt/confixx.crt
#smtpd_tls_loglevel = 3
#smtpd_tls_received_header = yes
#smtpd_tls_session_cache_timeout = 3600s
#tls_random_source = dev:/dev/urandom

smtpd_recipient_restrictions =
        permit_mynetworks,
        permit_sasl_authenticated,
        permit_auth_destination,
#       check_relay_domains,
        reject_unauth_destination


local_recipient_maps = $alias_maps unix:passwd.byname

### CONFIXX POSTFIX ENTRY ###

virtual_maps = hash:/etc/postfix/confixx_virtualUsers, hash:/etc/postfix/confixx_localDomains

### /CONFIXX POSTFIX ENTRY ###

content_filter = scan:127.0.0.1:10026
receive_override_options = no_address_mappings

master.cf
Code:
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       n       -       -       smtpd
#submission inet n      -       -       -       -       smtpd
#       -o smtpd_etrn_restrictions=reject
#628      inet  n       -       -       -       -       qmqpd
pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       -       300     1       qmgr
#qmgr     fifo  n       -       -       300     1       oqmgr
rewrite   unix  -       -       -       -       -       trivial-rewrite
bounce    unix  -       -       -       -       0       bounce
defer     unix  -       -       -       -       0       bounce
trace     unix  -       -       -       -       0       bounce
verify    unix  -       -       -       -       1       verify
flush     unix  n       -       -       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
smtp      unix  -       -       -       -       -       smtpd
relay     unix  -       -       -       -       -       smtp
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
#
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# maildrop. See the Postfix MAILDROP_README file for details.
#
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
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=bsmtp argv=/usr/lib/bsmtp/bsmtp -d -t$nexthop -f$sender $recipient
scalemail-backend unix  -       n       n       -       2       pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}

# only used by postfix-tls
#tlsmgr   fifo  -       -       n       300     1       tlsmgr
#smtps    inet  n       -       n       -       -       smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#587      inet  n       -       n       -       -       smtpd -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes

# AV scan filter (used by content_filter)
scan      unix  -       -       n       -       16      smtp
        -o smtp_send_xforward_command=yes

# For injecting mail back into postfix from the filter
127.0.0.1:10026 inet  n -       n       -       16      smtpd
        -o content_filter=
        -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
        -o smtpd_helo_restrictions=
        -o smtpd_client_restrictions=
        -o smtpd_sender_restrictions=
        -o smtpd_recipient_restrictions=permit_mynetworks,reject
        -o mynetworks_style=host
        -o smtpd_authorized_xforward_hosts=127.0.0.0/8

tlsmgr    unix  -       -       -       1000?   1       tlsmgr
scache    unix  -       -       -       -       1       scache
discard   unix  -       -       -       -       -       discard
retry     unix  -       -       -       -       -       error
proxywrite unix -       -       n       -       1       proxymap

smtpd.conf
Code:
pwcheck_method: saslauthd
mech_list: PLAIN LOGIN

Vielen Dank für Ihre Hilfe und Zeit im Voraus
 
Vielen Dank für die rasche Antwort.

Procmail läuft aus meiner Sicht, es schreibt jedesmal einen Eintrag in ein logfile in welchem steht, dass er mail löscht, welche einen zu hohen spamgrades. Beispiel:
Code:
From troyh@correo1.com  Tue Feb 17 17:09:54 2009
 Subject: *****SPAM***** =?windows-1251?B?UmVwbGljYSBXYXRjaGVz?=
  Folder: /dev/null                                                        7971


Ich habe nun den mailbox_command mit folgenden attributen erfolglos ausprobiert:
mailbox_command = /usr/bin/procmail -a "$EXTENSION"
mailbox_command = /usr/bin/procmail

Gibt es irgendwo eine Beispielkonfiguration von main.cf und master.cf welche sicher funktioniert?

Zum Content-Filter.
Wenn ich diesen auf den Ursprungsport 10025 ändere erscheint mir beim neustarten vom Confixx, die Meldung das der Port schon belegt ist. mit netstat -tlpen sieht man dan dass der Port von clamsmtpd belegt ist.

Ich habe nun den Port von 10026 auf 10025 geändert und damit Postfix startet den clamsmtpd dienst beendet. Nun läuft auf diesem Port ein Prozess namens: "31910/master"

Das Problem besteht leider immer noch im gleichen Rahmen --> (mail transport unavailable) zu hauf im /var/log/mail.log

Vielen Dank für deine Bemühungen.
 
Last edited by a moderator:
Back
Top