Results 1 to 5 of 5

Thread: SMTP relay for another domain no longer works since I upgraded to 7.2.1

  1. #1
    Wasowski is offline Senior Member
    Join Date
    Oct 2011
    Posts
    54
    Rep Power
    3

    Default [SOLVED] SMTP relay for another domain no longer works since I upgraded to 7.2.1

    Hi all,

    well I upgrade my Zimbra server to 7.2.1 and it stopped relaying the mail from another server to the world (it still relays the mail to its own domain users)

    This is how I did it last year:
    Code:
     Setting a relay host
    
    see also Sending mail through an external relay
    
    Set the relay host in the admin console, MTA tab to point to your ISPs outgoing mail server. Your ISP can tell you the proper value for this.
    
    You may have to set the port, as well. From the command line:
    
    zmprov ms server.domain.com zimbraMtaRelayHost mailrelay.example.com
    
    Enabling SMTP authentication
    
    Create a text file mapping which name/password should be used for each given outbound destination:
    
    echo mailrelay.example.com username:password > /opt/zimbra/conf/relay_password
    
    Create a postfix lookup table:
    
    postmap hash:/opt/zimbra/conf/relay_password
    
    To test that the lookup table is correct, the following should return username:password:
    
    postmap -q mailrelay.example.com /opt/zimbra/conf/relay_password
    
    Configure postfix to use the new password map:
    
    postconf -e smtp_sasl_password_maps=hash:/opt/zimbra/conf/relay_password
    
    Configure postfix to use SSL authentication:
    
    postconf -e smtp_sasl_auth_enable=yes
    
    Configure postfix to use the outgoing servername rather than the canonical server name:
    
    postconf -e smtp_cname_overrides_servername=no
    
    smtp_cname_overrides_servername=no is used because many smtp servers forward the connection different server than the one set in the smtp_sasl_password_maps file.
    
    Example of the problem :
    
    /opt/zimbra/conf/relay_password :
    
    smtp.gmail.com username@gmail.com:password
    
    but postfix connects to gmail-smtp.l.google.com
    
    Postfix will not send the authentication info contained in smtp_sasl_password_maps file because it as no entry for the server gmail-smtp.l.google.com but has one for smtp.gmail.com
    
    If you apply smtp_tls_per_site settings then smtp_cname_overrides_servername may become obsolete.
    
    Restart postfix:
    
    postfix reload
    
    Enable TLS
    
    As Zimbra user:
    
    postconf -e smtp_use_tls=yes
    postfix reload
    Its from this page: Outgoing SMTP Authentication - Zimbra :: Wiki

    Worked perfectly until last night (my upgrade to 7.2.1).

    Now every mail sent outside the smtp's domain I get this message: host mail.domainname.com[ipaddress] said: 554
    5.7.1 <emailaddress@domainname.com>: Relay access denied (in reply to RCPT TO
    command).

    I googled this forum but I couldnt find anything.

    Anyone knows what I should do ?

    Can I downgrade to the previous version if there is no way to do it with 7.2.1 ?

    Thank you.
    Last edited by Wasowski; 09-22-2012 at 09:50 PM.

  2. #2
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,499
    Rep Power
    56

    Default

    Quote Originally Posted by Wasowski View Post
    well I upgrade my Zimbra server to 7.2.1 and it stopped relaying the mail from another server to the world
    This comment implies that you're allowing another server to rely through your ZCS server, is that what's happening?

    Quote Originally Posted by Wasowski View Post
    This is how I did it last year:
    Did you actually verify that all the settings are correct after the upgrade and that you're using the correct submission port?

    Quote Originally Posted by Wasowski View Post
    Now every mail sent outside the smtp's domain I get this message: host mail.domainname.com[ipaddress] said: 554
    5.7.1 <emailaddress@domainname.com>: Relay access denied (in reply to RCPT TO
    command).

    I googled this forum but I couldnt find anything.
    There are severak threads that cover this topic: site:zimbra.com +"Relay access denied (in reply to RCPT TO command)" - Yahoo! Search Results

    Quote Originally Posted by Wasowski View Post
    Can I downgrade to the previous version if there is no way to do it with 7.2.1 ?
    Not a good idea unless you took a backup before the upgrade and you will lose email if you try this.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    Wasowski is offline Senior Member
    Join Date
    Oct 2011
    Posts
    54
    Rep Power
    3

    Default

    Hi Bill,

    Server A with domainname A on ISP A is using SERVER B with domainname B on ISP B to forward all emails. (SMTP from ISP A cant be use with an email server).

    All my settings are good, like I wrote, it accepted the emails for its own domain (domainname A) but refuse to forward the rest on the internet. Probably a postfix change in the permissions.

    And none of your Yahoo search results is even close to my problem. I already spent a lot of time on google.

    Thanks.

  4. #4
    Wasowski is offline Senior Member
    Join Date
    Oct 2011
    Posts
    54
    Rep Power
    3

    Default

    The error message came from the Server A, my mails never reached Server B unless it was for someone in that domainname.

    This solved my problem:
    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_cname_overrides_servername=no
    zmlocalconfig -e postfix_smtp_use_tls=yes
    zmlocalconfig -e postfix_smtp_sasl_security_options=noanonymous // Depending on your requirement

    Tx to thopu (he answered in this thread: http://www.zimbra.com/forums/install...ix-reload.html )

    So the problem came with the upgrade to 8.0 on server A and not the upgrade to 7.2.1 on server B.

  5. #5
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,499
    Rep Power
    56

    Default

    Quote Originally Posted by Wasowski View Post
    Tx to thopu (he answered in this thread: http://www.zimbra.com/forums/install...ix-reload.html )
    No he didn't, the correct answer has been given to you by Quanah in answer to your post in the other thread.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. use another smtp relay for specific domain
    By sirio81 in forum Administrators
    Replies: 3
    Last Post: 08-06-2011, 12:54 AM
  2. smtp relay for external domain
    By djingo in forum Administrators
    Replies: 0
    Last Post: 06-24-2010, 06:47 AM
  3. Upgraded BES to 4.1.6.20 and mail no longer syncing to Blackberry's
    By bfrederick in forum Zimbra Connector for BlackBerry
    Replies: 5
    Last Post: 06-01-2009, 05:58 AM
  4. Calendar no longer works
    By davidfsmith in forum Zimbra Connector for BlackBerry
    Replies: 5
    Last Post: 01-18-2008, 04:05 AM
  5. Private key extraction no longer works
    By InternetGuy in forum Administrators
    Replies: 4
    Last Post: 01-11-2008, 11:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •