Results 1 to 7 of 7

Thread: How can I force Zimbra to always use the MTA

  1. #1
    Join Date
    Mar 2013
    Posts
    10
    Rep Power
    2

    Default How can I force Zimbra to always use the MTA

    I'm really stuck here, hopefully someone can help..

    How can I force Zimbra to always use the MTA instead of deliver email locally for preconfigured domains in Zimbra.

    I'm using GMAIL in this example:

    I have setup a gmail.com domain in ZIMBRA, for my local email.
    And also specified the SMTP server of my Internet provider as MTA.

    But now when I sent email to another Gmail email user, the zimbra servers won't deliver this email to the MTA, but tries to deliver it locally. But the other user does not exist locally and then the email gets cancelled.

    Sending email to other valid email adresses (not a local domain in zimbra) through the MTA goes fine.

    zimbra.log

    NOQUEUE: filter: RCPT from: <....>: Sender address triggers FILTER smtp-amavis:[127.0.0.1]:10026; from=<....> to=<....> proto=ESMTP helo=<....>
    NOQUEUE: reject: RCPT from : 550 5.1.1 <...>: Recipient address rejected: gmail.com; from=<....> to=<...> proto=ESMTP helo=<.....>

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

    Default

    Quote Originally Posted by Tim Schoonveld View Post
    I'm using GMAIL in this example:

    I have setup a gmail.com domain in ZIMBRA, for my local email.
    That's a rather strange thing to do when, I guess, you're not Google. What are you actually trying to achieve by doing this?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    Join Date
    Mar 2013
    Posts
    10
    Rep Power
    2

    Default

    Hi Bill,

    I want to have an email server at home, which collects (via fetchmail) all my email into zimbra.
    In this way I have one location for all email.

    What is the best way to store for example my gmail email into zimbra?

    I just want Zimbra to send non-local recipient to be sent to the smtp server of my internet provider

    Tim

  4. #4
    hrobinson is offline Intermediate Member
    Join Date
    Mar 2013
    Posts
    21
    Rep Power
    2

    Default

    I am new to Zimbra so I can't directly help you, but I do understand Email administration. Try searching for "Smart Host" and see if that is the answer you are looking for.

    -- Harold

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

    Default

    Quote Originally Posted by Tim Schoonveld View Post
    I want to have an email server at home, which collects (via fetchmail) all my email into zimbra.
    In this way I have one location for all email.
    That would be the function of an email client such as Zimbra Desktop, a mail server has mail delivered directl to it.y

    Quote Originally Posted by Tim Schoonveld View Post
    What is the best way to store for example my gmail email into zimbra?
    Using Fetchmail the way you're doing it, if that's working for you. Normally mail should be sent directly to your server not collected from many different accounts. To reply to any of those email you simply send the email from your server and it will get delivered, that's assuming you have configured the Zimbra server with a valid domain name (other than gmail).

    Quote Originally Posted by Tim Schoonveld View Post
    I just want Zimbra to send non-local recipient to be sent to the smtp server of my internet provider
    Zimbra will deliver the mail directly (using the Persona feature for the correct reply address), if you need to use a relay then you can configure that in the Admin UI.
    Last edited by phoenix; 05-30-2014 at 12:13 PM.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  6. #6
    Join Date
    Mar 2013
    Posts
    10
    Rep Power
    2

    Default

    Hi Bill,

    I have configured zimbra with a valid domain name (not gmail). Sending email for these accounts work fine (locally and externally).

    Gmail is a bad example. Let's pick another name.
    I have an email account from my internet provider (provider.com) , which does not have a big quota. So I want to save all of this email on my zimbra server.

    Now I added a second domain, for example (provider.com), so I can store all ( tim@provider.com ) email also on ZIMBRA.
    With fetchmail I will get all of the email from (provider.com). And store it locally on ZIMBRA.

    I configured an external MTA, in the admin GUI.

    So far so good, when I log into webmail (or desktop) of zimbra with my (tim@provider.com) account, I can sent email to other email adresses (not provider.com). Still no issues.
    But when I sent an email to another (user2@provider.com) email adres (existing email adres on internet), Zimbra looks locally for this account. Which it can't find locally, and then it rejects the email.

    In the /var/log/zimbra.log

    reject: RCPT from ...... : 550 5.1.1 <user2@provider.com>: Recipient address rejected

    Is there a way to bypass this behaviour?

    for example: All provider.com recipient should be sent to my external MTA.
    This would do the trick for me, the question is how ?

    telnet localhost 25
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    220 <hostname> ESMTP Postfix
    HELO provider.com
    250 <hostname>
    mail from: user1@provider.com
    250 2.1.0 Ok
    rcpt to: user2@provider.com
    550 5.1.1 <user2@provider.com>: Recipient address rejected: provider.com

    And for case, it should sent this email to the MTA.

    Regards,

    Tim
    Last edited by Tim Schoonveld; 03-06-2013 at 06:01 AM.

  7. #7
    Join Date
    Mar 2013
    Posts
    10
    Rep Power
    2

    Default

    Hi i found a working solution for my problem... Hope this was the right way :-)

    First of all had to tell Postfix to NOT reject unlisted recipients for my own domains configured in Zimbra.

    I did this by removing the following line from the /opt/zimbra/conf/zmconfigd/smtpd_recipient_restrictions.cf
    - reject_unlisted_recipient

    Now Postfix is accepting unlisten recipient. The next thing I had to do, is to make a transport map for this domain.

    cat ~/postfix/conf/transport_internal
    provider.com :[MTA server]


    Create postfix lookup table:
    postmap ~/postfix/conf/transport_internal

    Update the zimbra config:
    zmlocalconfig -e postfix_transport_maps=hash:/opt/zimbra/postfix/conf/transport_internal,ldap:/opt/zimbra/conf/ldap-transport.cf

    And finally restart zimbra
    zmcontrol stop && zmcontrol start

    Seems to be working fine. I hope this is the right way to fix my problem, if not please tell me.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Force Zimbra to use MD5 for userPassword
    By DRVTiny in forum Administrators
    Replies: 0
    Last Post: 07-16-2011, 05:55 AM
  2. Replies: 0
    Last Post: 12-02-2009, 12:06 PM
  3. force smtp auth zimbra
    By sandeepdas in forum Administrators
    Replies: 12
    Last Post: 10-30-2009, 07:34 PM
  4. force Zimbra to forward certain mails to an IP or FQDN
    By emcampos in forum Installation
    Replies: 2
    Last Post: 03-01-2009, 01:42 AM
  5. can I force zimbra to listen to a single address?
    By tyler in forum Administrators
    Replies: 1
    Last Post: 03-20-2006, 05:50 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
  •