Page 1 of 2 12 LastLast
Results 1 to 10 of 29

Thread: SMTP Relay

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Posts
    16
    Rep Power
    9

    Default SMTP Relay

    Saw this product a few weeks back and I've got it installed. I'm really impressed. I'm planning on releasing this into a private school that I work at. However, I have a question. Is there a way that I can setup the SMTP relay through my ISP to use some sort of authentication? I'm still learning the ropes in regards to email in the Linux world so any help is beneficial. I've got this up and running on Fedora 4. Everything else is working fine, it just sends an email back saying that my SMTP server needs authentication.

    Great product and great support. Keep up the great work!!!

  2. #2
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    So your getting this ero back in the post fix logs? Or at the mail client when you send?

  3. #3
    Join Date
    Oct 2005
    Posts
    16
    Rep Power
    9

    Default

    Getting it back in the message. I know I can specify and relay but there is not a way to specify a username and password in the Admin Client. Is there a way to do this elsewhere?

  4. #4
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    Quote Originally Posted by alohrer
    Getting it back in the message. I know I can specify and relay but there is not a way to specify a username and password in the Admin Client. Is there a way to do this elsewhere?
    Can you post the exact error and context of the e-mail you get back.

  5. #5
    Join Date
    Oct 2005
    Posts
    16
    Rep Power
    9

    Default

    Here it is. Thanks so much for your responses. I'm off for now, I'll check back in tomorrow.

    "This is the Postfix program at host mail.XXX.XXX.net.

    I'm sorry to have to inform you that your message could not
    be delivered to one or more recipients. It's attached below.

    For further assistance, please send mail to

    If you do so, please include this problem report. You can
    delete your own text from the attached returned message.




    The Postfix program

    : host outgoing.verizon.net[206.46.232.12] said: 550 5.7.1
    Authentication Required (in reply to MAIL FROM command)"

    Basically it looks like I just need a username and password to send. I'm currently using this at home while I'm testing and making sure everything works ok before it will go live. I also want to make sure I know if I can or cannot do this in case I need to have something similar where I'm deploying it.

  6. #6
    Join Date
    Sep 2005
    Posts
    274
    Rep Power
    10

    Default enabling SMTP authentication for relays

    Haven't tested, but this should do it.

    Suppose your ISP relay host is "mailrelay.example.com" and the user
    name and password to use there is "user" and "password" respectively.

    Enable SMTP authentication on outbound messages:

    Code:
      $ postconf -e smtp_sasl_auth_enable=yes
    Create a file text file mapping which name/password should be used for
    which given outbound destination. This file can contain multiple
    lines.

    Code:
    $ echo mailrelay.example.com user:password > /opt/zimbra/conf/relay_password
    Create a postfix lookup table from this text file:

    Code:
    $ postmap /opt/zimbra/conf/relay_password
    Test that the map is okay and that the user: password pair is returned.

    Code:
    $ postmap -q mailrelay.example.com /opt/zimbra/conf/relay_password
    user:password
    Make postfix use this:

    Code:
    $ postconf -e smtp_sasl_password_maps=hash:/opt/zimbra/conf/relay_password
    $ postfix reload
    reload should do it - in this case no stop/start should be needed.

    Also take a look at all the other smtp_sasl config options in
    postfix documentation, starting at.

    http://www.postfix.org/postconf.5.ht...sl_auth_enable

    Beware of smtpd_ vs smtp_ sasl options. For mail being sent out via
    SMTP, you care about the latter. smtpd_sasl_* are used for mail client
    authentication, and the zimbra install already sets those up.
    Last edited by anand; 10-31-2005 at 05:07 PM.

  7. #7
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    ls -l /opt/zimbra/conf/relay_password.db

    What does that return?
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  8. #8
    Join Date
    Oct 2005
    Posts
    18
    Rep Power
    9

    Default

    Quote Originally Posted by KevinH
    ls -l /opt/zimbra/conf/relay_password.db

    What does that return?
    Hi Kevin, Thanks again for your quick responses.

    Code:
    [nick@macmini ~]> ls -l /opt/zimbra/conf/relay_password*
    -rw-r--r--   1 zimbra  zimbra     58 Apr 11 13:44 /opt/zimbra/conf/relay_password
    -rw-r--r--   1 zimbra  zimbra  16384 Apr 15 21:47 /opt/zimbra/conf/relay_password.db
    cheers,
    -Nick

  9. #9
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    What do you get if you turn off relay?
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  10. #10
    Join Date
    Oct 2005
    Posts
    18
    Rep Power
    9

    Default

    Before I tried enabling authenticated relay, outbound email was working ok. I had been using another machine on my network as the SMTP server, and it was in turn relaying through the auth server.

    Kevin, if it's helpful, you can contact me directly, or PM me contact info and I can contact you. I might be able to set up direct access to the box or something similar, and then we can post what fixed the issue.

    thanks,
    -Nick

Similar Threads

  1. SMTP Relay
    By adarsh in forum Administrators
    Replies: 4
    Last Post: 11-11-2010, 03:36 AM
  2. need advice on configuring zimbra to work with fax server
    By pheonix1t in forum Administrators
    Replies: 0
    Last Post: 07-11-2007, 07:46 PM
  3. Open Relay Help & Telnet Security Issue
    By OfMacAndMen in forum Installation
    Replies: 17
    Last Post: 07-10-2007, 07:51 PM
  4. Replies: 2
    Last Post: 10-10-2006, 12:45 AM
  5. SMTP Relay for particular ip's
    By DMRDave in forum Administrators
    Replies: 8
    Last Post: 03-10-2006, 03:09 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
  •