/etc/aliases lets you redirect incoming email by simple lines like postmaster: root.

Is there a standard UNIX file that lets you do this for outgoing email (via sendmail)? Eg. if you set bill.gates@microsoft.com: steve.jobs@apple.com, then your mail to Bill will be sent to Steve.

  • You might look at virtusertable or the genericstable. Failing that, you can do sophisticated rewriting of outgoing mails using a milter which can be fairly easy with the perl or python API implementations. – meuh Jun 3 '18 at 15:20
  • Interesting, though these seem to require quite a bit of extra typing of rather complex instructions to build/configure the text file. Also, "milter" was a new term for me, I'll look into that too. – forthrin Jun 3 '18 at 18:01
  • Which specif SMTP/MTA server do you use? Sendmail/Postfix/Exim/... – AnFi Jun 5 '18 at 6:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.