LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-23-2008, 11:54 PM   #1
haariseshu
Member
 
Registered: Jan 2008
Location: Noida, India
Distribution: RHEL
Posts: 81

Rep: Reputation: 15
Question How to move the mailbox location of the particular users


Hi friends,
Do you know how to move the mailbox location for the particular users to some other location. Fir example i'm having two group of users called groupa and groupb. The mails for groupa will drop at the same location where the mailserver is running and for group-b mails should drop at some other location.
Any idea?
Thanks a lot...
-Hari.

Here is my main.cf parameter

alias_database = hash:/etc/aliases
alias_maps = ldap:aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/man
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = panafnet.com
myhostname = DIDEL_TCILS_MAIL01.panafnet.com
mynetworks = 192.168.117.0/24, 127.0.0.0/8
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = no
relay_domains = $mydestination
relayhost = $mydomain
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_gid_maps = static:102
virtual_mailbox_base = /var/spool/mail
virtual_mailbox_limit = 100000000
virtual_mailbox_limit_inbox = yes
virtual_mailbox_limit_maps = hash:/etc/postfix/vquota
virtual_mailbox_limit_override = yes
virtual_mailbox_maps = ldap:accounts
virtual_maildir_limit_message = "Your Mailbox is Full"
virtual_minimum_uid = 102
virtual_transport = virtual
virtual_uid_maps = static:102
 
Old 07-24-2008, 12:41 AM   #2
BugZRevengE
Member
 
Registered: Oct 2005
Location: Australia
Distribution: Slackware & Kubuntu & CentOS
Posts: 106

Rep: Reputation: 17
do you refer to a different server, or a different directory?
If it is a different directory, I do not think you can do that, without some procmail magic :-)
 
Old 07-24-2008, 12:56 AM   #3
haariseshu
Member
 
Registered: Jan 2008
Location: Noida, India
Distribution: RHEL
Posts: 81

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by BugZRevengE View Post
do you refer to a different server, or a different directory?
If it is a different directory, I do not think you can do that, without some procmail magic :-)
Hello Friend,
As I have told you the mail box of the group-b users will be different "server". The incomin mail for that group-b should route to that mailserver at diffrent location.
-Hari.
 
Old 07-24-2008, 01:07 AM   #4
BugZRevengE
Member
 
Registered: Oct 2005
Location: Australia
Distribution: Slackware & Kubuntu & CentOS
Posts: 106

Rep: Reputation: 17
Sorry, it was not 100% clear to me, and I have been mistaken with a similar request in the past (but the other way around).

You probably want to look at virtual users. This allows you to forward mail for certain users to another server.
You do have to add each user for the other server to this file, but once done, it will work fine.

Let me know if you require further information.... but there are plenty of documents on virtual users.. and this should point you in the right direction
 
  


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
change default location of sendmail users mailbox tanveer Linux - Server 4 05-03-2007 11:42 PM
postfix mailbox location yogaboy Linux - Software 5 12-19-2006 06:37 PM
Thunderbird mailbox location AllanB Linux - General 1 12-10-2006 11:13 PM
imapd mailbox location pshepperd Linux - Software 3 11-14-2004 10:35 PM
Move mailbox ugob Linux - Software 2 01-03-2004 08:43 PM

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

All times are GMT -5. The time now is 07:50 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