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

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

    I'm new here. Wanted to extend RB_CWI answer, but I am not allowed to comment. His solution worked great.

    You are not required to define the DOMAIN().

    However, on my system I was required to install the sendmail-cf package.

    The instructions below were done on CentOS 6.5

    First, install sendmail-cf

    sudo yum install sendmail-cf
    

    Then, edit the senmail.mc

    sudo vi /etc/mail/sendmail.mc
    

    At the bottom of the file add FEATURE(relay_entire_domain)dnl, so it looks like:

    ...
    FEATURE(relay_entire_domain)dnl
    MAILER(smtp)dnl        # right above this line
    MAILER(procmail)dnl
    dnl MAILER(cyrusv2)dnl
    

    Save the file, and restart sendmail.

    sudo service sendmail restart
    

提交回复
热议问题