# postfix

  $mta_in_type = $mta_out_type = 'postfix';

# -------------------------------------------------------------------
# The setting of $gets_addr_in_quoted_form depends on flags specified
# to the pipe command in master.cf file of the Postfix configuration.
# See Postfix man page for pipe(8). It only influences the amavis client
# protocol (e.g. milter, traditional style Postfix). It has no effect
# if SMTP protocol is used to feed amavisd from MTA.
#
# Settings of flag q, and the value of variable $gets_addr_in_quoted_form
# must match. Recommended is WITHOUT the q flag to avoid some unnecessary
# work, both in Postfix and in amavisd.

	$gets_addr_in_quoted_form = 0;  # plain pipe WITHOUT flag q
    ### $gets_addr_in_quoted_form = 1;  # 'pipe flags=q'


# -------------------------------------------------------------------
# Mail forwarding and mail notifications methods.
# choose from: \&mail_via_smtp, \&mail_via_pipe

	$forward_method = \&mail_via_smtp;
	$notify_method  = \&mail_via_smtp;

# Both mail_via_smtp and mail_via_pipe can work with Postfix.
#
# Traditionally NOTIFICATIONS went through mail_via_pipe, forking
# a 'sendmail' process. This has two drawbacks: it does one more fork
# (but this is not too painful), and it injects mail notifications
# into the normal Postfix input pipe, which usually means we'll get the
# same notification messages we just created - back for virus checking,
# which is probably unnecessary, so $notify_method = \&mail_via_smtp
# is the preferred method. It also gets away with having to worry about
# setting sendmail wrapper path and options right.
#
# For FORWARDING (mail reinjection) we prefer MAIL_VIA_SMTP, which gives
# more informative reject reasons and avoids one process fork - at the
# expense of Perl I/O.
#
# For forwarding through mail_via_smtp to work with Postfix, one has to
# add '-o content_filter=' to the 'smtpd' task that will be accepting
# reinjected mail, e.g.:
#   localhost:10025 inet n - n - - smtpd -o content_filter=
#                                        ^^^^^^^^^^^^^^^^^^
# This option makes Postfix understand that mail from this feed should
# NOT be submitted for virus checking (again).  The 'localhost:10025'
# field must match amavisd.conf settings for $localhost_ip and $smtp_port.
#
# FORWARDING with MAIL_VIA_PIPE is also possible. For this to work
# one has to add '-o content_filter=' to the 'pickup' task in the Postfix
# master.cf file, e.g.
#   pickup fifo n - n 30 1 pickup -o content_filter=
#                                 ^^^^^^^^^^^^^^^^^^
# This way all local mail submission from the host (e.g. via sendmail
# or mail command) will avoid being checked for viruses. This may be ok
# when there are no local users or user tasks running on the same host.
# If you choose mail_via_pipe method for mail forwarding, it is sensible
# (but not necessary) to choose it for notifications as well.

# See also file README.postfix

# End postfix
