[PREVIOUS CHAPTER] [NEXT CHAPTER]
2 Case Study

2.1	SMTP logfile


For debug, FML logs SMTP session log in $SMTP_LOG. If you do not want
the logging, please set

	$NOT_TRACE_SMTP = 1; 


2.2	Delivery After Sorting


If

	$SMTP_SORT_DOMAIN


is defined, delivery routine works after sorting recipients by domain.


2.3	$OUTGOING_ADDRESS: shorten perl life time

$OUTGOING_ADDRESS is a simple :include: style ML. The member is
recipients of this ML. Fml generates the file from recipient lists,
@ACTIVE_LISTS files. 

   if ($USE_OUTGOING_ADDRESS) {
	1. fml sends article to $OUTGOING_ADDRESS.
	   Hence perl dies here!
	2. MTA expands the include and delivers the article to ML members.
   }


[How to configure]


0.	Consider elena ML


1.	make include examles

   % cd /var/spool/ml/elena
   % make outgoing 


You can see elena/include-outgoing file.


2.	add elena-outgogin to /etc/aliases and run newaliases

   elena-outgoing: :include:/var/spool/ml/elena/include-outgoing


3.	run 'makefml config' to enable this function

	-> OPTIONS -> SMTP -> USE_OUTGOING_ADDREESS -> "y"


$USE_OUTGOING_ADDDRESS changes from zero/null to 1.


2.4	Disable PIPELINING

	$NOT_USE_ESMTP_PIPELINING = 1;


2.5	Use Plural Mta'S On Plural Hosts


To use plural MTA on plural hosts (N hosts), set the number of hosts
in

	$MCI_SMTP_HOSTS = N;


and configure an array @HOSTS filled with at least N hostnames.

   @HOSTS = (machine-1.domain, machine-2.domain, machine-3.domain, ...);


fml.pl uses MTA's on $HOST and @HOSTS in delivery.


If the total number of $HOST and @HOSTS < N, fml.pl uses $HOST again
and again. This technique is used as a secondary server in delivery.
When you setup @HOSTS and unset $MCI_SMTP_HOSTS, fml.pl uses $HOST in
usual, but @HOSTS if $HOST is down.


2.6	VERPs


1; $SMTP_SENDER = $MAINTAINER; $SMTP_SENDER =~ s/$DOMAINNAME/$myDOMAIN/; 1; [PREVIOUS CHAPTER] [NEXT CHAPTER]