[postfix-users] Problem mit lokalen Mails

Dominic Osterried dominic.osterried at gmx.de
Sa Apr 25 16:47:09 CEST 2009


Hallo Zusammen,

ich habe ein komisches Problem mit Postfix: Wenn ich versuche eine 
Mail an einen lokalen Empfänger zu schicken, meldet Postfix, dass
dieser Benutzer nicht existiert. Sobald ich aber in die /etc/aliases
"jacques: dominic.osterried at gmx.de" einfüge schickt er die mail
problemlos über gmx. Somit ist es ein Problem, dass nur beim lokalen
Versenden auftritt. Die Testmails schicke ich per "mail jacques"
aus einer Konsole, an der ich auch als jacques angemeldet bin.
Das System ist Debian Testing.
Ich habe das Problem auch schon auf der englischen Postfix-Mailing-Liste
geschildert, allerdings habe ich dort keine Antwort erhalten.


/var/log/mail.log:
------------------------

Apr 23 18:21:43 debian postfix/pickup[2652]: 098C9A4317: uid=1000 from=<jacques>
Apr 23 18:21:43 debian postfix/cleanup[3718]: 098C9A4317: message-id=<20090423162143.098C9A4317 at debian>
Apr 23 18:21:43 debian postfix/qmgr[2653]: 098C9A4317: from=<dominic.osterried at gmx.de>, size=289, nrcpt=1 (queue active)
Apr 23 18:21:43 debian postfix/local[3720]: 098C9A4317: to=<jacques at debian>, orig_to=<jacques>, relay=local, delay=0.19, delays=0.13/0.03/0/0.03, dsn=5.1.1, status=bounced (unknown user: "jacques")
Apr 23 18:21:43 debian postfix/cleanup[3718]: 260F5A4318: message-id=<20090423162143.260F5A4318 at debian>
Apr 23 18:21:43 debian postfix/qmgr[2653]: 260F5A4318: from=<>, size=1945, nrcpt=1 (queue active)
Apr 23 18:21:43 debian postfix/bounce[3721]: 098C9A4317: sender non-delivery notification: 260F5A4318
Apr 23 18:21:43 debian postfix/qmgr[2653]: 098C9A4317: removed
Apr 23 18:21:43 debian postfix/smtp[3722]: 260F5A4318: to=<dominic.osterried at gmx.de>, relay=mail.gmx.net[213.165.64.21]:25, delay=0.27, delays=0.04/0.01/0.21/0.02, dsn=5.1.7, status=bounced (host mail.gmx.net[213.165.64.21] said: 550 5.1.7 This server does not accept an empty envelope from ( http://portal.gmx.net/serverrules ) {mp037} (in reply to MAIL FROM command))
Apr 23 18:21:43 debian postfix/qmgr[2653]: 260F5A4318: removed


Meine Konfiguration:
------------------------
main.cf:
------------------------

# 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

append_dot_mydomain = no

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

myhostname = debian
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = debian, localhost.localdomain, localhost
relayhost = mail.gmx.net
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = 
inet_interfaces = all
inet_protocols = all

smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl_password

sender_canonical_maps = hash:/etc/postfix/sender_canonical


master.cf:
------------------------

# 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       -       n       -       -       smtpd
#  -o smtpd_enforce_tls=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps     inet  n       -       n       -       -       smtpd
#  -o smtpd_tls_wrappermode=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#628      inet  n       -       n       -       -       qmqpd
pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       -       300     1       qmgr
#qmgr     fifo  n       -       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  -       -       -       -       -       proxymap
smtp      unix  -       -       -       -       -       smtp 
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       -       -       -       smtp
	-o smtp_fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
retry     unix  -       -       -       -       -       error
discard   unix  -       -       -       -       -       discard
local     unix  -       n       -       -       -       local
virtual   unix  -       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}


/etc/postfix/sender_canonical:
------------------------

jacques dominic.osterried at gmx.de
root dominic.osterried at gmx.de


/etc/aliases:
------------------------
mailer-daemon: postmaster
postmaster: root
nobody: root
hostmaster: root
usenet: root
news: root
webmaster: root
www: root
ftp: root
abuse: root
noc: root
security: root
root: jacques


/etc/mailname:
------------------------

debian


/etc/hosts:
------------------------

127.0.0.1	localhost
127.0.1.1	debian



Freundliche Grüße
Dominic



More information about the postfix-users mailing list