Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: [SOLVED] How can I relay ALL mails (even internal ones)

  1. #1
    gagga is offline Intermediate Member
    Join Date
    Jun 2009
    Location
    Munich, Germany
    Posts
    15
    Rep Power
    6

    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

  2. #2
    bdial's Avatar
    bdial is offline Moderator
    Join Date
    Jul 2007
    Location
    Baltimore
    Posts
    1,649
    Rep Power
    11

    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.

  3. #3
    gagga is offline Intermediate Member
    Join Date
    Jun 2009
    Location
    Munich, Germany
    Posts
    15
    Rep Power
    6

    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?

  4. #4
    gagga is offline Intermediate Member
    Join Date
    Jun 2009
    Location
    Munich, Germany
    Posts
    15
    Rep Power
    6

    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?

  5. #5
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,495
    Rep Power
    56

    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


    Acompli: A new adventure for Co-Founder KevinH.

  6. #6
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Surely the use of Wiki :: Postfix Transport Tables would handle this requirement

  7. #7
    gagga is offline Intermediate Member
    Join Date
    Jun 2009
    Location
    Munich, Germany
    Posts
    15
    Rep Power
    6

    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?

  8. #8
    gagga is offline Intermediate Member
    Join Date
    Jun 2009
    Location
    Munich, Germany
    Posts
    15
    Rep Power
    6

    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!

  9. #9
    gagga is offline Intermediate Member
    Join Date
    Jun 2009
    Location
    Munich, Germany
    Posts
    15
    Rep Power
    6

    Default

    Does Zimbra define a virtual map which gets evaluated before the transport map?

  10. #10
    gagga is offline Intermediate Member
    Join Date
    Jun 2009
    Location
    Munich, Germany
    Posts
    15
    Rep Power
    6

    Default

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

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. DMZ relay to Zimbra internal host
    By swordfish in forum Installation
    Replies: 12
    Last Post: 02-04-2009, 11:30 AM
  2. Zimbra internal mails delivery
    By samuelier in forum Installation
    Replies: 3
    Last Post: 06-15-2007, 07:30 AM
  3. 3.0 to 4.5.3 Upgrade failed (mysql error)
    By dealt in forum Installation
    Replies: 35
    Last Post: 03-19-2007, 10:30 PM
  4. Set up a internal open relay
    By konradzuse in forum Installation
    Replies: 2
    Last Post: 05-20-2006, 06:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •