LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   postfix - modify email subject for email aliases (https://www.linuxquestions.org/questions/linux-software-2/postfix-modify-email-subject-for-email-aliases-4175523492/)

pointer2null 10-27-2014 12:46 PM

postfix - modify email subject for email aliases
 
I've set up a postfix mail server on my home machine so that any email sent to @myhome.co.uk is forwarded to my gmail account. Gmail won't let me relay from another email addresses/domains (myhone.co.uk in this example) so all the emails have to come from me me@gmail.com

What I am trying to do is set up postfix to it prepends the alias email name to the subject line.

e.g. if the email was sent to linuxquestions@myhome.co.uk with the subject "Hello world" then when it arrives in my gmail account I want the subject to be "[linuxquestions] Hello World"

Is that possible?

linosaurusroot 10-28-2014 06:06 AM

A slightly heavy solution would be to create a mailman list for one user.

http://staff.imsa.edu/~ckolar/mailma...ration-v2.html

Prefix for subject line of list postings. This value will be added to the beginning of the subject line of all list traffic in order to help members identify/filter list traffic. By default the value is the name of the list enclosed in [square brackets]. You may modify this value to something other than the name of the list.


All times are GMT -5. The time now is 11:57 AM.