get local sendmail to use MX records

Ask a Question related to FreeBSD, Design and Development.

  1. #1

    Default get local sendmail to use MX records

    Hi,

    I have the following situation:

    I have moved my mail services from my dedicated server to another server. The MX records were updated at the DNS host to point to the other server. Email from the outside is being routed correctly to the new server, but now the local scripts on the dedicated server are still being routed to the local accounts and not actually sent to the other server.

    So sendmail on the first server tries to use localhost as a relay, instead of looking up the MX records for the domain.

    Anybody knows how to solve this?

    Thanks!

    Gerard
    Gerard Meijer Guest

  2. Similar Questions and Discussions

    1. Problem with local file and local link
      Hi to everybody, I have installed a new version of flash player (9,0,28,0) and when I open a local file like: c:\test\index.html When I click...
    2. [PHP-DEV] sendmail check
      Ilia, can you please explain what purpose your patch to mail.c is serving and why it is breaking backwards compatibility? Or if the latter is...
    3. Using Sendmail in ASP
      Hello, Can anybody tell me how to use Sendmail in ASP? What are the other components generally supported by IIS? Thank you
    4. Sendmail
      In article <pndVa.25900$o54.1305@lakeread05>, willjay <willjay@excite.com> wrote: We .ca isn't really that foreign - it's Canada. But you...
    5. Can't use 'local' to find sql server instances on local machine
      My computer (connected to a domain) is having trouble connecting to the local MSDE when using 'local' or '(local)' as server name. The only way I...
  3. #2

    Default Re: get local sendmail to use MX records

    GM> Hi,

    GM> I have the following situation:

    GM> I have moved my mail services from my dedicated server to another server. The MX records were updated at the DNS host to point to the other server. Email from the outside is being routed
    GM> correctly to the new server, but now the local scripts on the dedicated server are still being routed to the local accounts and not actually sent to the other server.

    GM> So sendmail on the first server tries to use localhost as a relay, instead of looking up the MX records for the domain.

    GM> Anybody knows how to solve this?

    GM> Thanks!

    GM> Gerard
    GM> _______________________________________________
    GM> [email]freebsd-questions@freebsd.org[/email] mailing list
    GM> [url]http://lists.freebsd.org/mailman/listinfo/freebsd-questions[/url]
    GM> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"

    ---------------------------------------------

    Quick and dirty: /etc/mail/aliases
    putting in something like "root: [email]root@example.com[/email]" should do the
    trick. Or am I missing something ?

    Hexren

    Hexren Guest

  4. #3

    Default Re: get local sendmail to use MX records

    No, that is not the solution. It could be, but it's not what I want.

    An example:

    domain: domain.com
    domain.com is hosted on server B. The MX record for domain.com says that
    server A handles the mail of domain.com. So [email]anyname@domain.com[/email] should be
    handled by server A.

    This works, but now on server B there runs a script that sends an e-mail to
    [email]gerard@domain.com[/email] . What SHOULD happen is that sendmail on server B looks up
    the MX record for domain.com, sees that server A handles the mail for
    domain.com and sends the mail to server A. What happens is that sendmail
    recognizes the domain as hosted on that machine and uses localhost to
    deliver the mail. It looks for user gerard (in this example), which doesn't
    exist.

    I agree with you, a solution would be to set in the alias file of server B
    something like gerard: [email]root@serverA.com[/email] . If this was about just one
    e-mailaddress, it wouldn't be a problem, but I'm actually talking about a
    little more then one address.

    So that's not a good solution for me.

    ----- Original Message -----
    From: "Hexren" <me@hexren.net>
    To: "Gerard Meijer" <gmeijer@palmweb.nl>
    Cc: <freebsd-questions@freebsd.org>
    Sent: Wednesday, February 23, 2005 6:30 PM
    Subject: Re: get local sendmail to use MX records

    > GM> Hi,
    >
    > GM> I have the following situation:
    >
    > GM> I have moved my mail services from my dedicated server to another
    > server. The MX records were updated at the DNS host to point to the other
    > server. Email from the outside is being routed
    > GM> correctly to the new server, but now the local scripts on the
    > dedicated server are still being routed to the local accounts and not
    > actually sent to the other server.
    >
    > GM> So sendmail on the first server tries to use localhost as a relay,
    > instead of looking up the MX records for the domain.
    >
    > GM> Anybody knows how to solve this?
    >
    > GM> Thanks!
    >
    > GM> Gerard
    > GM> _______________________________________________
    > GM> [email]freebsd-questions@freebsd.org[/email] mailing list
    > GM> [url]http://lists.freebsd.org/mailman/listinfo/freebsd-questions[/url]
    > GM> To unsubscribe, send any mail to
    > "freebsd-questions-unsubscribe@freebsd.org"
    >
    > ---------------------------------------------
    >
    > Quick and dirty: /etc/mail/aliases
    > putting in something like "root: [email]root@example.com[/email]" should do the
    > trick. Or am I missing something ?
    >
    > Hexren
    >
    > _______________________________________________
    > [email]freebsd-questions@freebsd.org[/email] mailing list
    > [url]http://lists.freebsd.org/mailman/listinfo/freebsd-questions[/url]
    > To unsubscribe, send any mail to
    > "freebsd-questions-unsubscribe@freebsd.org"
    >
    >
    Gerard Meijer Guest

  5. #4

    Default Re: get local sendmail to use MX records

    Gerard Meijer wrote:
    > No, that is not the solution. It could be, but it's not what I want.
    >
    > An example:
    >
    > domain: domain.com
    > domain.com is hosted on server B. The MX record for domain.com says that
    > server A handles the mail of domain.com. So [email]anyname@domain.com[/email] should be
    > handled by server A.
    >
    > This works, but now on server B there runs a script that sends an e-mail
    > to [email]gerard@domain.com[/email] . What SHOULD happen is that sendmail on server B
    > looks up the MX record for domain.com, sees that server A handles the
    > mail for domain.com and sends the mail to server A. What happens is that
    > sendmail recognizes the domain as hosted on that machine and uses
    > localhost to deliver the mail. It looks for user gerard (in this
    > example), which doesn't exist.
    >
    > I agree with you, a solution would be to set in the alias file of server
    > B something like gerard: [email]root@serverA.com[/email] . If this was about just one
    > e-mailaddress, it wouldn't be a problem, but I'm actually talking about
    > a little more then one address.
    >
    > So that's not a good solution for me.
    If I followed you correctly, "server B" *formerly* was the
    appropriate end point for mail for "domain.com". If that is true,
    then on server B, the sendmail config probably indicates that mail
    destined for domain.com is delivered locally. Remove that indicator
    and it should revert to MX lookup behavior to find the appropriate
    handler for the domain. There may be multiple places in the sendmail
    config where domain.com is named for different purposes. Hunt them
    all down and kill them.

    --
    Greg Barniskis, Computer Systems Integrator
    South Central Library System (SCLS)
    Library Interchange Network (LINK)
    <gregb at scls.lib.wi.us>, (608) 266-6348

    A: Because it reverses the natural flow of a dialog.
    Q: Why is top posting undesirable when replying?
    Greg Barniskis Guest

  6. #5

    Default Re: get local sendmail to use MX records

    * On Wed, Feb 23, 2005 at 06:52:37PM +0100 Gerard Meijer wrote:
    > An example:
    >
    > domain: domain.com
    > domain.com is hosted on server B. The MX record for domain.com says that
    > server A handles the mail of domain.com. So [email]anyname@domain.com[/email] should be
    > handled by server A.
    >
    > This works, but now on server B there runs a script that sends an e-mail to
    > [email]gerard@domain.com[/email] . What SHOULD happen is that sendmail on server B looks
    > up the MX record for domain.com, sees that server A handles the mail for
    > domain.com and sends the mail to server A. What happens is that sendmail
    > recognizes the domain as hosted on that machine and uses localhost to
    > deliver the mail. It looks for user gerard (in this example), which doesn't
    > exist.
    Somewhere, probably in /etc/mail/local-host-names, you told sendmail
    that domain.com should be delivered locally. Remove that entry and
    restart sendmail.

    If if was defined in /etc/mail/<HOSTNAME>.mc, then edit
    /etc/mail/<HOSTNAME>.mc and restart sendmail with a "make all install
    restart".

    You can probably find the entry with a "grep domain.com /etc/mail/*".

    Mark

    --
    "The fix is only temporary...unless it works." - Red Green
    Mark Frank Guest

  7. #6

    Default Re: get local sendmail to use MX records

    Hi Greg,

    I'm absolutely sure that this is not the case anymore. I removed everything.


    ----- Original Message -----
    From: "Greg Barniskis" <nalists@scls.lib.wi.us>
    To: "Gerard Meijer" <gmeijer@palmweb.nl>
    Cc: "Hexren" <me@hexren.net>; <freebsd-questions@freebsd.org>
    Sent: Wednesday, February 23, 2005 7:11 PM
    Subject: Re: get local sendmail to use MX records

    > Gerard Meijer wrote:
    >> No, that is not the solution. It could be, but it's not what I want.
    >>
    >> An example:
    >>
    >> domain: domain.com
    >> domain.com is hosted on server B. The MX record for domain.com says that
    >> server A handles the mail of domain.com. So [email]anyname@domain.com[/email] should be
    >> handled by server A.
    >>
    >> This works, but now on server B there runs a script that sends an e-mail
    >> to [email]gerard@domain.com[/email] . What SHOULD happen is that sendmail on server B
    >> looks up the MX record for domain.com, sees that server A handles the
    >> mail for domain.com and sends the mail to server A. What happens is that
    >> sendmail recognizes the domain as hosted on that machine and uses
    >> localhost to deliver the mail. It looks for user gerard (in this
    >> example), which doesn't exist.
    >>
    >> I agree with you, a solution would be to set in the alias file of server
    >> B something like gerard: [email]root@serverA.com[/email] . If this was about just one
    >> e-mailaddress, it wouldn't be a problem, but I'm actually talking about a
    >> little more then one address.
    >>
    >> So that's not a good solution for me.
    >
    > If I followed you correctly, "server B" *formerly* was the appropriate end
    > point for mail for "domain.com". If that is true, then on server B, the
    > sendmail config probably indicates that mail destined for domain.com is
    > delivered locally. Remove that indicator and it should revert to MX lookup
    > behavior to find the appropriate handler for the domain. There may be
    > multiple places in the sendmail config where domain.com is named for
    > different purposes. Hunt them all down and kill them.
    >
    > --
    > Greg Barniskis, Computer Systems Integrator
    > South Central Library System (SCLS)
    > Library Interchange Network (LINK)
    > <gregb at scls.lib.wi.us>, (608) 266-6348
    >
    > A: Because it reverses the natural flow of a dialog.
    > Q: Why is top posting undesirable when replying?
    >
    >
    Gerard Meijer Guest

  8. #7

    Default Re: get local sendmail to use MX records

    Gerard Meijer wrote:
    > Hi Greg,
    >
    > I'm absolutely sure that this is not the case anymore. I removed
    > everything.
    ....
    >> If I followed you correctly, "server B" *formerly* was the appropriate
    >> end point for mail for "domain.com". If that is true, then on server
    >> B, the sendmail config probably indicates that mail destined for
    >> domain.com is delivered locally. Remove that indicator and it should
    >> revert to MX lookup behavior to find the appropriate handler for the
    >> domain. There may be multiple places in the sendmail config where
    >> domain.com is named for different purposes. Hunt them all down and
    >> kill them.
    Nevertheless... the grep suggested by another poster seems
    completely appropriate. There are few other explanations than
    "sendmail config error". You restarted sendmail after the config
    change, right?

    Another test you could try would be to fire up nslookup on server
    B's command line. If you ask there for the MX record in question, do
    you actually get the right answer?


    --
    Greg Barniskis, Computer Systems Integrator
    South Central Library System (SCLS)
    Library Interchange Network (LINK)
    <gregb at scls.lib.wi.us>, (608) 266-6348

    A: Because it reverses the natural flow of a dialog.
    Q: Why is top posting undesirable when replying?
    Greg Barniskis Guest

  9. #8

    Default Re: get local sendmail to use MX records

    Yes the grep suggested by Mark was appropriate. I did that and it returned
    nothing.

    Nslookup on the server shows the right MX records for the specific domain.

    I really don't know what it is.
    ----- Original Message -----
    From: "Greg Barniskis" <nalists@scls.lib.wi.us>
    To: "Gerard Meijer" <gmeijer@palmweb.nl>
    Cc: <freebsd-questions@freebsd.org>
    Sent: Wednesday, February 23, 2005 8:09 PM
    Subject: Re: get local sendmail to use MX records

    > Gerard Meijer wrote:
    >> Hi Greg,
    >>
    >> I'm absolutely sure that this is not the case anymore. I removed
    >> everything.
    > ...
    >>> If I followed you correctly, "server B" *formerly* was the appropriate
    >>> end point for mail for "domain.com". If that is true, then on server B,
    >>> the sendmail config probably indicates that mail destined for domain.com
    >>> is delivered locally. Remove that indicator and it should revert to MX
    >>> lookup behavior to find the appropriate handler for the domain. There
    >>> may be multiple places in the sendmail config where domain.com is named
    >>> for different purposes. Hunt them all down and kill them.
    >
    > Nevertheless... the grep suggested by another poster seems completely
    > appropriate. There are few other explanations than "sendmail config
    > error". You restarted sendmail after the config change, right?
    >
    > Another test you could try would be to fire up nslookup on server B's
    > command line. If you ask there for the MX record in question, do you
    > actually get the right answer?
    >
    >
    > --
    > Greg Barniskis, Computer Systems Integrator
    > South Central Library System (SCLS)
    > Library Interchange Network (LINK)
    > <gregb at scls.lib.wi.us>, (608) 266-6348
    >
    > A: Because it reverses the natural flow of a dialog.
    > Q: Why is top posting undesirable when replying?
    > _______________________________________________
    > [email]freebsd-questions@freebsd.org[/email] mailing list
    > [url]http://lists.freebsd.org/mailman/listinfo/freebsd-questions[/url]
    > To unsubscribe, send any mail to
    > "freebsd-questions-unsubscribe@freebsd.org"
    >
    >
    Gerard Meijer Guest

  10. #9

    Default Re: get local sendmail to use MX records

    > No, that is not the solution. It could be, but it's not what I want.
    >
    > An example:
    >
    > domain: domain.com
    > domain.com is hosted on server B. The MX record for domain.com says that
    > server A handles the mail of domain.com. So [email]anyname@domain.com[/email] should be
    > handled by server A.
    Do you mean that your /bin/hostname show "domain.com" and not
    "machine.domain.com"?

    Anyway, you may have the option to bury the problem by using smart_host
    and mail_hub:
    like this in sendmail.mc:
    define(`SMART_HOST',`serverA.domain.com.')dnl
    define(`MAIL_HUB',`serverA.domain.com.')dnl


    --
    Hilsen Lars
    >
    > This works, but now on server B there runs a script that sends an e-mail
    > to
    > [email]gerard@domain.com[/email] . What SHOULD happen is that sendmail on server B looks
    > up
    > the MX record for domain.com, sees that server A handles the mail for
    > domain.com and sends the mail to server A. What happens is that sendmail
    > recognizes the domain as hosted on that machine and uses localhost to
    > deliver the mail. It looks for user gerard (in this example), which
    > doesn't
    > exist.
    >
    > I agree with you, a solution would be to set in the alias file of server B
    > something like gerard: [email]root@serverA.com[/email] . If this was about just one
    > e-mailaddress, it wouldn't be a problem, but I'm actually talking about a
    > little more then one address.
    >
    > So that's not a good solution for me.
    >
    > ----- Original Message -----
    > From: "Hexren" <me@hexren.net>
    > To: "Gerard Meijer" <gmeijer@palmweb.nl>
    > Cc: <freebsd-questions@freebsd.org>
    > Sent: Wednesday, February 23, 2005 6:30 PM
    > Subject: Re: get local sendmail to use MX records
    >
    >
    >> GM> Hi,
    >>
    >> GM> I have the following situation:
    >>
    >> GM> I have moved my mail services from my dedicated server to another
    >> server. The MX records were updated at the DNS host to point to the
    >> other
    >> server. Email from the outside is being routed
    >> GM> correctly to the new server, but now the local scripts on the
    >> dedicated server are still being routed to the local accounts and not
    >> actually sent to the other server.
    >>
    >> GM> So sendmail on the first server tries to use localhost as a relay,
    >> instead of looking up the MX records for the domain.
    >>
    >> GM> Anybody knows how to solve this?
    >>
    >> GM> Thanks!
    >>
    >> GM> Gerard
    >> GM> _______________________________________________
    >> GM> [email]freebsd-questions@freebsd.org[/email] mailing list
    >> GM> [url]http://lists.freebsd.org/mailman/listinfo/freebsd-questions[/url]
    >> GM> To unsubscribe, send any mail to
    >> "freebsd-questions-unsubscribe@freebsd.org"
    >>
    >> ---------------------------------------------
    >>
    >> Quick and dirty: /etc/mail/aliases
    >> putting in something like "root: [email]root@example.com[/email]" should do the
    >> trick. Or am I missing something ?
    >>
    >> Hexren
    >>
    >> _______________________________________________
    >> [email]freebsd-questions@freebsd.org[/email] mailing list
    >> [url]http://lists.freebsd.org/mailman/listinfo/freebsd-questions[/url]
    >> To unsubscribe, send any mail to
    >> "freebsd-questions-unsubscribe@freebsd.org"
    >>
    >>
    >
    > _______________________________________________
    > [email]freebsd-questions@freebsd.org[/email] mailing list
    > [url]http://lists.freebsd.org/mailman/listinfo/freebsd-questions[/url]
    > To unsubscribe, send any mail to
    > "freebsd-questions-unsubscribe@freebsd.org"
    >
    Lars Kristiansen Guest

  11. #10

    Default Re: get local sendmail to use MX records

    I really don't understand it at all now.

    When I run sendmail in test mode (sendmail -bt) and I do:

    3,0 [email]something@domain.com[/email], I get:

    canonify input: something @ domain . com
    Canonify2 input: something < @ domain . com >
    Canonify2 returns: something < @ domain . com . >
    canonify returns: something < @ domain . com . >
    parse input: something < @ domain . com . >
    Parse0 input: something < @ domain . com . >
    Parse0 returns: something < @ domain . com . >
    ParseLocal input: something < @ domain . com . >
    ParseLocal returns: something < @ domain . com . >
    Parse1 input: something < @ domain . com . >
    Parse1 returns: $# local $: something
    parse returns: $# local $: something

    So obviously sendmail thinks it should handle the mail. Strange thing is
    that I have 6 domains hosted on this server and I get this outcome by two of
    them. One is the domain I'm talking about and the other one is
    [email]something@machine.domainB.com[/email]. [email]something@domainB.com[/email] works as it should work
    and goes to the other server.

    I emptied my virtusertable and local-host-names files. I really don't know
    why this happens.
    ----- Original Message -----
    From: "Greg Barniskis" <nalists@scls.lib.wi.us>
    To: "Gerard Meijer" <gmeijer@palmweb.nl>
    Cc: <freebsd-questions@freebsd.org>
    Sent: Wednesday, February 23, 2005 8:09 PM
    Subject: Re: get local sendmail to use MX records

    > Gerard Meijer wrote:
    >> Hi Greg,
    >>
    >> I'm absolutely sure that this is not the case anymore. I removed
    >> everything.
    > ...
    >>> If I followed you correctly, "server B" *formerly* was the appropriate
    >>> end point for mail for "domain.com". If that is true, then on server B,
    >>> the sendmail config probably indicates that mail destined for domain.com
    >>> is delivered locally. Remove that indicator and it should revert to MX
    >>> lookup behavior to find the appropriate handler for the domain. There
    >>> may be multiple places in the sendmail config where domain.com is named
    >>> for different purposes. Hunt them all down and kill them.
    >
    > Nevertheless... the grep suggested by another poster seems completely
    > appropriate. There are few other explanations than "sendmail config
    > error". You restarted sendmail after the config change, right?
    >
    > Another test you could try would be to fire up nslookup on server B's
    > command line. If you ask there for the MX record in question, do you
    > actually get the right answer?
    >
    >
    > --
    > Greg Barniskis, Computer Systems Integrator
    > South Central Library System (SCLS)
    > Library Interchange Network (LINK)
    > <gregb at scls.lib.wi.us>, (608) 266-6348
    >
    > A: Because it reverses the natural flow of a dialog.
    > Q: Why is top posting undesirable when replying?
    > _______________________________________________
    > [email]freebsd-questions@freebsd.org[/email] mailing list
    > [url]http://lists.freebsd.org/mailman/listinfo/freebsd-questions[/url]
    > To unsubscribe, send any mail to
    > "freebsd-questions-unsubscribe@freebsd.org"
    >
    >
    Gerard Meijer Guest

  12. #11

    Default RE: get local sendmail to use MX records


    > -----Original Message-----
    > From: [email]owner-freebsd-questions@freebsd.org[/email]
    > [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Gerard Meijer
    > Sent: Wednesday, February 23, 2005 2:08 PM
    > To: Greg Barniskis
    > Cc: [email]freebsd-questions@freebsd.org[/email]
    > Subject: Re: get local sendmail to use MX records
    >
    >
    > I really don't understand it at all now.
    >
    >
    > I emptied my virtusertable and local-host-names files. I
    > really don't know
    > why this happens.
    Did you look in your mailertable file?

    You have domain.com listed in one of your sendmail config files, that is
    the only explanation. Or you have it in /etc/hosts. or in /etc/rc.conf.
    it's somewhere.

    It is problems like this is why when your running commercial servers
    that you create build sheets for each server. That is, you record on
    a separate document EVERY configuration step of any significance that
    you or anyone else does. Sorry you had to find this out the hard way.
    You probably have domain.com secreted in some hack you forgot that you
    did. Maybe one of these days when you do a nuke and repave you will
    remember to start a build sheet.

    Ted

    Ted Mittelstaedt Guest

  13. #12

    Default Re: get local sendmail to use MX records

    I'm 100% sure this is not the case and here is why. I figured something out.

    All my servers do the same thing. It has something to do with the reverse
    DNS pointers of some domains.

    For example. I have (another) server running with 20 domains under 4 ip
    addresses where I never ever touched sendmail or its configuration files. 4
    of the domains have a reverse DNS pointer to one of the 4 ips. Sendmail
    handles 16 domains well (= looks up MX records and delegates the mail to the
    right server) and tries to handle the mail of 4 domains itself. Needles to
    say that those 4 domains are the ones that have reverse pointers to the 4
    ips attached to that particular server.

    I tested this on 5 servers and its the same everywhere.

    I hope one of you knows what to do with this information. I spotted the
    problem now, but I don't know how to solve it. Clearly sendmail prefers a
    reverse pointer to a domain above looking up the MX records and using them,
    but how can I let it stop doing that?

    Thanks!
    ----- Original Message -----
    From: "Ted Mittelstaedt" <tedm@toybox.placo.com>
    To: "Gerard Meijer" <gmeijer@palmweb.nl>; "Greg Barniskis"
    <nalists@scls.lib.wi.us>
    Cc: <freebsd-questions@freebsd.org>
    Sent: Thursday, February 24, 2005 8:49 AM
    Subject: RE: get local sendmail to use MX records

    >
    >
    >> -----Original Message-----
    >> From: [email]owner-freebsd-questions@freebsd.org[/email]
    >> [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Gerard Meijer
    >> Sent: Wednesday, February 23, 2005 2:08 PM
    >> To: Greg Barniskis
    >> Cc: [email]freebsd-questions@freebsd.org[/email]
    >> Subject: Re: get local sendmail to use MX records
    >>
    >>
    >> I really don't understand it at all now.
    >>
    >>
    >> I emptied my virtusertable and local-host-names files. I
    >> really don't know
    >> why this happens.
    >
    > Did you look in your mailertable file?
    >
    > You have domain.com listed in one of your sendmail config files, that is
    > the only explanation. Or you have it in /etc/hosts. or in /etc/rc.conf.
    > it's somewhere.
    >
    > It is problems like this is why when your running commercial servers
    > that you create build sheets for each server. That is, you record on
    > a separate document EVERY configuration step of any significance that
    > you or anyone else does. Sorry you had to find this out the hard way.
    > You probably have domain.com secreted in some hack you forgot that you
    > did. Maybe one of these days when you do a nuke and repave you will
    > remember to start a build sheet.
    >
    > Ted
    >
    > _______________________________________________
    > [email]freebsd-questions@freebsd.org[/email] mailing list
    > [url]http://lists.freebsd.org/mailman/listinfo/freebsd-questions[/url]
    > To unsubscribe, send any mail to
    > "freebsd-questions-unsubscribe@freebsd.org"
    >
    >
    Gerard Meijer Guest

  14. #13

    Default Re: get local sendmail to use MX records

    Since everybody was sure that the problem was with my fault and something
    had to be wrong with my files, I feel that I have to post the solution, that
    I was send to me to a member from the comp.mail.sendmail newsgroup.

    It's really very easy when you know it (as always). As I was sure about, it
    didn't have anything to do with my local-host-names file(s) or another place
    where I accidentilly had left the domain name in.

    The solution was to put the following line in sendmail.cf:

    O DontProbeInterfaces=True

    As I said, very easy, but not if you don't know it. I hope it will become of
    someone someday.

    Thanks a lot to everybody who replied to my thread!

    Gerard
    ----- Original Message -----
    From: "Gerard Meijer" <gmeijer@palmweb.nl>
    To: "Ted Mittelstaedt" <tedm@toybox.placo.com>; "Greg Barniskis"
    <nalists@scls.lib.wi.us>
    Cc: <freebsd-questions@freebsd.org>
    Sent: Thursday, February 24, 2005 9:07 AM
    Subject: Re: get local sendmail to use MX records

    > I'm 100% sure this is not the case and here is why. I figured something
    > out.
    >
    > All my servers do the same thing. It has something to do with the reverse
    > DNS pointers of some domains.
    >
    > For example. I have (another) server running with 20 domains under 4 ip
    > addresses where I never ever touched sendmail or its configuration files.
    > 4 of the domains have a reverse DNS pointer to one of the 4 ips. Sendmail
    > handles 16 domains well (= looks up MX records and delegates the mail to
    > the right server) and tries to handle the mail of 4 domains itself.
    > Needles to say that those 4 domains are the ones that have reverse
    > pointers to the 4 ips attached to that particular server.
    >
    > I tested this on 5 servers and its the same everywhere.
    >
    > I hope one of you knows what to do with this information. I spotted the
    > problem now, but I don't know how to solve it. Clearly sendmail prefers a
    > reverse pointer to a domain above looking up the MX records and using
    > them, but how can I let it stop doing that?
    >
    > Thanks!
    > ----- Original Message -----
    > From: "Ted Mittelstaedt" <tedm@toybox.placo.com>
    > To: "Gerard Meijer" <gmeijer@palmweb.nl>; "Greg Barniskis"
    > <nalists@scls.lib.wi.us>
    > Cc: <freebsd-questions@freebsd.org>
    > Sent: Thursday, February 24, 2005 8:49 AM
    > Subject: RE: get local sendmail to use MX records
    >
    >
    >>
    >>
    >>> -----Original Message-----
    >>> From: [email]owner-freebsd-questions@freebsd.org[/email]
    >>> [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Gerard Meijer
    >>> Sent: Wednesday, February 23, 2005 2:08 PM
    >>> To: Greg Barniskis
    >>> Cc: [email]freebsd-questions@freebsd.org[/email]
    >>> Subject: Re: get local sendmail to use MX records
    >>>
    >>>
    >>> I really don't understand it at all now.
    >>>
    >>>
    >>> I emptied my virtusertable and local-host-names files. I
    >>> really don't know
    >>> why this happens.
    >>
    >> Did you look in your mailertable file?
    >>
    >> You have domain.com listed in one of your sendmail config files, that is
    >> the only explanation. Or you have it in /etc/hosts. or in /etc/rc.conf.
    >> it's somewhere.
    >>
    >> It is problems like this is why when your running commercial servers
    >> that you create build sheets for each server. That is, you record on
    >> a separate document EVERY configuration step of any significance that
    >> you or anyone else does. Sorry you had to find this out the hard way.
    >> You probably have domain.com secreted in some hack you forgot that you
    >> did. Maybe one of these days when you do a nuke and repave you will
    >> remember to start a build sheet.
    >>
    >> Ted
    >>
    >> _______________________________________________
    >> [email]freebsd-questions@freebsd.org[/email] mailing list
    >> [url]http://lists.freebsd.org/mailman/listinfo/freebsd-questions[/url]
    >> To unsubscribe, send any mail to
    >> "freebsd-questions-unsubscribe@freebsd.org"
    >>
    >>
    >
    > _______________________________________________
    > [email]freebsd-questions@freebsd.org[/email] mailing list
    > [url]http://lists.freebsd.org/mailman/listinfo/freebsd-questions[/url]
    > To unsubscribe, send any mail to
    > "freebsd-questions-unsubscribe@freebsd.org"
    >
    Gerard Meijer Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139