1

Follwing up on my question about headless and real-user-less setups, I am trying to find an alternate way of handling outgoing emails directed to local users (email outgoing from my machine rpi1.example.com is directed to [email protected]) which should actually be sent to a single external address.

Is there maybe a way to rewrite on the fly (as it is being processed for sending) the address of the intended recipient of an email, so the so that it actually reads [email protected] ?

  • I would like to avoid using an MTA for inbound email (in other words, accepting incoming emails).
  • I do not have concerns about privacy (all the accounts on the box are mine and are technical accounts)
WoJ
  • 1,445
  • 1
  • 19
  • 38
  • see the answer to [this question](http://unix.stackexchange.com/questions/65013/understanding-etc-aliases-and-what-it-does), which explains how to use /etc/aliases to accomplish this. – gogoud Apr 10 '15 at 12:24
  • @gogoud that suggestion doesn't perform a rewrite of the header, which is what I think WoJ also wants. – roaima Apr 10 '15 at 12:55
  • @roaima, it must rewrite the header because the 'To:' address becomes the address specified in /etc/aliases (I use it all the time). – gogoud Apr 10 '15 at 13:08

0 Answers0