[Postfixbuch-users] Postfix als Relay für Exchange Server

Thomas Nitschke t.nitschke at ids-imaging.de
Mo Feb 13 08:53:03 CET 2006


Mea culpa ;-)

Hier die Ausgabe des postconf -n Befehls:

command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
defer_transports = bounce
html_directory = /usr/share/doc/packages/postfix/html
inet_interfaces = all
local_transport = error: Local delivery disbaled!
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
mydestination =
mydomain = xxxx.de
myhostname = mail2.xxxx.de
mynetworks = 192.168.30.0/24, 127.0.0.0/8, 192.168.40.0/24
mynetworks_style = 192.168.40/24
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/packages/postfix/README_FILES
relay_domains = xxxx.de yyyy.de
relay_recipient_maps = hash:/etc/postfix/relay_recipients
sample_directory = /usr/share/doc/packages/postfix/samples
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtpd_client_restrictions =
smtpd_helo_restrictions =
smtpd_recipient_restrictions = permit_mynetworks,reject_non_fqdn_sender,
reject_
non_fqdn_recipient,reject_unknown_sender_domain,reject_unknown_recipient_dom
ain,
reject_unauth_destination,
smtpd_sender_restrictions =
soft_bounce = no
transport_maps = hash:/etc/postfix/transport
transport_retry_time = 60h
unknown_local_recipient_reject_code = 550
virtual_alias_maps = hash:/etc/postfix/virtual



Hier die Config für die master.conf

#
# Postfix master process configuration file.  For details on the format
# of the file, see the Postfix master(5) manual page.
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================

smtp      inet  n       -       n       -       -       smtpd
ondemand  unix  -       -       n       -       -       smtp
#smtp-amavis unix -     -       n       -       2       smtp -o
smtp_data_done_timeout=1800 -o disable_dns_lookups=yes
#localhost:10025 inet  n       -       n       -       - smtpd -o
content_filter=
#submission inet n      -       n       -       -       smtpd
#       -o smtpd_etrn_restrictions=reject
#       -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps    inet  n       -       n       -       -       smtpd -o
smtpd_tls_wrappermode=yes
#  -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission   inet    n       -       n       -       -       smtpd
#  -o smtpd_etrn_restrictions=reject
#  -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
#628      inet  n       -       n       -       -       qmqpd
pickup    fifo  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   unix  -       -       n       1000?   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
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       n       -       -       smtp
        -o fallback_relay=
        -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
discard   unix  -       -       n       -       -       discard
#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=
scache    unix  -       -       n       -       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/local/bin/maildrop -d ${recipient}
cyrus     unix  -       n       n       -       -       pipe
  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}


Mit freundlichen Grüßen

Thomas Nitschke

 

-----Ursprüngliche Nachricht-----
Von: postfixbuch-users-bounces at listi.jpberlin.de
[mailto:postfixbuch-users-bounces at listi.jpberlin.de] Im Auftrag von Sandy
Drobic
Gesendet: Freitag, 10. Februar 2006 18:05
An: Eine Diskussionsliste rund um das Postfix-Buch.
Betreff: Re: [Postfixbuch-users] Postfix als Relay für Exchange Server

Thomas Nitschke wrote:
> Hallo Liste
> 
>  
> 
> Ich habe folgendes Problem mit einem Postfix 2.2.5 als SMTP Relay für
einen
> Exchange Server.
> 
> Ist der Exchange Server offline, nimmt Postfix die Mails an und löscht
diese
> dann (removed).
> 
> Was muss ich einstellen damit diese Mails in ner Qeue gehalten werden, um
> dann später, wenn der Exchange Sever wieder erreichbar ist, zu gestellt
> werden?

Meine Kristallkugel behauptet, du hast fallback_transport gesetzt. Es gibt 
aber noch andere Möglichkeiten. Zeige mal "postconf -n" und den Auszug aus 
dem Maillog, wo der Weg einer solchen verschwundenen Mail sichtbar ist.

Erst dann können wir sehen, ob es in main.cf oder vielleicht eine Option 
in master.cf ist.

Sandy

-- 
_______________________________________________
Postfixbuch-users mailingliste
Heinlein Professional Linux Support GmbH

Postfixbuch-users at listi.jpberlin.de
http://listi.jpberlin.de/mailman/listinfo/postfixbuch-users




Mehr Informationen über die Mailingliste Postfixbuch-users