Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

OK, this is a slightly convoluted question.

I have a machine here that collects all our mail from an upstream provider with fetchmail, and stores it in our office for collection via IMAP4.

We also have a postfix install that we use for outgoing mail in the office to shift it from the outbox quickly and let the server get around to uploading it when it feels ready.

However, my boss just told me that his wife collects her mail via POP3 directly from the upstream provider, and so his mail is not making it to her (because our postfix install is checking for a local user, not finding one and then bouncing the mail).

I can think of two solutions but I'm not familiar enough with the software to implement either

a) Configure postfix with a list of non-local addresses that it should blindly pass onto it's default relay b) Create a local account for her with a single procmail(?) rule saying to bounce the mail off to her real address, however I'd still need to specify which relay to use or it'd loop until it was blackholed.


share|improve this question

I'd use a transport map for this. See transport(5) for details.

share|improve this answer
dangit womble, beat me to it – Greeblesnort Dec 1 '09 at 4:54
up vote 0 down vote accepted

A more extended answer (the man pages are somwhat vague)

Create $POSTFIX_DIR/transport with contents

<address>   <transport>:<host>

so mine looked like

(Bonus points for the difference between relay and smtp)

And then run:

postmap $POSTFIX_DIR/transport

(Again, I think this is optional because I used the hash: type in the config)

and finally I added

transport_maps = hash:/etc/postfix/transport


restarted and I was away.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.