Urgent BSD - SendMail Query

Ryan Thompson ryan at sasknow.com
Sun Jul 27 12:09:27 PDT 2003


Schalk Erasmus wrote to freebsd-isp at freebsd.org:

> Hi,
>
> I urgently need to setup a SendMail Server to reroute (relay) all
> e-mails (detined for certain domains) to another Mail Server.
>
> However, I've not setup SendMail before, and need some pointers.
>
> I looked at the .MC file, with no refference to domains, and or relay
> options.

Easy. Look up /etc/mail/relaydomains and /etc/mail/mailertable

relaydomains:	domain1.com
		domain2.net
		domain3.ca

mailertable:	domain3.ca	smtp:mail.domain3.ca
		.		smtp:mail.someotherdomain.com

In the above configuration, mail for domain3.ca is forwarded to the
server mail.domain3.ca. Mail for all other domains listed in
relaydomains is then forwarded to mail.someotherdomain.com.

This email is really no substitute for the Sendmail documentation, and
this doesn't have much to do with FreeBSD.. but this should get you
going. :-)

- Ryan

-- 
  Ryan Thompson <ryan at sasknow.com>

  SaskNow Technologies - http://www.sasknow.com
  901-1st Avenue North - Saskatoon, SK - S7K 1Y4

        Tel: 306-664-3600   Fax: 306-244-7037   Saskatoon
  Toll-Free: 877-727-5669     (877-SASKNOW)     North America



More information about the freebsd-isp mailing list