Postfix + VHCS: 550 - Recipient address rejected

Gregstar

New Member
Hallo Leute!

Ich habe mir notgedrungen einen eigenen VServer gemietet und darauf die Standardinstallation von VHCS und Debian raufgeladen. Es funktioniert alles super bis auf Mail. Als MTA fungiert Postfix, Courier für POP3 und IMAP sowie SASL für die Authentifizierung per SMTP. Nun habe ich folgendes Problem: versenden von Mails funktioniert, nur wenn ich welche empfangen möchte zb von Yahoo bekomme ich bei Yahoo folgendes zurück:
Code:
550 <5ai@5ai.gregstar.at>: Recipient address rejected: User unknown in local recipient table

hier meine main.cf:
Code:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version

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 = server1.gregstar.at
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = server1.gregstar.at, lichtscheidl.hierverwalten.de, localhost.hierverwalten.de, localhost, 5ai.gregstar.at, badundwohnkultur.at
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all

master.cf:
Code:
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  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  -       -       -       -       -       smtp
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

main.cf.dpkg-dist:

Code:
#
# Postfix MTA Manager Main Configuration File;
#
# Please do NOT edit this file manually;
#

#
# Postfix directory settings; These are critical for normal Postfix MTA functionallity;
#

command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
program_directory = /usr/lib/postfix

#
# Some common configuration parameters;
#

inet_interfaces = all
mynetworks_style = host

myhostname = server1.gregstar.at
mydomain = server1.gregstar.at.
myorigin = $mydomain

smtpd_banner = $myhostname VHCS2 2.4 (Spartacus) Managed ESMTP 2.4.7.1
setgid_group = postdrop

#
# Receiving messages parameters;
#

mydestination = $myhostname, $mydomain
append_dot_mydomain = no
append_at_myorigin = yes
local_transport = local
virtual_transport = virtual
transport_maps = hash:/etc/postfix/vhcs2/transport

#
# Delivering local messages parameters;
#

mail_spool_directory = /var/spool/mail
mailbox_size_limit = 0
mailbox_command = procmail -a "$EXTENSION"

biff = no

alias_database = hash:/etc/aliases

local_destination_recipient_limit = 1
local_recipient_maps = unix:passwd.byname $alias_database

#
# Delivering virtual messages parameters;
#

virtual_mailbox_base = /var/spool/mail/virtual
virtual_mailbox_limit = 0

virtual_mailbox_domains = hash:/etc/postfix/vhcs2/domains
virtual_mailbox_maps = hash:/etc/postfix/vhcs2/mailboxes

virtual_alias_maps = hash:/etc/postfix/vhcs2/aliases

virtual_minimum_uid = 107
virtual_uid_maps = static:107
virtual_gid_maps = static:8

#
# SASL paramters;
#

smtpd_sasl_auth_enable = yes

smtpd_sasl_security_options = noanonymous

smtpd_sasl_local_domain = $myhostname

broken_sasl_auth_clients = yes

smtpd_recipient_restrictions =
   permit_sasl_authenticated,
   permit_mynetworks,
   permit_mydestination,
   reject_unauth_destination

Könnt ihr mir helfen? Ich verzweifle wirklich daran. Das größte Problem ist, dass ich deswegen keinen Webserver umzug machen kann, da die E-Mail Accounts ja nicht funktionieren :(
 
Hallo,

versuche mal folgendes :

Code:
postconf -e 'myhostname = mail.irgentwas.de' <<<Deine Hauptdomain mit mail davor
postconf -e 'mydomain = $myhostname'
postfix reload

Ansonsten wäre noch ein Blick in die /etc/postfix/vhcs2/mailboxes ein Versuch wert. Also bitte hier mal posten.

Genauso wie ein Blick in die Logfiles (Hauptsächlich reicht /var/log/mail.info) zu dem Zeitpunkt des Empfangs.
 
Hat sich leider nichts verändert.

/etc/postfix/vhcs2/mailboxes:

Code:
mail@sam.gregstar.at    sam.gregstar.at/mail/
5ai@5ai.gregstar.at     5ai.gregstar.at/5ai/
test@5ai.gregstar.at    5ai.gregstar.at/test/
info@badundwohnkultur.at        badundwohnkultur.at/info/

/var/log/mail.info:
Code:
Sep 21 20:36:49 lichtscheidl postfix/smtpd[11957]: connect from web26602.mail.ukl.yahoo.com[217.146.176.52]
Sep 21 20:36:49 lichtscheidl postfix/smtpd[11957]: NOQUEUE: reject: RCPT from web26602.mail.ukl.yahoo.com[217.146.176.52]: 550 <5ai@5ai.gregstar.at>: Recipient address rejected: User unknown in local recipient table; from=<g_lichtscheidl@yahoo.de> to=<5ai@5ai.gregstar.at> proto=SMTP helo=<web26602.mail.ukl.yahoo.com>
Sep 21 20:36:49 lichtscheidl postfix/smtpd[11957]: disconnect from web26602.mail.ukl.yahoo.com[217.146.176.52]
 
Ahh, das war der Fehler. Ich habe unnötigerweise permit_mydestination hinzugefügt. jetzt funktionierts =)

Danke für die Hilfe
 
Back
Top