# Postfix sender\_dependent\_relayhost\_maps

DevFeed: [Postfix sender\_dependent\_relayhost\_maps](<https://devfeed.tech/articles/postfix-sender-dependent-relayhost-maps-34388.md>)

Original publisher: [Read original article](<https://tapoueh.org/blog/2010/09/postfix-sender_dependent_relayhost_maps/>)

Author: Dimitri Fontaine PostgreSQL Major Contributor; Author

Published: 2010-09-23T12:30:00Z

Content type: tutorial

Language: en

Sources: [Dimitri Fontaine](<https://devfeed.tech/sources/dimitri-fontaine.md>)

Topics: [email](<https://devfeed.tech/topics/email.md>), [Unix](<https://devfeed.tech/topics/unix.md>), [Server](<https://devfeed.tech/topics/server.md>), [ssh](<https://devfeed.tech/topics/ssh.md>)

Tags: [email](<https://devfeed.tech/tags/email.md>), [password](<https://devfeed.tech/tags/password.md>), [postfix](<https://devfeed.tech/tags/postfix.md>), [server](<https://devfeed.tech/tags/server.md>), [setup](<https://devfeed.tech/tags/setup.md>), [ssh](<https://devfeed.tech/tags/ssh.md>), [trust](<https://devfeed.tech/tags/trust.md>), [unix](<https://devfeed.tech/tags/unix.md>)

## AI overview

A tutorial on configuring Postfix to use different relay hosts based on the sender's From address, such as separating personal and work email. It also discusses generating map and password files and encrypting communication with the relay host.

## Source excerpt

The previous article about M-x mailq has raised several mails asking me details about the Postfix setup I'm talking about. The problem we're trying to solve is having a local MTA to send mails, so that any old-style Unix tool just works, instead of only the MUA you've spent time setting up. Postfix makes it possible to do that quite easily, but it gets a little more involved if you have more than one relayhost that you want to use depending on your current From address. Think personal email against work email, or avoiding your ISP network when sending your private mails, hoping directly on a server you own or trust.