AN RouteOutgoingMail 052604
AN RouteOutgoingMail 052604
AN RouteOutgoingMail 052604
Overview
This document contains setup notes for various mail servers and gateways commonly
found running on dial-up networks. One thing to remember that applies to each of
these: The server settings you specify in your mail relay do not affect the From: or
Reply-To: addresses you specify in your mail client software.
Some examples feature a Masquerade option that might be useful if your Internet
provider refuses to deliver mail with an unknown domain name in the Reply address.
This still does not change the reply address that your intended recipients will see.
Mail servers not specified here should have an obvious "Gateway" or "Relay" or
"Firewall" setting that lets you specify a server to forward outbound mail to.
Whistle InterJet
Deerfield's MDaemon
Postfix
Qmail
Novell Groupwise
ZMailer
2
Application Note: How to route your outgoing mail
Sendmail
The "masquerade_as" setting will change the sender envelope (MAIL FROM:
contents, also known as the Envelope Sender) in case your ISP's outgoing server
denies outbound mail with different domains in the MAIL FROM: or Envelope
Sender line.
Glad to be of some use. Also, sorry for the delays and no, I'm not going to put your e-
mail address here just so it can be strip-mined by spammers. :-)
Whistle's InterJet
On the InterJet's Mail Agent / Options configuration pages, type your ISP's outgoing
server name in the "forward all mail to:" field.
Also, upgrade your InterJet's firmware to 2.1p2 or later to prevent relay theft by
spammers. See Whistle's tech note on preventing spam relay.
3
Application Note: How to route your outgoing mail
Deerfield's MDaemon
We most commonly see MDaemon used in tandem with Wingate to provide email
and general Internet connectivity. If this is your case, you should also make sure your
Wingate proxy is not accessible from outside your LAN (such that spammers can't
access your ISP's mail server via your proxy!) One way to accomplish this is
programming Wingate not to proxy for connections on Port 25. You can use
MDaemon to relay your mail instead.
Much of this applies to Exchange Server 5.5 or later. You may need to upgrade older
versions, especially to prevent relay theft by spammers.
The Exchange Server Administrator program has a Connections tab that lets you
specify how to route mail for specific domains (Message Delivery). It also has a
default route. Select "Forward all messages to host:" and type in the name of your
Internet provider's outgoing mail server. You can override this rule for specific
domains (such as your own).
You should upgrade to IMS 0.83 or later if you're running the freeware IMS or one of
its clones, and also install MFILTER and Antirelay to prevent relay theft. You will
find these tools and dial-up scripts at http://www1.sica.com/ims/. MailSite is already
up to date.
Look for the Domains tab in the IMS control panel. Type yout Internet provider's
outgoing mail server name in the SMTP Gateway box.
4
Application Note: How to route your outgoing mail
Postfix
The myorigin parameter specifies the domain that appears in mail that is posted on
this machine. The above setting forces it to be the domain name of your ISP instead
of the full name of your system, and works with mail servers that permit relay based
on domain name (much like Sendmail's Masquerade feature). The relayhost
parameter routes all outgoing mail through the mailserver of your ISP.
Qmail
Qmail takes explicit routes from the file /var/qmail/control/smtproutes. If your ISP's
mail host is smtp.yourisp.net, put in it a line containing
:smtp.yourisp.net
(The part before the colon is the domain to route through that server, with nothing
before the colon meaning to make it the default.)
You may also want to put your ISP's domain name into /var/qmail/control/defaulthost
so that name appears as the domain part of From: and envelope "mail from"
addresses. The defaulthost setting lets you work with mail servers that permit relay
based on domain name. You can also control the outgoing domain with environment
variables, see the man page for qmail-inject.
This instructs Groupwise to direct all outgoing mail through "smtp.yourisp.net". See
Novell's article ID 2928239. http://support.novell.com
5
Application Note: How to route your outgoing mail
ZMailer
. smtp.yourisp.net
For recent versions of ZMailer you will need to rebuid the routes
map using the "zmailer new-routes" command. For very old versions of
ZMailer you will have to make sure the routes file is sorted (if
your routing table contains more than one line), but in this case
you probably should consider upgrading.