LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-30-2016, 07:43 PM   #1
lq_win
Member
 
Registered: Jul 2015
Posts: 66

Rep: Reputation: Disabled
Question Postfix mail distribution in multiple domains


Hello,
I am running Postfix for Multiple domains, I put domains in /etc/postfix/domains

mydomain2.com #domain
mydomain3.com #domain

in main.cf
mydestination = mydomain1.com, $myhostname, localhost.$mydomain, localhost, /etc/postfix/domains

alias_maps = hash:/etc/postfix/aliases
alias_database = hash:/etc/postfix/aliases

everything works properly

now I want to create some distribution emails with the same name, for example:

support@mydomain1.com --> john@mydomain1.com, sarah@mydomain1.com
support@mydomain2.com --> merry@mydomain2.com, roben@mydomain2.com
support@mydomain3.com --> tony@mydomain3.com, winan@mydomain3.com

what format should I use in my /etc/postfix/aliases?


please help
thanks
 
Old 12-02-2016, 04:24 AM   #2
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
http://www.postfix.org/VIRTUAL_README.html

You have:
Quote:
The simplest method to host an additional domain is to add the domain name to the domains listed in the Postfix mydestination configuration parameter, and to add the user names to the UNIX password file.

This approach makes no distinction between canonical and hosted domains. Each username can receive mail in every domain.

The limitations of this approach are:

A total lack of separation: mail for info@my.host.name is delivered to the same UNIX system account as mail for info@example.com.
You want:
Quote:
Postfix virtual ALIAS example: separate domains, UNIX system accounts

With the approach described in this section, every hosted domain can have its own info etc. email address. However, it still uses UNIX system accounts for local mailbox deliveries.

Last edited by descendant_command; 12-02-2016 at 04:26 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 relay mail to multiple internal mail servers w/different domains tristopherr Linux - Server 2 05-08-2011 06:23 AM
Postfix: sending mail from multiple domains scgtrp Linux - Server 6 07-21-2009 11:49 AM
LXer: Postfix Mail Server With Multiple Domains LXer Syndicated Linux News 0 09-22-2008 02:11 AM
How to make postfix accept mail from multiple domains Farthom Linux - Newbie 4 09-14-2006 11:13 AM
Postfix - how do hosted domains download their mail from my postfix franschoek Linux - Software 1 04-01-2006 09:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

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