Results 1 to 5 of 5

Thread: Setting up SMTP Relay

  1. #1

    Setting up SMTP Relay

    I have an isolated network from which I would like to be able to send mail out of to host mydomain.com. I have configured an SMTP (postfix) server with external access to relay the mail. I have tested this via telnet and it works fine. Now I am trying to configure sendmail on the clients to use my server as a relay. I have tried a number of options, but haven't had much success. Here's what I've done (I've also done the makes for m4 configs and makemaps for the hashes, but have omitted the commands for brevity):

    The SMTP server has the hostname 'myrelay' in all the configurations below...

    In sendmail.mc:
    created this line:
    Code:
    define(`SMART_HOST', `myrelay')dnl
    and ran the make

    Then I tried this:
    In mailertable:

    Code:
    mydomain.com    smtp:[myrelay]
    I included the brackets because there is no MX record for 'myrelay'

    Any thoughts on what I could be missing?

    Note: I prefer to use postfix, as I am far more familiar with the configuration, but in this situation I am required to use sendmail for the clients.
    63,000 bugs in the code, 63,000 bugs,
    ya get 1 whacked with a service pack,
    now there's 63,005 bugs in the code!!

  2. #2
    Well, apparently the issue was that the machine trying to relay the message couldn't resolve mydomain.com in DNS. Adding a bogus IP in /etc/hosts for mydomain.com works. Strange, eh? Anyone know if there's a way to tell sendmail to leave DNS resolution for the smart host? Seems kinda bad not to, adding something to /etc/hosts is a patchwork solution that I'm not a fan of...
    63,000 bugs in the code, 63,000 bugs,
    ya get 1 whacked with a service pack,
    now there's 63,005 bugs in the code!!

  3. #3
    Do you have mydomain.com setup in /etc/resolv.conf (i.e. 1st line 'search mydomain.com'), and is your domain name of the system set the same?
    arrogance breeds ignorance

    Screaming Electron, Full of BSD Goodness

  4. #4
    No - intentionally. This server is in it's own network, which doesn't have access to external machines (part of mydomain.com).
    There are some servers, however, like 'myrelay' which does have a second interface and has access to both networks.
    The server I am trying to configure should ideally relay all mail through 'myrelay,' except for mail destined for the local machine. I was hoping this could be done without trying to resolve the destination address since the relay should worry about that...
    63,000 bugs in the code, 63,000 bugs,
    ya get 1 whacked with a service pack,
    now there's 63,005 bugs in the code!!

  5. #5
    hi

Similar Threads

  1. Mail relay problem
    By saswata in forum Linux - Hardware, Networking & Security
    Replies: 3
    Last Post: 03-28-2008, 06:45 AM
  2. Mail relay in Openwebmail
    By saswata in forum Linux - Hardware, Networking & Security
    Replies: 0
    Last Post: 11-01-2007, 04:08 PM
  3. Relay in Sendmail!
    By honey bee in forum Linux - Hardware, Networking & Security
    Replies: 3
    Last Post: 12-23-2006, 10:14 AM
  4. Postfix relay
    By countach44 in forum Linux - Hardware, Networking & Security
    Replies: 1
    Last Post: 04-05-2005, 04:14 AM
  5. Calls over internet like TTY (relay?)
    By gmoreno in forum General Chat
    Replies: 1
    Last Post: 02-03-2004, 11:23 PM

Bookmarks

Posting Permissions

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