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 08-31-2010, 07:41 AM
Intermediate Member
 
Posts: 20
Question [SOLVED] How to send all e-mails to an external smtp-server?

Hi all!

Is it possible to send all the e-mails written in zimbra to an external smtp-account as the default? An if yes, what I ve to do?

background infos: I run my zimbra server on a locale maschine with a dynamic ip. If I send an email to one of the big emailprovider, the mail was rejected, cause it was send from a mail-server with a dynamic ip. If I can send the mail to my external mail-server (with a static ip), so the mail will be accepted.

The external mail-server is NOT a zimbra server!

Any hints to solve?

kind regards
Tim
Reply With Quote
  #2 (permalink)  
Old 08-31-2010, 07:44 AM
Zimbra Consultant & Moderator
 
Posts: 20,313
Default

I guess what you mean is use an external relay? If you do you can add one in the Admin UI and if it needs Authentication the search the wiki (or the forums) for the words 'smtp authentication'.
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 08-31-2010, 12:43 PM
Intermediate Member
 
Posts: 20
Default

yes, youre right! Thanks for the keywords to search! I found an interresting wiki site about outgoing smtp authentication. I tried the commands i found there. But until now I wasnt successfull.

The main problem the last two hours is, that I cant find any loglines about the SMTP connection and some possible failures. The logfile in /var/log/zimbra.log is empty! And in /opt/zimbra/log/*.log I didnt found any about a smtp failure, too!

Only on my relay server I discovered a line that says like: rejected from IP <my.dynamic.isp.ip>

Now I increase the log level in /opt/zimbra/conf/log4j.properties.in with the line

log4j.logger.zimbra.soap=DEBUG

but, until now I ve no output concerning the smtp connection.

Any idea/hint, what I can do?

kind regards
Tim
Reply With Quote
  #4 (permalink)  
Old 08-31-2010, 10:45 PM
Zimbra Consultant & Moderator
 
Posts: 20,313
Default

Without any error information from the log files it's difficult to say. Does your relay server actually require Authentication?

Quote:
Originally Posted by t.i.m View Post
Only on my relay server I discovered a line that says like: rejected from IP <my.dynamic.isp.ip>
What was the reason for the rejection i.e. the exact error message?
__________________
Regards


Bill
Reply With Quote
  #5 (permalink)  
Old 09-01-2010, 12:26 AM
Intermediate Member
 
Posts: 20
Default

Right, no entries in the logfile is a bit strangely and not really helpfull! What could I do to activate the /var/log/zimbra.log? If I understand it right, this is the place where the MTA will write its output.

The errormessage from my relayserver in the internet is very simple:
Code:
 /var/qmail/bin/relaylock[22513]: /var/qmail/bin/relaylock: mail from 12.34.56.78:34003 
(j21603.my.isp.com)
Oh, and I ve an other information from the mailer-deamon on my zimbra-server, who send an email to my zimbra account:

Code:
<name@big-isp.com>: host my.relay-server.com[11.22.33.44] said: 553 sorry,  that domain 
isn't in my list of allowed rcpthosts; no valid cert for gatewaying (#5.7.1) (in
 reply to RCPT TO command)
maybe this is a little hint ...

Kind regards
Tim
Reply With Quote
  #6 (permalink)  
Old 09-01-2010, 05:51 AM
Moderator
 
Posts: 7,928
Default

Looks like your ISP is not allowing you to relay.
__________________
Reply With Quote
  #7 (permalink)  
Old 09-01-2010, 02:41 PM
Intermediate Member
 
Posts: 20
Default

Hi all! I ve solved my problem! Here is my solution:

To activate the output in /var/log/zimbra.log
Code:
postconf -e debug_peer_list=mail.host.com
postconf -e debug_peer_level=3
postfix reload
and then I restart the whole server. I guess normaly it should not be neccessary, but in my case it was.

The best site was the wiki site to the Outgoing SMTP Authentication. I used the most options/commands.

The message "553 sorry, that domain isn't in my list of allowed rcpthosts; no valid cert for gatewaying" seems to be like the call of a baby "wäääh" and its up to you to figure out what its missing

In my case it was a lot:
- misspelled the username for the smtp-auth
- the SMTP Port should not be 25 but 587
- then set smtp_sasl_auth_enable=yes
- I ve to remove the noplaintextoption (smtp_sasl_security_options=noanonymous)

And now I can send emails via my relayserver
Tim
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.