| 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.
|  | | 
07-15-2009, 05:22 AM
| | | 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. | 
07-15-2009, 05:28 AM
| | Zimbra Consultant & Moderator | |
Posts: 20,317
| | Please update your forum profile with the output of the following command (please don't post it in the thread): 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
| 
07-15-2009, 06:38 AM
| | | 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. | 
07-15-2009, 06:43 AM
| | Outstanding Member | |
Posts: 594
| | >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 ? | 
07-15-2009, 06:50 AM
| | | 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. | 
07-15-2009, 06:52 AM
| | Zimbra Consultant & Moderator | |
Posts: 20,317
| | 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
| 
07-15-2009, 08:11 AM
| | | 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
| 
07-16-2009, 12:30 AM
| | | 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. | 
07-16-2009, 12:40 AM
| | Zimbra Consultant & Moderator | |
Posts: 20,317
| | 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
| 
07-16-2009, 12:42 AM
| | Zimbra Consultant & Moderator | |
Posts: 20,317
| | Quote:
Originally Posted by Daskin 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
| | Thread Tools | Search this Thread | | | | | Display Modes | Linear Mode | | Why Join? Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.  |