postfix : status=deferred (temporary failure)

natas77

New Member
hallo

ich habe ein kleines Problem mit mein Mailserver
den mailser habe ich nach dieser Anleitung:Howto: ISP-style Email Server with Debian-Etch and Postfix 2.3
aufgebaut habe aber dabei ein Problem
wenn ich in Schritt 7: Eine Testmail mit TELNET versenden
eine Testmail versenden will bekomme ich folgende eingräte in die mail.log Datei:
Code:
Jun 27 16:35:22 Debian-40-etch-64-LAMP postfix/smtpd[32721]: connect from localhost[127.0.0.1]
Jun 27 16:35:50 Debian-40-etch-64-LAMP postfix/smtpd[32721]: 2AFC26400E1: client=localhost[127.0.0.1]
Jun 27 16:36:16 Debian-40-etch-64-LAMP postfix/cleanup[32724]: 2AFC26400E1: message-id=<20090627143550.2AFC26400E1@Debian-40-etch-64-LAMP>
Jun 27 16:36:16 Debian-40-etch-64-LAMP postfix/qmgr[32694]: 2AFC26400E1: from=<steve@example.com>, size=408, nrcpt=1 (queue active)
Jun 27 16:36:16 Debian-40-etch-64-LAMP postfix/pipe[32702]: 2AFC26400E1: to=<john@example.com>, relay=dovecot, delay=33, delays=33/0/0/0.01, dsn=4.3.0, status=deferred (temporary failure)
Jun 27 16:36:21 Debian-40-etch-64-LAMP postfix/smtpd[32721]: disconnect from localhost[127.0.0.1]

meine master.cf
Code:
#
# Postfix master process configuration file.  For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       -       -       -       smtpd
#submission inet n       -       -       -       -       smtpd
#  -o smtpd_enforce_tls=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps     inet  n       -       -       -       -       smtpd
#  -o smtpd_tls_wrappermode=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#628      inet  n       -       -       -       -       qmqpd
pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       -       300     1       oqmgr
tlsmgr    unix  -       -       -       1000?   1       tlsmgr
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  -       -       -       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       -       -       -       smtp
	-o fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
discard   unix  -       -       -       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       -       -       -       lmtp
anvil     unix  -       -       -       -       1       anvil
scache	  unix	-	-	-	-	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/bin/maildrop -d ${recipient}
#
# See the Postfix UUCP_README file for configuration details.
#
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
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 -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}
mailman   unix  -       n       n       -       -       pipe
  flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  ${nexthop} ${user}
dovecot   unix  -       n       n       -       -       pipe
    flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -d ${recipient}

und die main.fc:
Code:
# 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 = Debian-40-etch-64-LAMP
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = Debian-40-etch-64-LAMP, localhost.localdomain, , localhost
relayhost = 
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/postfix/mysql-email2email.cf
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1

es währe super wenn mir jemand helfen könnte damit es endlich läuft.


Gruß
 
hi

ich habe in der /etc/hostname folgendes stehen :

Code:
Debian-40-etch-64-LAMP

und in der /etc/hosts :

Code:
xx.xx.xxx.xx  Debian-40-etch-64-LAMP.example.com Debian-40-etch-64-LAMP
ist das nicht FQDN?

und mir ist folgendes aufgefallen im ordner /home/vmail da wo die mails ja landen sollten habe ich nun eine Datei namens : dovecot-deliver.log
und der inhalt daraus ist :

Code:
deliver(john@example.com): "2009-06-28 14:22:24 "Error: stat(/home/vmail/example.com/john/.dovecot.sieve) failed: Permission denied
deliver(john@example.com): "2009-06-28 14:22:24 "Error: lstat(/home/vmail/example.com/john/cur) failed: Permission denied
deliver(john@example.com): "2009-06-28 14:22:24 "Error: chdir(/home/vmail/example.com/john) failed: Permission denied
deliver(john@example.com): "2009-06-28 14:22:24 "Error: lstat(/home/vmail/example.com/john/cur) failed: Permission denied
deliver(john@example.com): "2009-06-28 14:22:24 "Error: stat(/home/vmail/example.com/john/.dovecot.sieve) failed: Permission denied
deliver(john@example.com): "2009-06-28 14:22:24 "Error: lstat(/home/vmail/example.com/john/cur) failed: Permission denied

im ordner /home/vmail hat vmail die rechte 0777
muss ich ein neuen user anlegen?
 
das Ergebnis von :ls -la /home/vmail

