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

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 07-15-2009, 05:22 AM
Junior Member
 
Posts: 7
Default Internal Mail Delivery

Hi all,

I have what is most likely a simple problem but cannot find any solutions via the search.

I have installed Zimbra and had it working internally on a network once but have tried to install it again on a different server and am running into the same problem repeatedly.

When trying to email an account e.g. admin@localhost it tells me the the email address cannot be found, so i try to send it to admin@localhost...uk. This appears to work but the email never appears in an inbox or in the queuing system on the admin panel on Zimbra.

Any help appreciated.
Thanks.
Reply With Quote
  #2 (permalink)  
Old 07-15-2009, 05:28 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
Default

Please update your forum profile with the output of the following command (please don't post it in the thread):

Code:
zmcontrol -v
You most likely have a DNS or hosts file problem, post the output of the following commands (run on the Zimbra server):

Code:
cat /etc/hosts
cat /etc/resolv.conf
dig yourdomain.com mx
dig yourdomain.com any
host `hostname` <-- use that exact command with backticks not single quotes
What errors do you see in the log files?
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 07-15-2009, 06:38 AM
Junior Member
 
Posts: 7
Default

Thanks for the reply. Hopefully this is the stuff you asked for.

Code:
root@Zimbra:/usr/src/zcs# cat /etc/hosts
127.0.0.1       localhost
127.0.1.1       Zimbra.valley.notts.sch.uk

# 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
root@Zimbra:/usr/src/zcs# cat /etc/resolv.conf
nameserver 10.60.100.11
nameserver 10.60.100.12
root@Zimbra:/usr/src/zcs# dig valley.notts.sch.uk mx

; <<>> DiG 9.4.2-P2 <<>> valley.notts.sch.uk mx
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 3333
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;valley.notts.sch.uk.           IN      MX

;; ANSWER SECTION:
valley.notts.sch.uk.    3600    IN      MX      100 mx2.embc.org.uk.
valley.notts.sch.uk.    3600    IN      MX      10 mx1.embc.org.uk.

;; Query time: 29 msec
;; SERVER: 10.60.100.11#53(10.60.100.11)
;; WHEN: Wed Jul 15 14:25:20 2009
;; MSG SIZE  rcvd: 86

root@Zimbra:/usr/src/zcs# dig valley.notts.sch.uk any

; <<>> DiG 9.4.2-P2 <<>> valley.notts.sch.uk any
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54497
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 8, AUTHORITY: 0, ADDITIONAL: 2

;; QUESTION SECTION:
;valley.notts.sch.uk.           IN      ANY

;; ANSWER SECTION:
valley.notts.sch.uk.    600     IN      A       10.60.100.11
valley.notts.sch.uk.    600     IN      A       10.60.100.12
valley.notts.sch.uk.    3600    IN      NS      valleydc02.valley.notts.sch.uk.
valley.notts.sch.uk.    3600    IN      NS      vcdc01.valley.notts.sch.uk.
valley.notts.sch.uk.    3600    IN      NS      valleydc01.valley.notts.sch.uk.
valley.notts.sch.uk.    3600    IN      SOA     valleydc01.valley.notts.sch.uk. hostmaster. 84428 900 600 86400 3600
valley.notts.sch.uk.    3600    IN      MX      10 mx1.embc.org.uk.
valley.notts.sch.uk.    3600    IN      MX      100 mx2.embc.org.uk.

;; ADDITIONAL SECTION:
valleydc02.valley.notts.sch.uk. 3600 IN A       10.60.100.12
valleydc01.valley.notts.sch.uk. 3600 IN A       10.60.100.11

;; Query time: 0 msec
;; SERVER: 10.60.100.11#53(10.60.100.11)
;; WHEN: Wed Jul 15 14:25:29 2009
;; MSG SIZE  rcvd: 267

root@Zimbra:/usr/src/zcs# host `hostname`
Zimbra.valley.notts.sch.uk has address 10.60.100.241

I'm not sure which logs to be looking in as the ones I have done do not seem to show anything out of the normal.
Reply With Quote
  #4 (permalink)  
Old 07-15-2009, 06:43 AM
Outstanding Member
 
Posts: 594
Default

>admin@localhost it tells me the the email address cannot be found

Why do you send to localhost ? You must be having domain you created during installation ? zmprov gad ?
Reply With Quote
  #5 (permalink)  
Old 07-15-2009, 06:50 AM
Junior Member
 
Posts: 7
Default

Any accounts that i send mail to, if it is @locahost or @test that i create i still have the same results, the mail never appears in an inbox.
Reply With Quote
  #6 (permalink)  
Old 07-15-2009, 06:52 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
Default

Your hosts file is incorrect, it should look like this:

Code:
127.0.0.1       localhost.localdomain localhost
10.x.x.x       zimbra.valley.notts.sch.uk zimbra
You should use a valid LAN IP in the second line not localhost.

Your resolv.conf should only contain one DNS server unless they both contain exactly the same DNS records for the mail server (but one would be sufficient).

You have no A record pointing to the maiil server, it should be like this:

Code:
zimbra.valley.notts.sch.uk. 3600 IN A       10.x.x.x
Obviously with a valid LAN IP.
__________________
Regards


Bill
Reply With Quote
  #7 (permalink)  
Old 07-15-2009, 08:11 AM
Moderator
 
Posts: 1,027
Default

I may be asking the blindingly obvious here, but what are you doing trying to send messages to admin@localhost, and from where?

localhost, as you undoubtedly know, points to 127.0.0.1 (the loopback address) on any properly configured machine. So unless you're trying to send mail to an account FROM the Zimbra box itself, localhost would be a different place for every machine. . .

Perhaps it would help us help you if we know what you're actually trying to accomplish. . .
__________________
Cheers,

Dan
Reply With Quote
  #8 (permalink)  
Old 07-16-2009, 12:30 AM
Junior Member
 
Posts: 7
Default

Sorry ill try to explain again.
I am trying to set zimbra up to work internally on a network only. I have done this once but when trying to install it again on a different server I keep getting the same problem.

I was using @localhost as an example. If i create a new domain in the admin panel called '@example' and i try to send mail to this account I can only do it by sending the mail to '@emaple.zimbra.valley.notts.sch.uk', the web client confirms that the message has been sent but will never appear in an inbox.
Reply With Quote
  #9 (permalink)  
Old 07-16-2009, 12:40 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
Default

You need to make the changes I've given you in the earlier post for Zimbra to work correctly, you must have a valid hosts file and DNS A & MX records.
__________________
Regards


Bill
Reply With Quote
  #10 (permalink)  
Old 07-16-2009, 12:42 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
Default

Quote:
Originally Posted by Daskin View Post
I was using @localhost as an example. If i create a new domain in the admin panel called '@example' and i try to send mail to this account I can only do it by sending the mail to '@emaple.zimbra.valley.notts.sch.uk', the web client confirms that the message has been sent but will never appear in an inbox.
That's because you didn't change the domain name when you were asked during the initial install, if you don't set the correct domain name the it defaults to the FQDN of your server.
__________________
Regards


Bill
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.