For When You Can't Have The Real Thing
[ start | index | login ]
start > postfix > Smart Host

Smart Host

Created by dave. Last edited by dave, 17 years and 201 days ago. Viewed 13,663 times. #2
[diff] [history] [edit] [rdf]
labels
attachments

Configure postfix to use a smarthost

With Debian it’s just reconfiguring the package. If you don’t use debian or want to do it by hand, it’s basically adding one entry in /etc/postfix/main.cf:

# The relayhost parameter specifies the default host to send mail to
# when no entry is matched in the optional transport(5) table. When
# no relayhost is given, mail is routed directly to the destination.
#
# On an intranet, specify the organizational domain name. If your
# internal DNS uses no MX records, specify the name of the intranet
# gateway host instead.
#
# In the case of SMTP, specify a domain, host, host:port, [host]:port,
# [address] or [address]:port; the form [host] turns off MX lookups.
#
# If you're connected via UUCP, see also the default_transport parameter.
#
#relayhost = $mydomain
#relayhost = [gateway.my.domain]
#relayhost = [mailserver.isp.tld]
#relayhost = uucphost
#relayhost = [an.ip.add.ress]
relayhost = [carlsberg]
no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt