Thank you Wietse for the answer, I have one last question since I never have
modified the master.cf does the following look correct:

# 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       -       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       -       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
relay     unix  -       -       n       -       -       smtp
        -o smtp_fallback_relay=[192.168.99.101]
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
scache    unix  -       -       n       -       1       scache


I am not sure if I should have two relay directives in my master.cf or just
edit the fallback_relay to smtp_fallback_relay.

Thanks

Don


On Wed, Oct 14, 2009 at 2:44 PM, Wietse Venema <wie...@porcupine.org> wrote:

> Don:
> > So my question out of all of this is: How do we get
> > smtp_fallback_relay to only function for incoming messages to our domain
> > example.com but
> > not use the directive if messages are coming from exchange destined
> towoards
>
> Use different master.cf transports. For example, for inbound
>
> /etc/postfix/transport:
>        example.com: relay:[gateway.example.com]
>
> /etc/postfix/master.cf:
>        relay unix ... smtp -o smtp_fallback_relay=[fallback.example.com]
>
> And don't use smtp_fallback_relay in main.cf.
>
> In the above example, [] is needed to suppress MX lookups.
>
>        Wietse
>

Reply via email to