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 03-02-2011, 12:02 PM
New Member
 
Posts: 3
Default [SOLVED] smtp Authentication problem

Hi all,

I need help to authenticate all outgoing mail through my ISP's MTA, I tried to use the Outgoing SMTP Authentication article in the wiki page of zimbra but i can't authenticate in my isp smtp server.

i added the followings comand to my server:
1. zmprov ms server.domain.com zimbraMtaRelayHost mail.netmadeira.com:25
2. echo mail.netmadeira.com usernameassword > /opt/zimbra/conf/relay_password
3. postmap hash:/opt/zimbra/conf/relay_password
4. postmap -q mailrelay.example.com /opt/zimbra/conf/relay_password
5. postconf -e smtp_sasl_password_maps=hash:/opt/zimbra/conf/relay_password
6. postconf -e smtp_cname_overrides_servername=no
7. postfix reload
I didn't add the ssl authentication and tls because my ISP technical suport, said they didn't use any of them .
to make persistent i add the following comands:
zmlocalconfig -e postfix_smtp_sasl_password_maps=hash:/opt/zimbra/conf/relay_password
zmlocalconfig -e postfix_smtp_sasl_security_options=noplaintext,noa nonymous
zmlocalconfig -e postfix_smtp_sasl_mechanism_filter=login
zmlocalconfig -e postfix_smtp_use_tls=no
zmlocalconfig -e postfix_smtp_use_ssl=no
zmlocalconfig -e postfix_smtp_cname_overrides_servername=no
In the zimbra log file /var/log/zimbra.log i get the following error:
Mar 2 19:01:00 zimbra postfix/smtp[6600]: C0307480AA5: to=, relay=mail.netmadeira.com[213.190.196.18]:25, delay=4.3, delays=0.02/0.03/0.03/4.2, dsn=5.0.0, status=bounced (host mail.netmadeira.com[213.190.196.18] said: 550 relaying blocked, read new mail, add 89.120.101.1 to forwarding or enable smtp authentication in (in reply to RCPT TO command))
Mar 2 19:01:00 zimbra postfix/smtp[6600]: rec_put_type: 68 at 639
Mar 2 19:01:00 zimbra postfix/smtp[6600]: vstream_fflush_some: fd 13 flush 1
Mar 2 19:01:00 zimbra postfix/smtp[6600]: > mail.netmadeira.com[213.190.196.18]:25: RSET
Mar 2 19:01:00 zimbra postfix/smtp[6600]: vstream_fflush_some: fd 14 flush 6
Mar 2 19:01:00 zimbra postfix/smtp[6600]: vstream_buf_get_ready: fd 14 got 21
Mar 2 19:01:00 zimbra postfix/smtp[6600]: < mail.netmadeira.com[213.190.196.18]:25: 250 Command RSET OK
Mar 2 19:01:00 zimbra postfix/smtp[6600]: > mail.netmadeira.com[213.190.196.18]:25: QUIT

just two notes:

first: my mail server is in dmz behind cisco firewall with pat address translation.
second: zimbraMtaAuthEnabled is set to TRUE

Thank you so much in advance, and I will be looking forward for any help provided to solve this matter.
Reply With Quote
  #2 (permalink)  
Old 03-03-2011, 07:56 AM
Special Member
 
Posts: 125
Default

Note:
xxx.yourisp_mailserver.tld - is to be replaced with your ISP email server domain, fully qualified name
xxx.yourzimbradomain.tld - is to be replaced with whatever domain you setup zimbra on, fully qualified name

Here's what my authentication looks like.

zmprov ms xxx.yourzimbradomain.tld zimbraMtaRelayHost xxx.yourisp_mailserver.tld:25;
echo xxx.yourisp_mailserver.tld userid@xxx.yourisp_mailserver.tldassword > /opt/zimbra/conf/relay_password;
postmap hash:/opt/zimbra/conf/relay_password;

postmap -q xxx.yourisp_mailserver.tld /opt/zimbra/conf/relay_password;
postconf -e smtp_sasl_password_maps=hash:/opt/zimbra/conf/relay_password;
postconf -e smtp_sasl_auth_enable=yes;

postconf -e smtp_use_tls=yes;
postfix reload;
postconf -e smtp_cname_overrides_servername=no;
postconf -e smtp_sasl_security_options=noanonymous
postfix reload;

zmlocalconfig -e postfix_smtp_sasl_password_maps=hash:/opt/zimbra/conf/relay_password;
zmlocalconfig -e postfix_smtp_sasl_auth_enable=yes;
zmlocalconfig -e postfix_smtp_use_tls=yes;
zmlocalconfig -e postfix_smtp_cname_overrides_servername=no;
zmlocalconfig -e postfix_smtp_sasl_security_options=noanonymous;

zmprov mcf zimbraLastLogonTimestampFrequency 1h;
zmprov mcf zimbraDefaultDomainName yourzimbradomain.tld;
zmprov mc default zimbraFeatureCalendarReminderDeviceEmailEnabled TRUE;


Do this only if you're running Zimbra FOSS 7
as root, after upgrade or install
/opt/zimbra/libexec/scripts/migrate20100913-Mysql51.pl


Last thing, you need to be sure your split DNS is setup and working properly if you are sitting behind a NAT. I assume that's all good.
Reply With Quote
  #3 (permalink)  
Old 03-05-2011, 07:59 AM
New Member
 
Posts: 3
Smile smtp auth Working

Hi Spectra,

I Just applied the configuration you post, and my smtp auth is working fine
thank you for your assistance
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.