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 Display Modes
  #1 (permalink)  
Old 06-30-2009, 02:23 PM
Intermediate Member
 
Posts: 15
Default [SOLVED] How can I relay ALL mails (even internal ones)

Hi,
I am a happy admin of Zimbra OSE 5.0.16 on Ubuntu 8.04 LTS. I have setup Zimbra to work with fetchmail, integrate with samba and send emails via an external mail relay.
All of this works perfectly fine :-)
Now I need to send ALL emails via the external relay server. Even the "internal" ones which are normally handled by zimbra itself. Is there any way to do this?
Thanks!

Ciao,
Gagga
Reply With Quote
  #2 (permalink)  
Old 06-30-2009, 02:44 PM
Moderator
 
Posts: 779
Default

in the admin interface under server config and mta tab ther eis a spot for 2 mta servers. one is for external delivery and one is marked 'webmail mta hostname' i think you want to change that one.
Reply With Quote
  #3 (permalink)  
Old 06-30-2009, 03:05 PM
Intermediate Member
 
Posts: 15
Default

Quote:
Originally Posted by bdial View Post
in the admin interface under server config and mta tab ther eis a spot for 2 mta servers. one is for external delivery and one is marked 'webmail mta hostname' i think you want to change that one.
Thanks bdial. I tried to change it but it always reverts back to "localhost". Any idea?
Reply With Quote
  #4 (permalink)  
Old 06-30-2009, 03:17 PM
Intermediate Member
 
Posts: 15
Default

I found a way to do this setting: In global settings there is also a MTA section. I changed the webmail MTA there and afterwards I could also set it in the section you mentioned.
Unfortunately it tries to send to the relay without doing proper authentication. How can I enable authentication for the webmail relay MTA?
Reply With Quote
  #5 (permalink)  
Old 06-30-2009, 10:41 PM
Zimbra Consultant & Moderator
 
Posts: 11,320
Default

Local mail will be handled by the Zimbra server, it doesn't make sense to relay local mail to an external server to deliver it to a local mailbox - why would you even want to do that?
__________________
Regards


Bill
Reply With Quote
  #6 (permalink)  
Old 07-01-2009, 01:06 AM
Moderator
 
Posts: 5,800
Default

Surely the use of Wiki :: Postfix Transport Tables would handle this requirement
__________________
SplatNIX IT Services :: Innovation through Collaboration™


http://www.messagefortress.com
Reply With Quote
  #7 (permalink)  
Old 07-01-2009, 12:33 PM
Intermediate Member
 
Posts: 15
Default

I need that during a server migration while a few users will continue to be on another server. I fully agree that it does not make sense in general although I have seen more than one organisation relaying their internal email to an outside server...
So is there a way to do that?
Reply With Quote
  #8 (permalink)  
Old 07-01-2009, 01:40 PM
Intermediate Member
 
Posts: 15
Default

Hi uxbod,
I tried a setup with transport tables but Zimbra still delivers the internal messages directly.

Here is my setup:
  • Zimbra is handling domain mydomain.com
  • All Emails (even internal ones) need to be sent via the server authmailonline.kundenserver.de
  • The server authmailonline.kundenserver.de needs SMTP authentication which has already been configured properly
  • I have created a file /opt/zimbra/postfix/conf/1und1transportfile with content
    Code:
    mydomain.com :[authmailonline.kundenserver.de]
  • I have created the hash map by doing postmap /opt/zimbra/postfix/conf/1und1transportfile
  • The transport file and the hash map are owned by rootostfix
  • zmlocalconfig |grep -i postfix_transport_maps gives me
    Code:
    postfix_transport_maps = hash:/opt/zimbra/postfix/conf/1und1transportfile,proxy:ldap:/opt/zimbra/conf/ldap-transport.cf

As I can see in /varlog/mail.log Zimbra is still deliverting directly:
Code:
Jul  1 21:20:29 webmail postfix/postfix-script[21224]: refreshing the Postfix mail system
Jul  1 21:20:29 webmail postfix/master[13873]: reload configuration /opt/zimbra/postfix-2.4.7.5z/conf
Jul  1 21:20:46 webmail postfix/smtpd[21245]: connect from webmail.mydomain.com[192.168.2.2]
Jul  1 21:20:46 webmail postfix/smtpd[21245]: DBD4D390001: client=webmail.mydomain.com[192.168.2.2]
Jul  1 21:20:46 webmail postfix/cleanup[21249]: DBD4D390001: message-id=<22629283.61246476046777.JavaMail.root@webmail.mydomain.com>
Jul  1 21:20:46 webmail postfix/qmgr[21230]: DBD4D390001: from=<user1@mydomain.com>, size=672, nrcpt=1 (queue active)
Jul  1 21:20:46 webmail postfix/smtpd[21245]: disconnect from webmail.mydomain.com[192.168.2.2]
Jul  1 21:20:51 webmail postfix/smtpd[21253]: connect from localhost[127.0.0.1]
Jul  1 21:20:51 webmail postfix/smtpd[21253]: 32400390002: client=localhost[127.0.0.1]
Jul  1 21:20:51 webmail postfix/cleanup[21249]: 32400390002: message-id=<22629283.61246476046777.JavaMail.root@webmail.mydomain.com>
Jul  1 21:20:51 webmail postfix/qmgr[21230]: 32400390002: from=<user1@mydomain.com>, size=1308, nrcpt=1 (queue active)
Jul  1 21:20:51 webmail postfix/smtpd[21253]: disconnect from localhost[127.0.0.1]
Jul  1 21:20:51 webmail postfix/smtp[21250]: DBD4D390001: to=<user2@mydomain.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=4.4, delays=0.03/0.02/0.01/4.3, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 32400390002)
Jul  1 21:20:51 webmail postfix/qmgr[21230]: DBD4D390001: removed
Jul  1 21:20:51 webmail postfix/lmtp[21254]: 32400390002: to=<user2@mydomain.com>, relay=webmail.mydomain.com[192.168.2.2]:7025, delay=0.11, delays=0.02/0.03/0/0.06, dsn=2.1.5, status=sent (250 2.1.5 OK)
Jul  1 21:20:51 webmail postfix/qmgr[21230]: 32400390002: removed
I have read the postfix documentation and also tried these as the contents of /opt/zimbra/postfix/conf/1und1transportfile:
  • mydomain.com smtp:[authmailonline.kundenserver.de]
  • mydomain.com relay:[authmailonline.kundenserver.de]
  • * :[authmailonline.kundenserver.de]

None of them works. It seems that Zimbra is not actually prepending the transport map file. Do you have any idea? Thanks!
Reply With Quote
  #9 (permalink)  
Old 07-01-2009, 01:53 PM
Intermediate Member
 
Posts: 15
Default

Does Zimbra define a virtual map which gets evaluated before the transport map?
Reply With Quote
  #10 (permalink)  
Old 07-02-2009, 01:06 PM
Intermediate Member
 
Posts: 15
Default

Hi,
can a zimbra employee please shed some light on this? Thanks.
Reply With Quote
Reply


Thread Tools
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.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0