LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 08-20-2015, 04:37 AM   #1
dazdaz
Member
 
Registered: Aug 2003
Location: Europe
Distribution: RHEL, CentOS, Ubuntu
Posts: 333

Rep: Reputation: 17
Postfix catch-all re-writing From header


Hi

I have a question regarding Postfix 2.6. Here is a 'shortened' configuration dump :

/etc/postfix/main.cf
Code:
virtual_alias_domains = mydomain.com
virtual_alias_maps = hash:/etc/postfix/virtual
local_recipient_maps =
relay_domains = $mydestination, mydomain.com
relayhost = [smtp.gmail.com]:587
/etc/postfix/virtual
Code:
# catch-all configuration
@mydomain.com myemail@gmail.com
When I receive an email from @mydomain.com the From field is re-wrote to myemail@gmail.com within my GMail mail box, which is what is supposed to happen when you configure postfix virtual_alias_maps.

How can I prevent the SMTP header from being re-wrote but still forwarded to a catch-all address, which is a GMail account.

example :
Code:
 I receive an email from music@lyrics.com

 That email From: field is re-wrote to myemail@gmail.com so I can't see who wrote the original email.
 The reply-to field holds the email address but i'd like to be able to not have it modified.
I have tried removing the virtual mapping, but this is mandatory, else i'll receive an error message (see below) from Postfix and the message will bounce back to the sender.

Code:
Diagnostic-Code: X-Postfix; User unknown in virtual alias table
Thanks

Last edited by dazdaz; 08-20-2015 at 04:39 AM.
 
  


Reply



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
Configure postfix to view catch-all address in mail header jayram1989 Linux - Software 0 02-01-2014 08:46 PM
Postfix `catch all` on all domains samarudge Linux - Server 1 03-01-2011 05:57 AM
Postfix Configuration Question: Postfix server as a catch-all on office LAN enso491 Linux - Server 5 04-14-2008 04:35 PM
Postfix local catch-all alias cdhgee Linux - Software 2 06-30-2006 03:02 AM
catch the tcp header for modification from the kernel mprabhu Linux - Software 2 07-24-2004 04:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:42 PM.

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