Sendmail sender email setting command

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.