Code:
drw------- 3 vmail vmail 4.0K 2009-06-27 16:07 .
drwxrwxrwx 4 vmail vmail 4.0K 2009-06-27 12:48 ..
-rw-r--r-- 1 vmail vmail  220 2009-06-27 12:48 .bash_logout
-rw-r--r-- 1 vmail vmail  414 2009-06-27 12:48 .bash_profile
-rw-r--r-- 1 vmail vmail 2.2K 2009-06-27 12:48 .bashrc
-rw------- 1 vmail vmail  69K 2009-06-28 14:12 dovecot-deliver.log
drwxrwxrwx 3 vmail vmail 4.0K 2009-06-27 14:49 example.com

kannst du mir bitte ein beispiel für ein FQHN

wie müsste dan meine /etc/host & /etc/hostname aussehen?
zu zeit ist es folgender massen:

/etc/mailname :
Code:
Debian-40-etch-64-LAMP
etc/hosts :
Code:
127.0.0.1 localhost
ip.ip.ip.ip  Debian-40-etch-64-LAMP.example.com Debian-40-etch-64-LAMP
und die /etc/hostname :
Code:
Debian-40-etch-64-LAMP
wenn ich hostname --fqdn ausführe bekomme ich
Code:
Debian-40-etch-64-LAMP.example.com





es hört sich blöd an aber ich weiß nicht ob ich von Anbieter also Hetzner diese Einträge ändern kann
 
Last edited by a moderator:
Es liegt jedenfalls nicht am FQDN (obwohl er falsch ist).

Poste mal die Ausgabe von:
Code:
ls -la /home/vmail/example.com
 
so ls -la /home/vmail/example.com :

Code:
drwxrwxrwx 3 vmail vmail 4.0K 2009-06-27 14:49 .
drw------- 3 vmail vmail 4.0K 2009-06-27 16:07 ..
drw-rw-rw- 8 vmail vmail 4.0K 2009-06-27 15:03 john
 
ja ist es.

ich habe nun Option log_path in der dovecot.conf auskommentiert damit die Meldungen alle in die mail.log geschrieben werden.

so wenn ich jetzt postfix neustarte oder eine Testmail versenden will
bekomme ich folgende Einträge in die mail.log:

Code:
Jun 28 23:15:40 Debian-40-etch-64-LAMP dovecot: Dovecot v1.0.rc15 starting up
Jun 28 23:15:42 Debian-40-etch-64-LAMP dovecot: auth-worker(default): mysql: Connected to 127.0.0.1 (mailserver)
Jun 28 23:18:07 Debian-40-etch-64-LAMP dovecot: Killed with signal 15
Jun 28 23:18:08 Debian-40-etch-64-LAMP dovecot: Dovecot v1.0.rc15 starting up
Jun 28 23:18:10 Debian-40-etch-64-LAMP dovecot: auth-worker(default): mysql: Connected to 127.0.0.1 (mailserver)
Jun 28 23:18:13 Debian-40-etch-64-LAMP dovecot: Killed with signal 15
Jun 28 23:18:14 Debian-40-etch-64-LAMP dovecot: Dovecot v1.0.rc15 starting up
Jun 28 23:18:15 Debian-40-etch-64-LAMP dovecot: auth-worker(default): mysql: Connected to 127.0.0.1 (mailserver)
Jun 28 23:18:31 Debian-40-etch-64-LAMP postfix/master[22581]: terminating on signal 15
Jun 28 23:18:31 Debian-40-etch-64-LAMP postfix/master[23739]: daemon started -- version 2.3.8, configuration /etc/postfix
Jun 28 23:18:31 Debian-40-etch-64-LAMP postfix/qmgr[23741]: EB5886400C9: from=<steve@example.com>, size=408, nrcpt=2 (queue active)
Jun 28 23:18:31 Debian-40-etch-64-LAMP deliver(john@example.com): chdir(/home/vmail/example.com/john) failed: Permission denied
Jun 28 23:18:31 Debian-40-etch-64-LAMP deliver(john@example.com): lstat(/home/vmail/example.com/john/cur) failed: Permission denied
Jun 28 23:18:31 Debian-40-etch-64-LAMP deliver(john@example.com): stat(/home/vmail/example.com/john/.dovecot.sieve) failed: Permission denied
Jun 28 23:18:31 Debian-40-etch-64-LAMP deliver(john@example.com): stat(/home/vmail/globalsieverc) failed: Permission denied
Jun 28 23:18:31 Debian-40-etch-64-LAMP deliver(john@example.com): lstat(/home/vmail/example.com/john/cur) failed: Permission denied
Jun 28 23:18:31 Debian-40-etch-64-LAMP postfix/pipe[23747]: EB5886400C9: to=<john@example.com>, relay=dovecot, delay=1897, delays=1897/0.03/0/0.04, dsn=4.3.0, status=deferred (temporary failure)

wieso kann vmail[5000] in /home/vmail... nicht schreiben?
es hat doch die rechte.
oder muss ich in devocot.conf den user ändern?
 
Back
Top