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. SMTP Server for Windows Vista
    By omidkamangar in forum Windows - General Topics
    Replies: 4
    Last Post: 08-15-2008, 05:55 AM
  2. Setting Up Pages in Visio
    By The Donald in forum Windows - General Topics
    Replies: 0
    Last Post: 01-05-2005, 06:25 AM
  3. SMTP Auth?
    By Tyr_7BE in forum Linux - Hardware, Networking & Security
    Replies: 9
    Last Post: 10-06-2004, 03:14 PM
  4. Calling all mail server admins
    By demian in forum Linux - Hardware, Networking & Security
    Replies: 4
    Last Post: 04-21-2004, 08:21 PM
  5. Mozilla SMTP server setup
    By cloverm in forum Linux - Software, Applications & Programming
    Replies: 2
    Last Post: 08-28-2002, 04:30 AM

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
  •