Sendmail not sending to domain of machines hostname

Multi tool use
Multi tool use

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I hust recently set up reverse DNS on our system and set the hostname of the server to mydomain.com. Since I've done this -- Sendmail will send to any domain except mydomain.com.



I am assuming that it thinks that the mail is local, and thus not sending it "out" but I am not sure.



Here is an example of a log for a message that was sent, and received correctly:



Oct 29 16:29:10 mydomain sendmail[1421]: w9TLTA1w001421: from=zak, size=389, class=0, nrcpts=1, msgid=<201810292129.w9TLTA1w001421@mydomain.com>, relay=zak@localhost
Oct 29 16:29:10 mydomain sm-mta[1422]: w9TLTABl001422: from=<zak@mydomain.com>, size=565, class=0, nrcpts=1, msgid=<201810292129.w9TLTA1w001421@mydomain.com>, proto=ESMTP, daemon=MTA-v4, relay=mydomain.com [127.0.0.1]
Oct 29 16:29:10 mydomain sendmail[1421]: w9TLTA1w001421: to=testemail@gmail.com, ctladdr=zak (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30389, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (w9TLTABl001422 Message accepted for delivery)
Oct 29 16:29:11 mydomain sm-mta[1424]: STARTTLS=client, relay=gmail-smtp-in.l.google.com., version=TLSv1.2, verify=FAIL, cipher=ECDHE-RSA-AES128-GCM-SHA256, bits=128/128
Oct 29 16:29:11 mydomain sm-mta[1424]: w9TLTABl001422: to=<testemail@gmail.com>, ctladdr=<zak@mydomain.com> (1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120565, relay=gmail-smtp-in.l.google.com. [173.194.195.26], dsn=2.0.0, stat=Sent (OK 1540848551 k3-v6si10178885ite.86 - gsmtp)


Here is an example of an email that was never received on the other side:



Oct 29 16:24:31 mydomain sendmail[544]: w9TLOV8v000544: from=zak, size=375, class=0, nrcpts=1, msgid=<201810292124.w9TLOV8v000544@mydomain.com>, relay=root@localhost
Oct 29 16:24:31 mydomain sm-mta[545]: w9TLOVxv000545: from=<zak@mydomain.com>, size=552, class=0, nrcpts=1, msgid=<201810292124.w9TLOV8v000544@mydomain.com>, proto=ESMTP, daemon=MTA-v4, relay=mydomain.com [127.0.0.1]
Oct 29 16:24:31 mydomain sendmail[544]: w9TLOV8v000544: to=zak@mydomain.com, ctladdr=zak (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30375, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (w9TLOVxv000545 Message accepted for delivery)
Oct 29 16:24:31 mydomain sm-mta[546]: w9TLOVxv000545: to=<zak@mydomain.com>, ctladdr=<zak@mydomain com> (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30762, dsn=2.0.0, stat=Sent


Here is my sendmail.mc



define(`_USE_ETC_MAIL_')dnl
include(`/usr/share/sendmail/cf/m4/cf.m4')dnl
VERSIONID(`$Id: sendmail.mc, v 8.15.2-3 2015-12-10 18:02:49 cowboy Exp $')
OSTYPE(`debian')dnl
DOMAIN(`debian-mta')dnl
dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE
undefine(`confHOST_STATUS_DIRECTORY')dnl #DAEMON_HOSTSTATS=
dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE
dnl #
dnl # General defines
dnl #
dnl # SAFE_FILE_ENV: [undefined] If set, sendmail will do a chroot()
dnl # into this directory before writing files.
dnl # If *all* your user accounts are under /home then use that
dnl # instead - it will prevent any writes outside of /home !
dnl # define(`confSAFE_FILE_ENV', `')dnl
dnl #
dnl # Daemon options - restrict to servicing LOCALHOST ONLY !!!
dnl # Remove `, Addr=' clauses to receive from any interface
dnl # If you want to support IPv6, switch the commented/uncommentd lines
dnl #
FEATURE(`no_default_msa')dnl
dnl DAEMON_OPTIONS(`Family=inet6, Name=MTA-v6, Port=smtp, Addr=::1')dnl
DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp')dnl
dnl DAEMON_OPTIONS(`Family=inet6, Name=MSP-v6, Port=submission, M=Ea, Addr=::1')dnl
DAEMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission, M=Ea, Addr=127.0.0.1')dnl
dnl #
dnl # Be somewhat anal in what we allow
define(`confPRIVACY_FLAGS',dnl
`needmailhelo,needexpnhelo,needvrfyhelo,restrictqrun,restrictexpand,nobodyreturn,authwarnings')dnl
dnl #
dnl # Define connection throttling and window length
define(`confCONNECTION_RATE_THROTTLE', `15')dnl
define(`confCONNECTION_RATE_WINDOW_SIZE',`10m')dnl
dnl #
dnl # Features
dnl #
dnl # use /etc/mail/local-host-names
FEATURE(`use_cw_file')dnl
dnl #
dnl # The access db is the basis for most of sendmail's checking
FEATURE(`access_db', , `skip')dnl
dnl #
dnl # The greet_pause feature stops some automail bots - but check the
dnl # provided access db for details on excluding localhosts...
FEATURE(`greet_pause', `1000')dnl 1 seconds
dnl #
dnl # Delay_checks allows sender<->recipient checking
FEATURE(`delay_checks', `friend', `n')dnl
dnl #
dnl # If we get too many bad recipients, slow things down...
define(`confBAD_RCPT_THROTTLE',`3')dnl
dnl #
dnl # Stop connections that overflow our concurrent and time connection rates
FEATURE(`conncontrol', `nodelay', `terminate')dnl
FEATURE(`ratecontrol', `nodelay', `terminate')dnl
dnl #
dnl # If you're on a dialup link, you should enable this - so sendmail
dnl # will not bring up the link (it will queue mail for later)
dnl define(`confCON_EXPENSIVE',`True')dnl
dnl #
dnl # Dialup/LAN connection overrides
dnl #
include(`/etc/mail/m4/dialup.m4')dnl
include(`/etc/mail/m4/provider.m4')dnl
dnl #
dnl # Default Mailer setup
MAILER_DEFINITIONS
MAILER(`local')dnl
MAILER(`smtp')dnl
define(`MAIL_HUB`, 'mydomain.com.')dnl
define(`LOCAL_RELAY`, 'mydomain.com.')dnl


Is there anything glaring as to why sendmail will send to every domain except mydomain.com? We use Rackspace for mydomain.coms email. If I do a dig MX for mydomain.com, the MX records come up correctly as well. I am stumped!









share

























    up vote
    0
    down vote

    favorite












    I hust recently set up reverse DNS on our system and set the hostname of the server to mydomain.com. Since I've done this -- Sendmail will send to any domain except mydomain.com.



    I am assuming that it thinks that the mail is local, and thus not sending it "out" but I am not sure.



    Here is an example of a log for a message that was sent, and received correctly:



    Oct 29 16:29:10 mydomain sendmail[1421]: w9TLTA1w001421: from=zak, size=389, class=0, nrcpts=1, msgid=<201810292129.w9TLTA1w001421@mydomain.com>, relay=zak@localhost
    Oct 29 16:29:10 mydomain sm-mta[1422]: w9TLTABl001422: from=<zak@mydomain.com>, size=565, class=0, nrcpts=1, msgid=<201810292129.w9TLTA1w001421@mydomain.com>, proto=ESMTP, daemon=MTA-v4, relay=mydomain.com [127.0.0.1]
    Oct 29 16:29:10 mydomain sendmail[1421]: w9TLTA1w001421: to=testemail@gmail.com, ctladdr=zak (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30389, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (w9TLTABl001422 Message accepted for delivery)
    Oct 29 16:29:11 mydomain sm-mta[1424]: STARTTLS=client, relay=gmail-smtp-in.l.google.com., version=TLSv1.2, verify=FAIL, cipher=ECDHE-RSA-AES128-GCM-SHA256, bits=128/128
    Oct 29 16:29:11 mydomain sm-mta[1424]: w9TLTABl001422: to=<testemail@gmail.com>, ctladdr=<zak@mydomain.com> (1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120565, relay=gmail-smtp-in.l.google.com. [173.194.195.26], dsn=2.0.0, stat=Sent (OK 1540848551 k3-v6si10178885ite.86 - gsmtp)


    Here is an example of an email that was never received on the other side:



    Oct 29 16:24:31 mydomain sendmail[544]: w9TLOV8v000544: from=zak, size=375, class=0, nrcpts=1, msgid=<201810292124.w9TLOV8v000544@mydomain.com>, relay=root@localhost
    Oct 29 16:24:31 mydomain sm-mta[545]: w9TLOVxv000545: from=<zak@mydomain.com>, size=552, class=0, nrcpts=1, msgid=<201810292124.w9TLOV8v000544@mydomain.com>, proto=ESMTP, daemon=MTA-v4, relay=mydomain.com [127.0.0.1]
    Oct 29 16:24:31 mydomain sendmail[544]: w9TLOV8v000544: to=zak@mydomain.com, ctladdr=zak (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30375, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (w9TLOVxv000545 Message accepted for delivery)
    Oct 29 16:24:31 mydomain sm-mta[546]: w9TLOVxv000545: to=<zak@mydomain.com>, ctladdr=<zak@mydomain com> (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30762, dsn=2.0.0, stat=Sent


    Here is my sendmail.mc



    define(`_USE_ETC_MAIL_')dnl
    include(`/usr/share/sendmail/cf/m4/cf.m4')dnl
    VERSIONID(`$Id: sendmail.mc, v 8.15.2-3 2015-12-10 18:02:49 cowboy Exp $')
    OSTYPE(`debian')dnl
    DOMAIN(`debian-mta')dnl
    dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE
    undefine(`confHOST_STATUS_DIRECTORY')dnl #DAEMON_HOSTSTATS=
    dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE
    dnl #
    dnl # General defines
    dnl #
    dnl # SAFE_FILE_ENV: [undefined] If set, sendmail will do a chroot()
    dnl # into this directory before writing files.
    dnl # If *all* your user accounts are under /home then use that
    dnl # instead - it will prevent any writes outside of /home !
    dnl # define(`confSAFE_FILE_ENV', `')dnl
    dnl #
    dnl # Daemon options - restrict to servicing LOCALHOST ONLY !!!
    dnl # Remove `, Addr=' clauses to receive from any interface
    dnl # If you want to support IPv6, switch the commented/uncommentd lines
    dnl #
    FEATURE(`no_default_msa')dnl
    dnl DAEMON_OPTIONS(`Family=inet6, Name=MTA-v6, Port=smtp, Addr=::1')dnl
    DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp')dnl
    dnl DAEMON_OPTIONS(`Family=inet6, Name=MSP-v6, Port=submission, M=Ea, Addr=::1')dnl
    DAEMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission, M=Ea, Addr=127.0.0.1')dnl
    dnl #
    dnl # Be somewhat anal in what we allow
    define(`confPRIVACY_FLAGS',dnl
    `needmailhelo,needexpnhelo,needvrfyhelo,restrictqrun,restrictexpand,nobodyreturn,authwarnings')dnl
    dnl #
    dnl # Define connection throttling and window length
    define(`confCONNECTION_RATE_THROTTLE', `15')dnl
    define(`confCONNECTION_RATE_WINDOW_SIZE',`10m')dnl
    dnl #
    dnl # Features
    dnl #
    dnl # use /etc/mail/local-host-names
    FEATURE(`use_cw_file')dnl
    dnl #
    dnl # The access db is the basis for most of sendmail's checking
    FEATURE(`access_db', , `skip')dnl
    dnl #
    dnl # The greet_pause feature stops some automail bots - but check the
    dnl # provided access db for details on excluding localhosts...
    FEATURE(`greet_pause', `1000')dnl 1 seconds
    dnl #
    dnl # Delay_checks allows sender<->recipient checking
    FEATURE(`delay_checks', `friend', `n')dnl
    dnl #
    dnl # If we get too many bad recipients, slow things down...
    define(`confBAD_RCPT_THROTTLE',`3')dnl
    dnl #
    dnl # Stop connections that overflow our concurrent and time connection rates
    FEATURE(`conncontrol', `nodelay', `terminate')dnl
    FEATURE(`ratecontrol', `nodelay', `terminate')dnl
    dnl #
    dnl # If you're on a dialup link, you should enable this - so sendmail
    dnl # will not bring up the link (it will queue mail for later)
    dnl define(`confCON_EXPENSIVE',`True')dnl
    dnl #
    dnl # Dialup/LAN connection overrides
    dnl #
    include(`/etc/mail/m4/dialup.m4')dnl
    include(`/etc/mail/m4/provider.m4')dnl
    dnl #
    dnl # Default Mailer setup
    MAILER_DEFINITIONS
    MAILER(`local')dnl
    MAILER(`smtp')dnl
    define(`MAIL_HUB`, 'mydomain.com.')dnl
    define(`LOCAL_RELAY`, 'mydomain.com.')dnl


    Is there anything glaring as to why sendmail will send to every domain except mydomain.com? We use Rackspace for mydomain.coms email. If I do a dig MX for mydomain.com, the MX records come up correctly as well. I am stumped!









    share























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I hust recently set up reverse DNS on our system and set the hostname of the server to mydomain.com. Since I've done this -- Sendmail will send to any domain except mydomain.com.



      I am assuming that it thinks that the mail is local, and thus not sending it "out" but I am not sure.



      Here is an example of a log for a message that was sent, and received correctly:



      Oct 29 16:29:10 mydomain sendmail[1421]: w9TLTA1w001421: from=zak, size=389, class=0, nrcpts=1, msgid=<201810292129.w9TLTA1w001421@mydomain.com>, relay=zak@localhost
      Oct 29 16:29:10 mydomain sm-mta[1422]: w9TLTABl001422: from=<zak@mydomain.com>, size=565, class=0, nrcpts=1, msgid=<201810292129.w9TLTA1w001421@mydomain.com>, proto=ESMTP, daemon=MTA-v4, relay=mydomain.com [127.0.0.1]
      Oct 29 16:29:10 mydomain sendmail[1421]: w9TLTA1w001421: to=testemail@gmail.com, ctladdr=zak (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30389, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (w9TLTABl001422 Message accepted for delivery)
      Oct 29 16:29:11 mydomain sm-mta[1424]: STARTTLS=client, relay=gmail-smtp-in.l.google.com., version=TLSv1.2, verify=FAIL, cipher=ECDHE-RSA-AES128-GCM-SHA256, bits=128/128
      Oct 29 16:29:11 mydomain sm-mta[1424]: w9TLTABl001422: to=<testemail@gmail.com>, ctladdr=<zak@mydomain.com> (1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120565, relay=gmail-smtp-in.l.google.com. [173.194.195.26], dsn=2.0.0, stat=Sent (OK 1540848551 k3-v6si10178885ite.86 - gsmtp)


      Here is an example of an email that was never received on the other side:



      Oct 29 16:24:31 mydomain sendmail[544]: w9TLOV8v000544: from=zak, size=375, class=0, nrcpts=1, msgid=<201810292124.w9TLOV8v000544@mydomain.com>, relay=root@localhost
      Oct 29 16:24:31 mydomain sm-mta[545]: w9TLOVxv000545: from=<zak@mydomain.com>, size=552, class=0, nrcpts=1, msgid=<201810292124.w9TLOV8v000544@mydomain.com>, proto=ESMTP, daemon=MTA-v4, relay=mydomain.com [127.0.0.1]
      Oct 29 16:24:31 mydomain sendmail[544]: w9TLOV8v000544: to=zak@mydomain.com, ctladdr=zak (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30375, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (w9TLOVxv000545 Message accepted for delivery)
      Oct 29 16:24:31 mydomain sm-mta[546]: w9TLOVxv000545: to=<zak@mydomain.com>, ctladdr=<zak@mydomain com> (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30762, dsn=2.0.0, stat=Sent


      Here is my sendmail.mc



      define(`_USE_ETC_MAIL_')dnl
      include(`/usr/share/sendmail/cf/m4/cf.m4')dnl
      VERSIONID(`$Id: sendmail.mc, v 8.15.2-3 2015-12-10 18:02:49 cowboy Exp $')
      OSTYPE(`debian')dnl
      DOMAIN(`debian-mta')dnl
      dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE
      undefine(`confHOST_STATUS_DIRECTORY')dnl #DAEMON_HOSTSTATS=
      dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE
      dnl #
      dnl # General defines
      dnl #
      dnl # SAFE_FILE_ENV: [undefined] If set, sendmail will do a chroot()
      dnl # into this directory before writing files.
      dnl # If *all* your user accounts are under /home then use that
      dnl # instead - it will prevent any writes outside of /home !
      dnl # define(`confSAFE_FILE_ENV', `')dnl
      dnl #
      dnl # Daemon options - restrict to servicing LOCALHOST ONLY !!!
      dnl # Remove `, Addr=' clauses to receive from any interface
      dnl # If you want to support IPv6, switch the commented/uncommentd lines
      dnl #
      FEATURE(`no_default_msa')dnl
      dnl DAEMON_OPTIONS(`Family=inet6, Name=MTA-v6, Port=smtp, Addr=::1')dnl
      DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp')dnl
      dnl DAEMON_OPTIONS(`Family=inet6, Name=MSP-v6, Port=submission, M=Ea, Addr=::1')dnl
      DAEMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission, M=Ea, Addr=127.0.0.1')dnl
      dnl #
      dnl # Be somewhat anal in what we allow
      define(`confPRIVACY_FLAGS',dnl
      `needmailhelo,needexpnhelo,needvrfyhelo,restrictqrun,restrictexpand,nobodyreturn,authwarnings')dnl
      dnl #
      dnl # Define connection throttling and window length
      define(`confCONNECTION_RATE_THROTTLE', `15')dnl
      define(`confCONNECTION_RATE_WINDOW_SIZE',`10m')dnl
      dnl #
      dnl # Features
      dnl #
      dnl # use /etc/mail/local-host-names
      FEATURE(`use_cw_file')dnl
      dnl #
      dnl # The access db is the basis for most of sendmail's checking
      FEATURE(`access_db', , `skip')dnl
      dnl #
      dnl # The greet_pause feature stops some automail bots - but check the
      dnl # provided access db for details on excluding localhosts...
      FEATURE(`greet_pause', `1000')dnl 1 seconds
      dnl #
      dnl # Delay_checks allows sender<->recipient checking
      FEATURE(`delay_checks', `friend', `n')dnl
      dnl #
      dnl # If we get too many bad recipients, slow things down...
      define(`confBAD_RCPT_THROTTLE',`3')dnl
      dnl #
      dnl # Stop connections that overflow our concurrent and time connection rates
      FEATURE(`conncontrol', `nodelay', `terminate')dnl
      FEATURE(`ratecontrol', `nodelay', `terminate')dnl
      dnl #
      dnl # If you're on a dialup link, you should enable this - so sendmail
      dnl # will not bring up the link (it will queue mail for later)
      dnl define(`confCON_EXPENSIVE',`True')dnl
      dnl #
      dnl # Dialup/LAN connection overrides
      dnl #
      include(`/etc/mail/m4/dialup.m4')dnl
      include(`/etc/mail/m4/provider.m4')dnl
      dnl #
      dnl # Default Mailer setup
      MAILER_DEFINITIONS
      MAILER(`local')dnl
      MAILER(`smtp')dnl
      define(`MAIL_HUB`, 'mydomain.com.')dnl
      define(`LOCAL_RELAY`, 'mydomain.com.')dnl


      Is there anything glaring as to why sendmail will send to every domain except mydomain.com? We use Rackspace for mydomain.coms email. If I do a dig MX for mydomain.com, the MX records come up correctly as well. I am stumped!









      share













      I hust recently set up reverse DNS on our system and set the hostname of the server to mydomain.com. Since I've done this -- Sendmail will send to any domain except mydomain.com.



      I am assuming that it thinks that the mail is local, and thus not sending it "out" but I am not sure.



      Here is an example of a log for a message that was sent, and received correctly:



      Oct 29 16:29:10 mydomain sendmail[1421]: w9TLTA1w001421: from=zak, size=389, class=0, nrcpts=1, msgid=<201810292129.w9TLTA1w001421@mydomain.com>, relay=zak@localhost
      Oct 29 16:29:10 mydomain sm-mta[1422]: w9TLTABl001422: from=<zak@mydomain.com>, size=565, class=0, nrcpts=1, msgid=<201810292129.w9TLTA1w001421@mydomain.com>, proto=ESMTP, daemon=MTA-v4, relay=mydomain.com [127.0.0.1]
      Oct 29 16:29:10 mydomain sendmail[1421]: w9TLTA1w001421: to=testemail@gmail.com, ctladdr=zak (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30389, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (w9TLTABl001422 Message accepted for delivery)
      Oct 29 16:29:11 mydomain sm-mta[1424]: STARTTLS=client, relay=gmail-smtp-in.l.google.com., version=TLSv1.2, verify=FAIL, cipher=ECDHE-RSA-AES128-GCM-SHA256, bits=128/128
      Oct 29 16:29:11 mydomain sm-mta[1424]: w9TLTABl001422: to=<testemail@gmail.com>, ctladdr=<zak@mydomain.com> (1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120565, relay=gmail-smtp-in.l.google.com. [173.194.195.26], dsn=2.0.0, stat=Sent (OK 1540848551 k3-v6si10178885ite.86 - gsmtp)


      Here is an example of an email that was never received on the other side:



      Oct 29 16:24:31 mydomain sendmail[544]: w9TLOV8v000544: from=zak, size=375, class=0, nrcpts=1, msgid=<201810292124.w9TLOV8v000544@mydomain.com>, relay=root@localhost
      Oct 29 16:24:31 mydomain sm-mta[545]: w9TLOVxv000545: from=<zak@mydomain.com>, size=552, class=0, nrcpts=1, msgid=<201810292124.w9TLOV8v000544@mydomain.com>, proto=ESMTP, daemon=MTA-v4, relay=mydomain.com [127.0.0.1]
      Oct 29 16:24:31 mydomain sendmail[544]: w9TLOV8v000544: to=zak@mydomain.com, ctladdr=zak (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30375, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (w9TLOVxv000545 Message accepted for delivery)
      Oct 29 16:24:31 mydomain sm-mta[546]: w9TLOVxv000545: to=<zak@mydomain.com>, ctladdr=<zak@mydomain com> (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30762, dsn=2.0.0, stat=Sent


      Here is my sendmail.mc



      define(`_USE_ETC_MAIL_')dnl
      include(`/usr/share/sendmail/cf/m4/cf.m4')dnl
      VERSIONID(`$Id: sendmail.mc, v 8.15.2-3 2015-12-10 18:02:49 cowboy Exp $')
      OSTYPE(`debian')dnl
      DOMAIN(`debian-mta')dnl
      dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE
      undefine(`confHOST_STATUS_DIRECTORY')dnl #DAEMON_HOSTSTATS=
      dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE
      dnl #
      dnl # General defines
      dnl #
      dnl # SAFE_FILE_ENV: [undefined] If set, sendmail will do a chroot()
      dnl # into this directory before writing files.
      dnl # If *all* your user accounts are under /home then use that
      dnl # instead - it will prevent any writes outside of /home !
      dnl # define(`confSAFE_FILE_ENV', `')dnl
      dnl #
      dnl # Daemon options - restrict to servicing LOCALHOST ONLY !!!
      dnl # Remove `, Addr=' clauses to receive from any interface
      dnl # If you want to support IPv6, switch the commented/uncommentd lines
      dnl #
      FEATURE(`no_default_msa')dnl
      dnl DAEMON_OPTIONS(`Family=inet6, Name=MTA-v6, Port=smtp, Addr=::1')dnl
      DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp')dnl
      dnl DAEMON_OPTIONS(`Family=inet6, Name=MSP-v6, Port=submission, M=Ea, Addr=::1')dnl
      DAEMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission, M=Ea, Addr=127.0.0.1')dnl
      dnl #
      dnl # Be somewhat anal in what we allow
      define(`confPRIVACY_FLAGS',dnl
      `needmailhelo,needexpnhelo,needvrfyhelo,restrictqrun,restrictexpand,nobodyreturn,authwarnings')dnl
      dnl #
      dnl # Define connection throttling and window length
      define(`confCONNECTION_RATE_THROTTLE', `15')dnl
      define(`confCONNECTION_RATE_WINDOW_SIZE',`10m')dnl
      dnl #
      dnl # Features
      dnl #
      dnl # use /etc/mail/local-host-names
      FEATURE(`use_cw_file')dnl
      dnl #
      dnl # The access db is the basis for most of sendmail's checking
      FEATURE(`access_db', , `skip')dnl
      dnl #
      dnl # The greet_pause feature stops some automail bots - but check the
      dnl # provided access db for details on excluding localhosts...
      FEATURE(`greet_pause', `1000')dnl 1 seconds
      dnl #
      dnl # Delay_checks allows sender<->recipient checking
      FEATURE(`delay_checks', `friend', `n')dnl
      dnl #
      dnl # If we get too many bad recipients, slow things down...
      define(`confBAD_RCPT_THROTTLE',`3')dnl
      dnl #
      dnl # Stop connections that overflow our concurrent and time connection rates
      FEATURE(`conncontrol', `nodelay', `terminate')dnl
      FEATURE(`ratecontrol', `nodelay', `terminate')dnl
      dnl #
      dnl # If you're on a dialup link, you should enable this - so sendmail
      dnl # will not bring up the link (it will queue mail for later)
      dnl define(`confCON_EXPENSIVE',`True')dnl
      dnl #
      dnl # Dialup/LAN connection overrides
      dnl #
      include(`/etc/mail/m4/dialup.m4')dnl
      include(`/etc/mail/m4/provider.m4')dnl
      dnl #
      dnl # Default Mailer setup
      MAILER_DEFINITIONS
      MAILER(`local')dnl
      MAILER(`smtp')dnl
      define(`MAIL_HUB`, 'mydomain.com.')dnl
      define(`LOCAL_RELAY`, 'mydomain.com.')dnl


      Is there anything glaring as to why sendmail will send to every domain except mydomain.com? We use Rackspace for mydomain.coms email. If I do a dig MX for mydomain.com, the MX records come up correctly as well. I am stumped!







      sendmail





      share












      share










      share



      share










      asked 9 mins ago









      Zak

      12818




      12818

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f478537%2fsendmail-not-sending-to-domain-of-machines-hostname%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f478537%2fsendmail-not-sending-to-domain-of-machines-hostname%23new-answer', 'question_page');

          );

          Post as a guest













































































          SKiMa P3GsjV5Y JUJTXYU4Nyq9xEuBH9nFmMqjqlj,1RJpL HK MIQ,NYSbFLOxS3NVZw5FnyFNPK3zDOWs,rbDnw
          nmZWo7wTz8uVGk38R,PW PUg791jZL,L9CZJlWm1CAcD61fBY1HiOZKJ,88kLHk8 2w80JX,U5qyHEzt,5 4kwMwx,ld14UUln6ybaRU4u

          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          How many registers does an x86_64 CPU actually have?

          Displaying single band from multi-band raster using QGIS