LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-15-2011, 05:09 AM   #1
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,033

Rep: Reputation: 69
I got a postfix generic table question...


I have domain.com with 2 subdomains, a.domain.com, b.domain.com. I use the domain.com computer to relay mail out since it has a static ip. When I send mail from a.domain.com I wanted my domain.com computer to masquerade it into domain.com.

So in my /etc/postfix/main.cf I enabled smtp_generic_maps. In my generic file I have

@a.domain.com domain.com
@b.domain.com domain.com

This fixes it perfectly. However, if I send mail directly from domain.com and as root the resulting email shows root@ as the email address and obviously spam filters send mail with no domain to spam automatically. The other users from domain.com work just fine.

Should I be using a different method for this?

I also tried doing this instead
editing /etc/postfix/main.cf
masquerade_domains = a.domain.com domain.com
masquerade_domains = b.domain.com domain.com

This works but I was left with the same issue.

Last edited by trist007; 02-15-2011 at 10:52 AM.
 
  


Reply


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 create aliases and virtual table in postfix achilies Linux - Software 1 06-05-2010 12:42 PM
No /etc/postfix/generic??? uid0sd Linux - Server 1 11-30-2009 11:58 AM
Postfix alias table problem.. unifiedquarks Linux - Server 2 08-09-2008 01:03 AM
How do I use a regexp in Postfix alias table? quackking Linux - Server 11 04-13-2007 12:10 PM
Postfix transport map table?? emilioestevezz Linux - Networking 0 05-05-2004 01:59 PM


All times are GMT -5. The time now is 10:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration