Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-27-2014, 01:46 PM   #1
Registered: Mar 2012
Location: Bristol, UK
Distribution: CentOS, Debian
Posts: 32

Rep: Reputation: Disabled
Question 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 is forwarded to my gmail account. Gmail won't let me relay from another email addresses/domains ( in this example) so all the emails have to come from me

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 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?
Old 10-28-2014, 07:06 AM   #2
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244
A slightly heavy solution would be to create a mailman list for one user.

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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to prevent everybody in the world to send email to email aliases Winanjaya Linux - Server 4 05-17-2014 10:37 AM
copy and forward email to multiple email servers using postfix haleem Linux - Newbie 1 12-31-2009 05:28 AM
Email server running Postfix will not accept email... trekgirl Linux - Server 12 03-04-2009 02:43 AM
POSTFIX Email Can't Receive External Email rkibui Linux - Newbie 5 02-22-2009 06:45 AM
How do I configure postfix master to forward all email to an email server ? hello321_1999 Linux - Software 1 11-18-2004 05:43 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:12 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration