sendmail and MX records when mail server is not on web host

前端 未结 7 1283
一生所求
一生所求 2020-12-16 08:12

This is a problem I\'m sure is easy to fix, but I\'ve been banging my head on it all day.

I\'m developing a new web site for a client. The web site resides at (this

7条回答
  •  庸人自扰
    2020-12-16 08:25

    Sendmail by default guesses list of local email domains. It can be turned off using the following line in your sendmail.mc file:

    define(`confDONT_PROBE_INTERFACES',`True')
    

    As root list local email domains before and after the change using:

    echo '$=w' | sendmail -Am -bt
    

    You will see which domains should be added "manually" to (usually) /etc/mail/local-host-names file after disabling auto-guessing.

    After changing sendmail.mc:

    1. Generate/compile new sendmail.cf file
    2. Restart sendmail daemon (or send HUP signal)

提交回复
热议问题