The sendmail sender's mailbox setting command has previously encountered the method of setting the sender's suffix. This migration server forgot to record 1 from the beginning: the first method is to modify/etc/hosts, it is said that sendmail uses the local domain name set in hosts. The solution is as follows: [html] 127.0.0.1 aizher.com result: unsuccessful 2: Method 2:/etc/mail/acess, added the [html] Connect: aizher.com RELAY result: the result is unsuccessful, but it is still in vim/etc/mail/local-host-names. Add the following [html] aizher.com 3: method 3, modify [html] to edit/etc/mail/sendmail. mc: LOCAL_DOMAIN ('localhost. localdomain ') Change dnl to LOCAL_DOMAIN ('youdomain. com ') dnl and then m4 sendmail. mc> sendmail. cf service sendmail restart result, path does not exist, failure [html] m4: sendmail. mc: 10: cannot open '/usr/share/sendmail-cf/m4/cf. m4 ': No such file or directory 4: Method 4: Modify the host name. Remember to modify it. The host name is related to the email sent by sendmail, vim/etc/sysconfig/network [html] NETWORKING = yes HOSTNAME = aizher.com GATEWAY = 219.234.xx.xx run the following command to restart the network service/etc/init. d/network restart run the following command to restart sendmail/etc/rc. d/init. d/sendmail restart result: successful, the user name has been logged in to send an email 5: The fifth method: directly in php. ini modification, [html] sendmail_path =/usr/sbin/sendmail-f admin@aizher.com-t-I at this time, it is to the admin@aizher.com method to send e-mail, get done