Setting up sendmail using an ISP for SMTP outgoing mail and POP3 retrieval
Fedora Core 5 on Toshiba Satelite 4100xDVD
Configuration Notes by Jim Cota
Last updated January 01 2007
First of all, sendmail-cp package is needed to make changes to the sendmail configuration. Without sendmail-cp, you will get the error:
sendmail.mc:10: m4: Cannot open /usr/share/sendmail-cf/m4/cf.m4: No such file or directory
Add the following line to /etc/mail/sendmail.mc:
define(`SMART_HOST',`insert_your_isp_smtp_here')dnl
Pay special attention to the special syntax, like the use of ` for the leading single quote and the use of ' for the closing quote. Note that there are no white spaces and please replace insert_your_isp_smtp_here with the appropriate URL.
Add or uncomment the line:
MASQUERADE_DOMAIN(example.com)dnl
Replace "example.com" with your ISPs domain.
Note that "dnl" at the beginnning of a line comments it out.
Add or uncomment the lines:
FEATURE(allmasquerade)dnl
FEATURE(masquerade_envelope)dnl
To comple sendmail.mc, use the following command:
# m4 m4/cf.m4 sendmail.mc > sendmail.cf
Back to GNU/Linux
