jj Ln2?i, CallS | IN£

Scroll to the end of the file and add the following: smtp:[]

where is your e-mail domain name, and smtp:[] tells postfix to relay mail bound for to which is my real existing mail server (as opposed to a gateway as this is), using the SMTP protocol.

You could also use a host name instead of the IP address. Oh, and the square brackets are important in this case. By default postfix will perform a DNS lookup on the mail exchange (MX) record associated with whatever you type in after the smtp: . Using the square brackets stops postfix from performing an

MX lookup on the transport you specify. Save this file and exit the text editor.

Postfix reads the transport file in a database format, so you need to convert it then reload postfix to pick up the changes.

Open a terminal console by right-clicking anywhere on the desktop and select Open Terminal.

In the console, run:

postmap /etc/postfix/transport postfix reload

The postmap command will convert the transport file into transport.db which postfix will read, and the postfix reload command tells postfix to re-load all configuration files which will pick up the change.

Note at this stage there are quite a few anti-spam settings that haven't been applied along with other defaults which you may want to change such as the default message size limit which is 10 Mb. These will be covered after the initial configuration is confirmed as working correctly.

Was this article helpful?

0 0

Post a comment