Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-24-2010, 06:48 AM
Intermediate Member
 
Posts: 22
Default [SOLVED] forward outgoing messages to another account on the server

Hi Team,

I am looking for the solutions to forward all the outgoing messages from a user account to be forwarded to his archival account in the same server

Exmaple:

I will create two account per each user.

Say abc@example.com and abc.arc@example.com

i want a forward the mail sent from abc@example.com to abc.arc@example.com

Irespective of the mail sent using email client on desktop or webmail.



My intenstion is to pop the mails on abc.arc@example.com account from another zimbra server backup.exmample.com on which there will be abc@backup.example.com.


Please provide the solution to achieve the above senario.

Regards,
Sridhar
Reply With Quote
  #2 (permalink)  
Old 05-25-2010, 02:24 AM
Outstanding Member
 
Posts: 594
Default

zmprov ma abc@example.com zimbraPrefBccAddress abc.arc@example.com

This will forward all mails sent by abc to abc.arc

Last edited by phoenix; 05-25-2010 at 03:34 AM..
Reply With Quote
  #3 (permalink)  
Old 05-25-2010, 02:59 AM
Intermediate Member
 
Posts: 22
Default

Thanks veronica, Where should i configured this option.

Is threre any file?? to configure this options.
Reply With Quote
  #4 (permalink)  
Old 05-25-2010, 03:22 AM
Intermediate Member
 
Posts: 22
Default

Quote:
Originally Posted by sridharsagi View Post
Thanks veronica, Where should i configured this option.

Is threre any file?? to configure this options.
when i excute the command as above by replacing the email address

The error i get is

ERROR: account.INVALID_ATTR_NAME (invalid attr name: [LDAP: error code 17 - zzimbraPrefBccAddress: attribute type undefined])

Please help me
Reply With Quote
  #5 (permalink)  
Old 05-25-2010, 03:34 AM
Zimbra Consultant & Moderator
 
Posts: 20,313
Default

Quote:
Originally Posted by sridharsagi View Post
ERROR: account.INVALID_ATTR_NAME (invalid attr name: [LDAP: error code 17 - zzimbraPrefBccAddress: attribute type undefined])
That's because there's a spelling error in the name of the attribute, Zimbra is spelt with one 'z'.
__________________
Regards


Bill
Reply With Quote
  #6 (permalink)  
Old 05-25-2010, 04:53 AM
Intermediate Member
 
Posts: 22
Default

Quote:
Originally Posted by sridharsagi View Post
when i excute the command as above by replacing the email address

The error i get is

ERROR: account.INVALID_ATTR_NAME (invalid attr name: [LDAP: error code 17 - zzimbraPrefBccAddress: attribute type undefined])

Please help me
i am able set the ldap zimbraPrefBccAddress correctly,

I have crossed checked by listing the attributes.

i have restarted all zimbra services and tried to send a mail from abc@example.com and check in abc.arc@example.com

i did not find the mail i sent.

Is there any service to be started or any other configuration to be done
Reply With Quote
  #7 (permalink)  
Old 05-27-2010, 10:56 PM
Intermediate Member
 
Posts: 22
Default

Hi

I have created the ldap attribute as mentioned.

I sent a mail from abc@example.com to another domain.

According to the configuration all the sent mails from abc@example.com should be forwarded to abc.arc@example.com

I am not able to see the sent mails from abc@example.com in abc.arc@example.com

Please help me
Reply With Quote
  #8 (permalink)  
Old 05-31-2010, 03:22 AM
Zimbra Consultant & Moderator
 
Posts: 20,313
Default

As you don't really have Zimbra 6.1 installed please update your forum profile with the output of the following command (do not post it in this thread):

Code:
zmcontrol -v
You've given no evidence that a) the attribute is actually set nor b) any evidence from the log files that the message is or isn't being delivered. You could always use the Postfix always_bcc option (search the forums for details on what's necessary).
__________________
Regards


Bill

Last edited by phoenix; 05-31-2010 at 03:35 AM..
Reply With Quote
  #9 (permalink)  
Old 06-01-2010, 12:37 AM
Intermediate Member
 
Posts: 22
Default

Hi,

The attribute was set properly i am able to check it with with command

[zimbra@mail bin]$ zmprov ga sridhar.arc@example.com | grep PrefBcc
zimbraPrefBccAddress: sridhar@backupmail.example.com

i am not able to receive mail sent from srihdar.arc@example.com to sridhar@backupmail.example.com

Also i want this to be setup for every account so that i can forward mail sent from each user@example.com to his account on another server that is user@backupmail.example.com

But the Post fix solution is for sending all mail to a single account, which i dont want.
Reply With Quote
  #10 (permalink)  
Old 06-01-2010, 05:28 AM
Intermediate Member
 
Posts: 22
Default

Hi,

I am able to forward the outgoing mail from abc@example.com to abc@backupmail.example.com

I used the sender_bcc_maps feature of postfix

i tried forward mails sent from:

abc@example.com to abc@backupmail.example.com
abc.arc@example.com to abc.arc@backupmail.example.com

I have done the below to accomplist this task::

1. I created a file /opt/zimbra/postfix-2.6.5.2z/conf/sender_bcc_maps
2. Then i run the command
postmap /opt/zimbra/postfix-2.6.5.2z/conf/sender_bcc_maps as zimbra user
3. I restarted the zimbra with zmcontrol stop and the start.

That's all everytihing is working as i needed.

Thanks to all for the support extended on my issue.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.