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 01-30-2006, 08:58 PM
Member
 
Posts: 13
Default sending mail using your ISP as relay host

Here is something for everyone who wants to use their ISP as a relay host for outgoing mail. You might want to call it a How to. It took a lot of reading and searching on the zimbra forums, but it was worth it, and it works. Most important make sure that you can send mail internally and receive mail before you continue with this.

Next step is to set your relay MTA to your ISP's mail host and to remove the check from DNS look-up. This is done in the admin console, editing the server

From this point on postfix is your friend, considering you need to add to postfix.
To start you need to enable SMTP authentication on outbound messages: $ postconf -e smtp_sasl_auth_enable=yes

Next is to create a text file mapping which name/password should be used for each given outbound destination:
$ echo mailrelay.example.com usernameassword > opt/zimbra/conf/relay_password this is one line

Create a postfix lookup table
$ postmap /opt/zimbra/conf/relay_password

Test that the map is okay
$ postmap -q mailrelay.example.com /opt/zimbra/conf/relay_password
that should return usernameassword if done right

Make postfix use the above
$ postconf -e smtp_sasl_password_maps=hash:/opt/zimbra/conf/relay_password

Almost done. Two more changes to postfix and then we can send mail externally. We need to change the port we listen on. This is most important for people who use an ISP that does not allow the use of port 25 to listen to ( [I]this is most important for Rogers customers in Canada)

postconf -e relay_host=relayhost.yourisp.com:465
Your ISP might want you to use another port, so check with your ISP for an alternate port.

Restart postfix by entering this

postfix reload

If we try to send mail at this point, we might still get an error (in the zimbra log files would be first place to check):

SASL authentication failure: No worthy mechs found

It took me a while to find the fix for this but here it is:

postconf -e smtp_sasl_security_options=

Thats right nothing after the =. Apparently this option is set to noplaintext,noanonamous by default and that has to be changed.

Once this has been done you just have to restart postfix and we are done.

postfix reload

This should work for all who want to use their ISP as a relay host.

On a personal note, this is the best looking mail server/client that I have found. To all that are working on Zimbra.... KEEP UP THE GOOD WORK.

P.S. I wish I knew when the final release was available, then I could set a timeline to put it into production where I work.
Reply With Quote
  #2 (permalink)  
Old 03-20-2006, 09:27 AM
Starter Member
 
Posts: 1
Default Additional setting required

Great guide... however, there is one additional thing i needed to do in order to get it to work with rogers: I had to add noanonymous to the security options.

smtp_sasl_security_options = noanonymous

Thanks again for the great guide.
Reply With Quote
  #3 (permalink)  
Old 10-18-2006, 05:25 AM
Intermediate Member
 
Posts: 23
Default

thanx a lot for this How To.

was very useful and works well
Reply With Quote
  #4 (permalink)  
Old 10-25-2006, 01:49 AM
Intermediate Member
 
Posts: 17
Thumbs up Vote this bug

Please vote this bug:

http://bugzilla.zimbra.com/votes.cgi...er&bug_id=4963
Reply With Quote
  #5 (permalink)  
Old 01-24-2007, 06:34 PM
Intermediate Member
 
Posts: 16
Default

What if you want to relay mail but don't need to authenticate?? ie all mail from the domain can be relayed through the smtp server.

Greg
Reply With Quote
  #6 (permalink)  
Old 01-24-2007, 06:46 PM
Former Zimbran
 
Posts: 5,606
Default

That sounds like a time bomb waiting to explode. . .
unless it's restricted by IP
Reply With Quote
  #7 (permalink)  
Old 01-24-2007, 06:57 PM
Intermediate Member
 
Posts: 16
Default

It is. Mail can be relayed from any internal address.
Reply With Quote
  #8 (permalink)  
Old 04-21-2007, 04:40 PM
Intermediate Member
 
Posts: 21
Default details

$ echo mailrelay.example.com usernamepassword > opt/zimbra/conf/relay_password

Do i just type "usernamepassword" as is? or is it a real username and password?


Hope this is not a stupid question. I am new to this.
Reply With Quote
  #9 (permalink)  
Old 09-06-2007, 05:36 AM
Starter Member
 
Posts: 1
Default

Quote:
Originally Posted by phantom32i View Post
Do i just type "usernamepassword" as is? or is it a real username and password?
hi,

you just type:

$ echo mailrelay.example.com USERNAME:PASSWORD > opt/zimbra/conf/relay_password
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.