LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 12-19-2006, 03:00 AM   #1
justkeny2k
Member
 
Registered: Oct 2005
Posts: 34

Rep: Reputation: 15
how to forward mail to postfix virtual user


I want sales@test.com forward to three email account (e.g. admin@test.com, sysadmin@test.com and manager@test.com)

my postfix virtual /etc/postfix/virtual:
Code:
sales@test.com   test.com/admin
how to add another two
 
Old 12-19-2006, 03:39 AM   #2
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Try adding them to your aliases file. You can have an entry like

sales: user1, user2, user3
 
Old 12-19-2006, 03:55 AM   #3
justkeny2k
Member
 
Registered: Oct 2005
Posts: 34

Original Poster
Rep: Reputation: 15
my mail server is runing virtual domain and virtual user, your setting like system account alias, i want add sales@test.com to three virutal domain user account. But just add one, another two cannot add to same line.
 
Old 12-19-2006, 05:06 AM   #4
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Gotcha. i'd try posting on the postfix list - it clearly isn't obvious having looked at the docs
 
Old 12-20-2006, 02:05 AM   #5
justkeny2k
Member
 
Registered: Oct 2005
Posts: 34

Original Poster
Rep: Reputation: 15
can anyone help me.
i want the email send to sales on virtual domain user, that forward to another three virtual user.
 
Old 12-20-2006, 03:44 AM   #6
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Weird, I know I posted this earlier today but it isn't here.

Anyway have a look at man virtual(5) (ie man -s 5 virtual). You can have

user@domain address, address, ...
Redirect mail for user@domain to address. This form has the
highest precedence.

Anyway I think it achieves what you want

Rgds

Bill
 
Old 12-21-2006, 10:57 PM   #7
justkeny2k
Member
 
Registered: Oct 2005
Posts: 34

Original Poster
Rep: Reputation: 15
In my /etc/postfix/virtual

test.com anything
admin@test.com test.com/admin
master@test.com test.com/master
sales@test.com test.com/sales

How to alias sales as admin, master

My /etc/postfix/aliases

admin.test.com: /var/spool/virtual/test.com/admin
master.test.com: /var/spool/virtual/test.com/master
sales.test.com /var/spool/virtual/test.com/sales
 
Old 12-22-2006, 01:43 AM   #8
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Sorry, but isn't the file you've shown above the db for virtual_mailbox_maps rather than virtual_alias_maps?
 
  


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
Postfix forward mail rickylim Linux - Server 1 10-25-2006 11:41 PM
Postfix: Need to deliver all local mail to 1 account, then forward OneBinary Linux - Software 3 01-05-2006 05:49 PM
Postfix forward all inbound mail to another server bourbon_beast Linux - Software 2 06-28-2005 05:48 AM
Postfix+Courier-IMAP virtual user not found when sending mail hawkpaul Linux - Software 0 05-03-2004 12:02 PM
Is virtual user for mail (postfix) and ftp (proftpd) possible pembo13 Linux - Software 0 01-11-2004 04:30 PM


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