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

前端 未结 7 1297
一生所求
一生所求 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:21

    Edit the tsm.cf file (in /etc/mail/ or similar) to include

    FEATURE(relay_entire_domain) 
    

    between the DOMAIN() and MAILER() lines. Since you're editing the file, you may want to also improve security with

    define(`confPRIVACY_FLAGS',``noexpn,novrfy'')
    

    After changing the tsm.cf file (or any sendmail config file), restart or SIGHUP the sendmail process.

    This change is necessary because the WWW and MX servers for the domain do not exist in the same process space; this FEATURE triggers sendmail to process messages for the domain using it's external delivery mechanism.

    The edited portion of the tsm.cf file should look similar to this:

    DOMAIN(website.com)dnl
    FEATURE(relay_entire_domain)dnl
    define(`confPRIVACY_FLAGS',``noexpn,novrfy'')dnl
    MAILER(smtp)dnl
    MAILER(procmail)dnl
    

提交回复
热议问题