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

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 11-02-2010, 03:20 PM
Special Member
 
Posts: 124
Default [SOLVED] How do I send email to fictional subdomain?

I'm testing Hylafax to add faxing to my network. I have this installed on a separate machine from Zimbra. Basically, when a send an email to @fax.mydomain.com I want this to be routed to my Hylafax machine.

At the moment I get a mail delivery system error in Zimbra saying that @fax.mydomain.com cannot be found. It went out to my smtp relay ISP, but I wanted it to stay local.

I tried adding a host record on my DNS server for fax.mydomain.com, but it doesn't work.

I guess I need to do something else, but I'm not sure what to do.

Any help is appreciated.

Thanks
Reply With Quote
  #2 (permalink)  
Old 11-03-2010, 12:15 AM
y@w y@w is offline
Moderator
 
Posts: 658
Default

I'm not familiar with Hylafax, but if all you need is for Zimbra to send emails to it, all you should need is an MX record for the domain fax.mydomain.com pointed at your Hylafax box.
__________________
What a n00b!
Reply With Quote
  #3 (permalink)  
Old 11-03-2010, 01:58 AM
Special Member
 
Posts: 124
Default

Quote:
Originally Posted by y@w View Post
I'm not familiar with Hylafax, but if all you need is for Zimbra to send emails to it, all you should need is an MX record for the domain fax.mydomain.com pointed at your Hylafax box.
Hi y@w

I have tried adding an MX and A record to my DNS server, but I keep getting mail delivery errors. Zimbra keeps sending out the email to my ISP relay rather than delivering locally.

Any other suggestions?

Thanks
Reply With Quote
  #4 (permalink)  
Old 11-03-2010, 05:55 AM
Special Member
 
Posts: 124
Default

I tried adding a second SMTP relay which is the FQDN for the fax server, i.e. faxserver@mydomain.com but that didn't seem to work.

What do I have to do to get Zimbra to send an email @fax.mydomain.com locally rather than via the ISP's SMTP relay?

Do I need to use transport tables http://wiki.zimbra.com/index.php?tit...ernal_servers?
Reply With Quote
  #5 (permalink)  
Old 11-03-2010, 09:47 AM
y@w y@w is offline
Moderator
 
Posts: 658
Default

Ah, if you're using your ISP as a relay, it's going to try to send through that. What's probably the easiest solution then is to create the fax.mydomain.com domain on your Zimbra box and set the zimbraMailTransport for that domain:

Code:
zmprov cd fax.mydomain.com zimbraMailTransport hylafax.mydomain.com
Make sure that whatever you put in as "hylafax.mydomain.com" is resolvable by the Zimbra server to the IP for your Hylafax box.
__________________
What a n00b!
Reply With Quote
  #6 (permalink)  
Old 11-03-2010, 09:51 AM
Special Member
 
Posts: 124
Default

Quote:
Originally Posted by y@w View Post
Ah, if you're using your ISP as a relay, it's going to try to send through that. What's probably the easiest solution then is to create the fax.mydomain.com domain on your Zimbra box and set the zimbraMailTransport for that domain:

Code:
zmprov cd fax.mydomain.com zimbraMailTransport hylafax.mydomain.com
Make sure that whatever you put in as "hylafax.mydomain.com" is resolvable by the Zimbra server to the IP for your Hylafax box.
Hi again

Would this not happen if I was using Zimbra's SMTP?

Is this equivalent to creating a new domain in the GUI and adding SMTP relay pointing to the hylafax server?

What about the transport tables thing that I found while googling for a solution?

Thanks
Reply With Quote
  #7 (permalink)  
Old 11-03-2010, 01:28 PM
y@w y@w is offline
Moderator
 
Posts: 658
Default

No, it's not the same. When the domain exists locally, Zimbra will try to deliver to whatever host is in the zimbraMailTransport property (can also be done per-user).
__________________
What a n00b!
Reply With Quote
  #8 (permalink)  
Old 11-04-2010, 06:22 AM
Special Member
 
Posts: 124
Default

y@w I removed my ISP's SMTP relay and added an A record for fax.mydomain.com on my DNS server and it works perfectly.

HOWEVER, when I add the SMTP relay back again this obviously doesn't work as it goes through the relay. I tried the command you showed above:

Code:
zmprov cd fax.mydomain zimbraMailTransport faxserver.mydomain.com
I added an A record for faxserver.mydomain.com on my DNS server, but now rather than getting mail delivery error I get "mail transport unavailable" when I look in the queue.
Reply With Quote
  #9 (permalink)  
Old 11-04-2010, 07:33 AM
Special Member
 
Posts: 124
Default

I just tried with transport table and it worked!

Out of curiosity is the transport table method the preferred way of "bypassing" the ISP's SMTP relay or should I do something else? I understand from the wiki that I'll need to redo this every time I update Zimbra, so if there is a better way please let me know.

Thanks
Reply With Quote
  #10 (permalink)  
Old 11-04-2010, 08:47 AM
y@w y@w is offline
Moderator
 
Posts: 658
Default

Heh, whoops. I told you the wrong zimbraMailTransport property. Should've been smtp:hylafax.mydomain.com:25. You can modify with:

Code:
zmprov md fax.mydomain.com zimbraMailTransport smtp:hylafax.mydomain.com:25
Editing the transport table will certainly work, but doing it via zmprov will be upgrade-safe.
__________________
What a n00b!
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.