Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: New Install on Ubuntu 8.04 and Zimbra 5.0 - Help (and be gentle, OR not!)

  1. #1
    foneguy9 is offline Intermediate Member
    Join Date
    Aug 2009
    Location
    Los Angeles, CA
    Posts
    16
    Rep Power
    5

    Default New Install on Ubuntu 8.04 and Zimbra 5.0 - Help (and be gentle, OR not!)

    Internal Email to External ISP Email
    Hi all!!

    I am 'migrating' from an MS Exchange 5.5 to the Open Source world and have some questions that I HOPE you can help with!!!! It took the Exchange to crash for my boss to finally see the $$$ in upgrading Exchange!!! BTW, the users currently have our ISP POP3 accounts directly on their Outlook 2003/2007 clients...Bad, I know...That's why I'm posting as well!!!

    I have been searching for answers on my Internal Ubuntu 8.04 Server install with Zimbra ZCS 5.0 (Zimbra - Products) and downloaded and installed the Open Sourced edition. Open Source Edition Downloads: Enterprise Messaging and Collaboration Software by Zimbra

    Now, I can SSH into the Server, Run the Zimbra Web based Administrator and have installed the client software from Zimbra/Yahoo as well as Web Mail, logged in with Accounts that I have created and I can send internal emails all day! However, I have (2) problems (for now)
    I have modified/changed info on the file below to make it GENERIC, to protect the innocent!
    First, I have on my domain.prv showing the following deferred email errors:

    Sender: user1@domain.prv
    From host: localhost.localdomain
    From domain: domain.prv
    From IP: 127.0.0.1
    recipients: EXTERNALUSER@gmail.com
    to domain: gmail.com
    content filter: undefined
    size: 1100
    Reason: connect to XXX.XXX.XXX.XXX (XXX.XXX.XXX.XXX):connection timed out.

    The Above IP address is the same in both fields. This is the email address our ISP provided us as the address for our external email accounts (user@domain.com) So, I can't email outside of my internal server. This is setup on an internal IP address of 192.168.X.250. I have internet available on this private subnet and on my router I have pointed port 25 to this internal IP address.

    The Second problem is this... I get THIS from my Outlook client as to the reason for the obstruction when I try to send OUT email from my Outlook 2003/2007 Client....ACTUALLY, its while trying to log into the Zimbra email server...

    Task 'server1.domain.prv: Folder:Inbox Check for new mail.' reported error (0x800CCC0E) : 'Outlook is unable to download folder Inbox from the IMAP e-mail server for account server1.domain.prv. Error: Unable to connect to the server. If you continue to receive this message, contact your server administrator or Internet service provider (ISP).'
    Task 'Checking for new mail in subscribed folders on server1.domain.prv.' reported error (0x800CCC0E) : 'Outlook is unable to download folder (null) from the IMAP e-mail server for account server1.domain.prv. Error: Unable to connect to the server. If you continue to receive this message, contact your server administrator or Internet service provider (ISP).'

    I tried to follow this for the Outlook Client setup:
    Main Page - Zimbra :: Wiki

    Could be I'm posting on the wrong forum, sooo if it needs to be moved... so be it...

    DNS /MX/A records?!? BTW, I am trying to get up to speed on those terms as it is as well as the files in Linux to change them correctly.... vi /etc/hosts ?!?!?

    Any Linux /Sendmail/Postfix/Zimbra Gurus out there?!?!?
    Last edited by foneguy9; 08-28-2009 at 08:12 AM.

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

    Default

    Please post the output of the following commands (run on your Zimbra server):

    Code:
    cat /etc/hosts
    cat /etc/resolv.conf
    dig yourdomain.com any
    dig yourdomain.com mx
    host `hostname`  <-- use that exact command with backticks not single
    What do you mean by this:
    Quote Originally Posted by foneguy9 View Post
    I tried to follow this for the Outlook Client setup:
    Zimbra only has an Outlook Connector for the Network Edition otherwise you'd be using IMAP, please explain what you're trying here.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    foneguy9 is offline Intermediate Member
    Join Date
    Aug 2009
    Location
    Los Angeles, CA
    Posts
    16
    Rep Power
    5

    Default

    Right! Per the fire bird request !!!

    cat /etc/hosts
    # Do NOT remove the follwing line, or various programs
    # that require network funtionality will fail.
    127.0.0.1 localhost.localdomain localhost
    192.168.120.250 mail.domain.prv domain domain.prv

    # The following lines are desirable for IPv6 capable hosts
    ::1 ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts

    cat /etc/resolv.conf
    search mail.domain.prv
    nameserver 192.168.120.250
    nameserver 208.201.224.11

    dig domain.prv any

    ; <<>> DiG 9.4.2-P2 <<>> domain.prv any
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32204
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 8, AUTHORITY: 0, ADDITIONAL: 1

    ;; QUESTION SECTION:
    ;domainl.prv. IN ANY

    ;; ANSWER SECTION:
    domain.prv. 604800 IN AAAA ::1
    domain.prv. 604800 IN SOA mail.domain.prv. admin.domain.prv. 82712 604800 86400 2419200 604800
    domain.prv. 604800 IN NS servername.domain.prv.
    domain.prv. 604800 IN NS mail.domain.prv.
    domain.prv. 604800 IN NS domain.prv.
    domain.prv. 604800 IN MX 10 domain.prv.
    domain.prv. 604800 IN MX 10 mail.domain.prv.
    domain.prv. 604800 IN A 192.168.120.250

    ;; ADDITIONAL SECTION:
    domain.prv. 604800 IN A 192.168.120.250

    ;; Query time: 0 msec
    ;; SERVER: 192.168.120.250#53(192.168.120.250)
    ;; WHEN: Fri Aug 28 07:21:15 2009
    ;; MSG SIZE rcvd: 220

    dig domain.prv mx

    ; <<>> DiG 9.4.2-P2 <<>> domain.prv mx
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 20764
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 3, ADDITIONAL: 2

    ;; QUESTION SECTION:
    ;domain.prv. IN MX

    ;; ANSWER SECTION:
    domain.prv. 604800 IN MX 10 domain.prv.
    domain.prv. 604800 IN MX 10 mail.domain.prv.

    ;; AUTHORITY SECTION:
    domain.prv. 604800 IN NS mail.domain.prv.
    domain.prv. 604800 IN NS servername.domain.prv.
    domain.prv. 604800 IN NS domain.prv.

    ;; ADDITIONAL SECTION:
    domain.prv. 604800 IN A 192.168.120.250
    domain.prv. 604800 IN AAAA ::1

    ;; Query time: 0 msec
    ;; SERVER: 192.168.120.250#53(192.168.120.250)
    ;; WHEN: Fri Aug 28 07:25:18 2009
    ;; MSG SIZE rcvd: 162

  4. #4
    foneguy9 is offline Intermediate Member
    Join Date
    Aug 2009
    Location
    Los Angeles, CA
    Posts
    16
    Rep Power
    5

    Default

    host `hostname`
    Host servername.domain.prv not found: 3(NXDOMAIN)

  5. #5
    foneguy9 is offline Intermediate Member
    Join Date
    Aug 2009
    Location
    Los Angeles, CA
    Posts
    16
    Rep Power
    5

    Default

    Quote Originally Posted by phoenix View Post
    What do you mean by this: Zimbra only has an Outlook Connector for the Network Edition otherwise you'd be using IMAP, please explain what you're trying here.
    Spot on Phoenix! Wanting to get everything up and working FIRST with IMAP then look at the Network Edition with the Outlook connector. I'd like to use IMAP on the Outlook clients and found the wiki on the Zimbra site. But I posted the wrong link... All Outlook clients are on the same subnet as well as using PPTP VPN to log into the Zimbra Server. This is also working with the Zimbra Client and Web mail access.

    Sorry, about that, my mistake on the link. I'll just copy and paste it here...

    Outlook and Zimbra
    SMTP over SSL port 465


    Note: some version of Outlook may not need this. This is what is needed for Outlook 2003 SP2.

    I didn't do this part because of the NOTE...
    Note: ZCS 4.5.5 and after have, by default, enabled SMTPS (SSL SMTP) on port 465.

    In /opt/zimbra/postfix/master.cf uncomment the following TWO LINES (Note: the whitespace at the beginning of the second line is significant, and must be preserved:

    #smtps inet n - n - - smtpd
    # -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes

    Restart/Reload postfix:

    zmmtactl reload

    You now have port 465 open for SSL SMTP. Make sure any firewall in place doesn't prevent access to the port.
    Up to here... But continued below... NOTE: On the Outlook Internet E-Mail Settings/Advanced Tab, I entered in the IMAP Field 7143 and SSL Ticked. On the SMTP field, 465 with the SSL ticked. On the Outgoing Server TAB, Tick on SMTP requires Auth. and the Use Same settings as My incoming Mail server, selected.

    In Outlook:

    * add a new email account, type of either IMAP or POP, whatever you prefer.
    * In the advanced settings configuration screen, enable SMTP over SSL (This server requires encrypted connection (SSL)).
    * Also make sure to enable IMAP or POP over SSL.
    * Change the SMTP port to 465
    * Enable SMTP Auth using the same credentials as IMAP

    That should be all thats needed. Outlook doesn't deal well with SSL on port 25 using the STARTTLS command. It prefers immediate SSL negotiation followed by SMTP (old style SMTP over SSL) --- Not exactly sure what this means... Also does the outgoing and incoming just need the INTERNAL IP address of the Zimbra?
    Last edited by foneguy9; 08-28-2009 at 08:06 AM.

  6. #6
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,491
    Rep Power
    56

    Default

    Your hosts file should contain the following only:

    Code:
    # Do NOT remove the follwing line, or various programs
    # that require network funtionality will fail.
    127.0.0.1 localhost.localdomain localhost
    192.168.120.250 mail.domain.prv domain
    Your reslov.conf should only contain the IP of the LAN DNS server.

    The correct port to use for Submissions is actually 587 and you set that by modifying the /opt/zimbra/postfix/conf/master.cf.in as follows:

    Code:
    # submission inet n      -       n       -       -       smtpd                
    #        -o smtpd_etrn_restrictions=reject                                   
    #        -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    Uncomment those lines and preserve the white space at the beginning of lines 2 & 3, you modify the master.cf.in (it recreates the master.cf) file as you changes will get overwritten by zimbra if you only do the master.cf.

    Yes, you only need use the LAN IP of your server.

    [EDIT]I forgot to add that your A record should look like this:

    Code:
    mail.domain.prv. 604800 IN A 192.168.120.250
    You also don't need an this MX record:

    Code:
    domain.prv. 604800 IN MX 10 domain.prv.
    Last edited by phoenix; 08-28-2009 at 08:56 AM.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  7. #7
    foneguy9 is offline Intermediate Member
    Join Date
    Aug 2009
    Location
    Los Angeles, CA
    Posts
    16
    Rep Power
    5

    Default

    Ok, I've done something wrong now...

    On my web client I get:

    Message not sent; one or more addresses were not accepted.
    Rejected addresses: joer@domain.prv

    Same result for external email addresses. I have made the changes proposed as well a mistake? on my part. I entered Relay MTA for external delivery: PUBLIC IP ADDRESS and that is when I'm getting this error message. Before that, the email was still only internal and not external...I was trying to be too smart for the Zimbra!!!

    I'll post the cat of these files again...

    But any other suggestions welcomed!!!!! )

  8. #8
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,491
    Rep Power
    56

    Default

    Quote Originally Posted by foneguy9 View Post
    I entered Relay MTA for external delivery: PUBLIC IP ADDRESS and that is when I'm getting this error message.
    You don't need to do that unless you are actually relaying through another mail server (such as your ISP). Are these messages getting deferred - have a look in the Admin UI at the queues. You should also have a look at the log files and see what errors you're getting.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  9. #9
    foneguy9 is offline Intermediate Member
    Join Date
    Aug 2009
    Location
    Los Angeles, CA
    Posts
    16
    Rep Power
    5

    Default

    Well, this is the grey area of my understanding... My Zimbra will 'pull' the user@domain.com emails from our ISP account and internal Emails will be using the user@domain.prv. Split DNS....


    Or so I envisioned... But Basically, instead of the POP3 users getting Email directly to their Outlook client, as they are now, they will go through the Zimbra server... right?

    And yes, on the Admin page of Zimbra, that domain.prv server shows the email in the deferred tab. But if I view the server, the email doesn't show up. Odd... It was showing up before...

    I'll be looking through the log and post....

  10. #10
    foneguy9 is offline Intermediate Member
    Join Date
    Aug 2009
    Location
    Los Angeles, CA
    Posts
    16
    Rep Power
    5

    Default

    Here a snippet of my zimbra.log (/var/log/zimbra.log):

    Aug 28 13:12:44 ubuntusvr postfix/smtp[21881]: connect to 140.174.89.120[140.174 .89.120]: Connection timed out (port 465)
    Aug 28 13:12:44 ubuntusvr postfix/smtp[21881]: 3239643C5E3: to=, relay=none, delay=12436, delays=12406/0.06/30/0, dsn=4.4.1, status=deferred (co nnect to 140.174.89.120[140.174.89.120]: Connection timed out)
    Aug 28 13:12:44 ubuntusvr postfix/smtp[21882]: connect to 140.174.89.120[140.174 .89.120]: Connection timed out (port 465)
    Aug 28 13:12:44 ubuntusvr postfix/smtp[21881]: 3239643C5E3: to=, relay=none, delay=12436, delays=12406/0.06/30/0, dsn=4.4.1, status=deferred ( connect to 140.174.89.120[140.174.89.120]: Connection timed out)
    Aug 28 13:12:44 ubuntusvr postfix/smtp[21882]: AD66443C519: to=, relay=none, delay=12300, delays=12270/0.03/30/0, dsn=4.4.1, status=deferred ( connect to 140.174.89.120[140.174.89.120]: Connection timed out)
    Aug 28 13:12:44 ubuntusvr postfix/smtp[21882]: AD66443C519: to=, relay=none, delay=12300, delays=12270/0.03/30/0, dsn=4.4.1, status=deferred (co nnect to 140.174.89.120[140.174.89.120]: Connection timed out)
    Aug 28 13:13:28 ubuntusvr zmmailboxdmgr[22359]: status requested
    Aug 28 13:13:28 ubuntusvr zmmailboxdmgr[22359]: status OK
    Aug 28 13:13:28 ubuntusvr zmmailboxdmgr[22417]: status requested
    Aug 28 13:13:28 ubuntusvr zmmailboxdmgr[22417]: status OK
    Aug 28 13:14:03 ubuntusvr zmmailboxdmgr[22617]: status requested
    Aug 28 13:14:03 ubuntusvr zmmailboxdmgr[22617]: status OK
    Aug 28 13:14:04 ubuntusvr zimbramon[22466]: 22466:info: 2009-08-28 13:14:01, STA TUS: domain.prv: antispam: Running
    Aug 28 13:14:04 ubuntusvr zimbramon[22466]: 22466:info: 2009-08-28 13:14:01, STA TUS: domain.prv: antivirus: Running
    Aug 28 13:14:04 ubuntusvr zimbramon[22466]: 22466:info: 2009-08-28 13:14:01, STA TUS: domain.prv: imapproxy: Running
    Aug 28 13:14:04 ubuntusvr zimbramon[22466]: 22466:info: 2009-08-28 13:14:01, STA TUS: domain.prv: ldap: Running
    Aug 28 13:14:04 ubuntusvr zimbramon[22466]: 22466:info: 2009-08-28 13:14:01, STA TUS: domain.prv: logger: Running
    Aug 28 13:14:04 ubuntusvr zimbramon[22466]: 22466:info: 2009-08-28 13:14:01, STA TUS: domain.prv: mailbox: Running
    Aug 28 13:14:04 ubuntusvr zimbramon[22466]: 22466:info: 2009-08-28 13:14:01, STA TUS: domain.prv: mta: Running
    Aug 28 13:14:04 ubuntusvr zimbramon[22466]: 22466:info: 2009-08-28 13:14:01, STA TUS: domain.prv: snmp: Running
    Aug 28 13:14:04 ubuntusvr zimbramon[22466]: 22466:info: 2009-08-28 13:14:01, STA TUS: domain.prv: spell: Running
    Aug 28 13:14:04 ubuntusvr zimbramon[22466]: 22466:info: 2009-08-28 13:14:01, STA TUS: domain.prv: stats: Running
    Aug 28 13:14:39 ubuntusvr zmmailboxdmgr[22975]: status requested
    Aug 28 13:14:39 ubuntusvr zmmailboxdmgr[22975]: status OK
    Aug 28 13:14:39 ubuntusvr zmmailboxdmgr[23033]: status requested
    Aug 28 13:14:39 ubuntusvr zmmailboxdmgr[23033]: status OK
    root@ubuntusvr:~# vi /var/log/zimbra.log
    Aug 28 06:37:34 ubuntusvr zmmailboxdmgr[31232]: status requested
    Aug 28 06:37:34 ubuntusvr zmmailboxdmgr[31232]: status OK
    Aug 28 06:37:34 ubuntusvr zmmailboxdmgr[31290]: status requested
    Aug 28 06:37:34 ubuntusvr zmmailboxdmgr[31290]: status OK
    Aug 28 06:38:03 ubuntusvr zmmailboxdmgr[31530]: status requested
    Aug 28 06:38:03 ubuntusvr zmmailboxdmgr[31530]: status OK
    Aug 28 06:38:04 ubuntusvr zimbramon[31370]: 31370:info: 2009-08-28 06:38:01, STATUS: domain.prv: antispam: Running
    Aug 28 06:38:04 ubuntusvr zimbramon[31370]: 31370:info: 2009-08-28 06:38:01, STATUS: domain.prv: antivirus: Running
    Aug 28 06:38:04 ubuntusvr zimbramon[31370]: 31370:info: 2009-08-28 06:38:01, STATUS: domain.prv: imapproxy: Running
    Aug 28 06:38:04 ubuntusvr zimbramon[31370]: 31370:info: 2009-08-28 06:38:01, STATUS: domain.prv: ldap: Running
    Aug 28 06:38:04 ubuntusvr zimbramon[31370]: 31370:info: 2009-08-28 06:38:01, STATUS: domain.prv: logger: Running
    Aug 28 06:38:04 ubuntusvr zimbramon[31370]: 31370:info: 2009-08-28 06:38:01, STATUS: domain.prv: mailbox: Running
    Aug 28 06:38:04 ubuntusvr zimbramon[31370]: 31370:info: 2009-08-28 06:38:01, STATUS: domain.prv: mta: Running
    Aug 28 06:38:04 ubuntusvr zimbramon[31370]: 31370:info: 2009-08-28 06:38:01, STATUS: domain.prv: snmp: Running
    Aug 28 06:38:04 ubuntusvr zimbramon[31370]: 31370:info: 2009-08-28 06:38:01, STATUS: domain.prv: spell: Running
    Aug 28 06:38:04 ubuntusvr zimbramon[31370]: 31370:info: 2009-08-28 06:38:01, STATUS: domain.prv: stats: Running
    Aug 28 06:38:45 ubuntusvr zmmailboxdmgr[31889]: status requested
    Aug 28 06:38:45 ubuntusvr zmmailboxdmgr[31889]: status OK
    Aug 28 06:38:45 ubuntusvr zmmailboxdmgr[31947]: status requested
    Aug 28 06:38:45 ubuntusvr zmmailboxdmgr[31947]: status OK
    Aug 28 06:39:55 ubuntusvr zmmailboxdmgr[32258]: status requested
    Aug 28 06:39:55 ubuntusvr zmmailboxdmgr[32258]: status OK
    Aug 28 06:39:56 ubuntusvr zmmailboxdmgr[32316]: status requested

Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

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

Posting Permissions

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