[PREVIOUS CHAPTER]
[NEXT CHAPTER]
4 Relaying based on RFC821
Today we cannot permit relaying against spam mails. If sendmail is not
found, FML tries to use qmail-smtpd, exim.
4.1 Relay Configurations In Actives File
When you can use relay server (here axion.phys.titech.ac.jp), You can
write how to relay in "actives" file,
fukachan@phys.titech.ac.jp r=axion.phys.titech.ac.jp
address relay server
fukachan@phys.titech.ac.jp r=axion.phys.titech.ac.jp
FML interprets, rewrite and injects this to sendmail as:
@axion.phys.titech.ac.jp:fukachan@phys.titech.ac.jp
If "actives" file has the following entries
fukachan@phys.titech.ac.jp r=axion.phys.titech.ac.jp
Elena@phys.titech.ac.jp r=axion.phys.titech.ac.jp
cocoa@phys.titech.ac.jp r=axion.phys.titech.ac.jp
FML injects
@axion.phys.titech.ac.jp:fukachan@phys.titech.ac.jp
@axion.phys.titech.ac.jp:Elena@phys.titech.ac.jp
@axion.phys.titech.ac.jp:cocoa@phys.titech.ac.jp
sendmail 8.x delivery aggregates SMTP sessions to axion.
On axion, MTA segregates it to three mails.
4.2 Default relay server
You can set up $DEFAULT_RELAY_SERVER. it is used as a default relay
server. FML recognizes all recipients should be delivered via the
relay server. FML interprets entries in "actives" has
r=$DEFAULT_RELAY_SERVER.
$DEFAULT_RELAY_SERVER
4.3 Relay Based On Actives File (Sendmail 5.X)
fukachan@phys.titech.ac.jp r=axion.phys.titech.ac.jp
Elena@phys.titech.ac.jp r=axion.phys.titech.ac.jp
cocoa@phys.titech.ac.jp r=axion.phys.titech.ac.jp
In Sendmail 5.x, you require additional orderings by relay server in
"actives".
4.4 Cf (By motonori@wide.ad.jp) Style Relay Configurations
When $RELAY_HACK = 1; is defined and $CF_DEF (CF style static delivery
rule file) exists, FML controls relaying based on it.
CF style example:
send e-mail for or.jp domain to mlrelay0.domain0.
GW smtp-ignmx: mlrelay0.domain0
DOM or.jp
CF style example2:
send mails not for co.jp to mlrelay.domain.
send e-mail for or.jp domain to mlrelay0.domain0.
NGW smtp-ignmx: mlrelay.domain
DOM co.jp
GW smtp-ignmx: mlrelay0.domain0
DOM or.jp
SMTP library uses hashes %RELAY_NGW, %RELAY_GW, %RELAY_NGW_DOM for
control of this relay routings.
[PREVIOUS CHAPTER]
[NEXT CHAPTER]