• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Postfix sendet alle mails nach draußen

Status
Für weitere Antworten geschlossen.

Xware

Newbie
Hallo,

ich habe mich heute mal an Postfix und Cyrus auf einer SuSE 9.2-Maschiene versucht. leider bleibe ich an einem kleinen Problem hängen. Und zwar schickt postfix alle mails an den Relay-Server, obwohl ich einen lokalen User anschreibe... :shock:

wäre schön wenn ihr mir helfen könntet.

hier die main.cf
Code:
biff = no
command_directory = /usr/sbin
debug_peer_level = 2
html_directory = /usr/share/doc/packages/postfix/html

manpage_directory = /usr/share/man
newaliases_path = /usr/bin/newaliases
readme_directory = /usr/share/doc/packages/postfix/README_FILES
sample_directory = /usr/share/doc/packages/postfix/samples
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
unknown_local_recipient_reject_code = 550

relayhost = smtprelay.t-online.de
program_directory = /usr/lib/postfix
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
queue_directory = /var/spool/postfix
mailq_path = /usr/bin/mailq
default_privs = nobody
mail_spool_directory = /var/mail
mailbox_command = /usr/lib/cyrus/bin/deliver
mailbox_transport = lmtp:unix:public/lmtp
local_destination_concurrency_limit = 2
default_destination_concurrency_limit = 10
default_peer_level = 2
mynetworks = 192.168.1.0/24, 127.0.0.0/8
myhostname = smtp.heimnetz.loc
mydomain = heimnetz.loc
myorigin = $mydomain
mail_owner = postfix
default_transport = smtp
canonical_maps = hash:/etc/postfix/canonical
smtpd_banner = $myhostname ESMTP
alias_maps = hash:/etc/aliases
setgid_group = maildrop
luser_relay = $root@smtp.heimnetz.loc

hier noch ein Eintrag aus der mail.log
Code:
Jan 11 00:25:08 server postfix/qmgr[5392]: 1D58E1D65: from=<fra@heimnetz.loc>, size=513, nrcpt=1 (queue active)
Jan 11 00:25:20 server postfix/smtp[5404]: 1D58E1D65: to=<ann@heimnetz.loc>, relay=smtprelay.t-online.de[194.25.134.28], delay=12, status=sent (250 Message accepted.)
Jan 11 00:25:20 server postfix/qmgr[5392]: 1D58E1D65: removed

und hier noch die master.cf
Code:
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       n       -       -       smtpd
#smtps    inet  n       -       n       -       -       smtpd
#  -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission   inet    n       -       n       -       -       smtpd
#  -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes -o smtpd_etrn_restrictions=reject
#628      inet  n       -       n       -       -       qmqpd
pickup    fifo  n       n       n       60      1       pickup
cleanup   unix  n       -       n       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       n       300     1       oqmgr
#tlsmgr   fifo  -       -       n       300     1       tlsmgr
rewrite   unix  -       -       n       -       -       trivial-rewrite
bounce    unix  -       -       n       -       0       bounce
defer     unix  -       -       n       -       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  -       -       n       -       -       smtp
relay     unix  -       -       n       -       -       smtp
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
#localhost:10025 inet	n	-	n	-	-	smtpd -o content_filter=
#
# 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}
cyrus	  unix	-	n	n	-	-	pipe
  flags=R 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}

falls noch andere configs benötigt werden, bitte schreien :wink:[/code]
 

oc2pus

Ultimate Guru
# The mydestination parameter specifies the list of domains that this
# machine considers itself the final destination for.
#
# These domains are routed to the delivery agent specified with the
# local_transport parameter setting. By default, that is the UNIX
# compatible delivery agent that lookups all recipients in /etc/passwd
# and /etc/aliases or their equivalent.
#
# The default is $myhostname + localhost.$mydomain. On a mail domain
# gateway, you should also include $mydomain.
#
# Do not specify the names of virtual domains - those domains are
# specified elsewhere (see VIRTUAL_README).
#
# Do not specify the names of domains that this machine is backup MX
# host for. Specify those names via the relay_domains settings for
# the SMTP server, or use permit_mx_backup if you are lazy (see
# STANDARD_CONFIGURATION_README).
#
# The local machine is always the final destination for mail addressed
# to user@[the.net.work.address] of an interface that the mail system
# receives mail on (see the inet_interfaces parameter).
#
# Specify a list of host or domain names, /file/name or type:table
# patterns, separated by commas and/or whitespace. A /file/name
# pattern is replaced by its contents; a type:table is matched when
# a name matches a lookup key (the right-hand side is ignored).
# Continue long lines by starting the next line with whitespace.
#
# See also below, section "REJECTING MAIL FOR UNKNOWN LOCAL USERS".
#
mydestination = $myhostname, $mydomain, localhost.$mydomain
 
OP
X

Xware

Newbie
Danke,

ich glaub ich hab den Wald vor lauter Bäumen nicht mehr gesehen :?

Es geht jetzt... :D
 
Status
Für weitere Antworten geschlossen.
Oben