LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Postfix - problem on specifying the origin for virtual domains (https://www.linuxquestions.org/questions/linux-server-73/postfix-problem-on-specifying-the-origin-for-virtual-domains-751378/)

haariseshu 08-30-2009 11:48 PM

Postfix - problem on specifying the origin for virtual domains
 
Hi Guys,

I'm running Postfix server under RHEL-5.1.
Early I was having one base domain (eg. domain.com)..

Now I have created a virtual domain say sub.domain.com. And for this virtual domain I have mapped linux user accounts under /etc/postfix/virtual. So when outside users are sending mail to user01@sub.domain.com its reaching my Postfix and dropped into the respective user mailbox with help of virtual user mapping. But from this mail id (user01@sub.domain.com) if I'm sending mails to other users in destination mailbox the from address is looking like this:user01@domain.com..

So now I just wanted to know how to specify the myorigin parameter for the virtual domains under postfix..

Kindly help me with this issue..
Thanks a lot..

Update:Guys, now I found that while receiving mails to that virtual domains user account also in the header "to" address is renamed to base domain name....

DrLove73 10-01-2009 08:03 AM

I use Virtualmin GPL so set my websites, so there is no manual work involved, when you set it up once, All you need is to tell Virtualmin you want another domain, and it will set all there is automatically.

myorigin is not set in my Postfix configuration, which could mean that this is relevant:

Quote:

If you run a domain with multiple machines, you should (1) change this to $mydomain and (2) set up a domain-wide alias database that aliases each user to user@that.users.mailhost.
Also:
http://www.postfix.org/BASIC_CONFIGURATION_README.html


All times are GMT -5. The time now is 07:12 PM.