A small problem since migration : we have a domain (foo.com) and the account email@example.com is redirected to another server (helpdesk software) on a subdomain : @support.foo.com.
Redirection is done using dns/mx (on the zimbra server).
Now if I use classic linux mail on the zimbra server (firstname.lastname@example.org) it get's there ! But if I add the entry email@example.com to the forward element of the Zimbra account, it's my ISP smtp that tells me it's unknown.. considering that this is internal I quite agree :) It seems that Zimbra sends it out into the wild :)
What am I doing wrong ?
Try adding the domain 'support.foo.com' in the admin console and then add an alias to one of the user accounts or a new account - that should do it.
I've tried but to no avail, If I use the alias, nothing happens. If I use the forward (.forward was used in the old postfix server) we get a "undeliverable" mail from the zimbra postfix bit.
Oops, sorry I misread your post. I thought you were accepting the subdomain on the Zimbra server not forwarding it.
In that case, do you have a DNS record pointing to the subdomain on another server? I would guess that you're having a problem because zimbra can't resolve the subdomain name.
Yep, no problem there, dig and nslookup are pointing MX and A pointers to the correct internal server.
If I use mail from shell on the zimbra... it arrives just fine.
In the admin panel, do you have 'use DNS lookup' enabled (I guess you do)? Is all your other mail being delivered correctly from/to the zimbra server?
DNS lookup is checked. Mail is being sent/received no problem... it's just this tiny little subdomain redirect which doesn't work.
Am I right in using the forward ?
I see no reason why you shouldn't use the forward. I can only suggest that as it's not getting to it's destination then you have a DNS problem. Have a look at this page for the correct settings for a subbdomain.
OK sorry for the delay, but DNS is fine, but adding this worked
/opt/zimbra/bin/zmprov ma maintenance zimbraMailTransport smtp:mail.mysubdomain.com