625Chapter 24Running a Mail ServerThe following lines cause (Web and email hosting)

625Chapter 24Running a Mail ServerThe following lines cause sendmail to rewrite the domain in the return path ofall outgoing messages: FEATURE(`always_add_domain )dnlMASQUERADE_AS(`mail.example.com )dnlFEATURE(`allmasquerade )dnlFEATURE(`masquerade_envelope )dnlThis is often not desirable, so comment out these lines by adding dnl(including the space after dnl) to the front of each line: dnl FEATURE(`always_add_domain )dnldnl MASQUERADE_AS(`mail.example.com )dnldnl FEATURE(`allmasquerade )dnldnl FEATURE(`masquerade_envelope )dnlThe next two lines tell sendmail what forms of mail delivery it should handle. They may be missing from your configuration by default, so make sure theyare added toward the end of the file. MAILER(local)dnlMAILER(smtp)dnlThe following lines tell sendmail how to communicate with the milter pro- cesses. The INPUT_MAIL_FILTERones define the connection parameters forthe individual milters, and the definestatement specifies the order in whichthey will be processed. INPUT_MAIL_FILTER(`spamassassin , `S=local:/var/run/sendmail/spamass.sock, F=, T=S:4m;R:4m;E:10m )dnlINPUT_MAIL_FILTER(`clamav , `S=local:/var/run/clamav/clamav-milter.ctl, F=, T=S:4m;R:4m )dnldefine(`confINPUT_MAIL_FILTERS , `spamassassin,clamav )dnlThe F=option tells sendmail to continue message processing even if it is unable tocommunicate with the milter. Replace it with F=Tif you need to have messagestemporarily fail in such an event (but make sure you watch your mail logs closelywhen doing so). 9.Make sure that any domains for which your server will be accepting mail arelisted, one per line, in /etc/mail/local-host-names. 10.Regenerate the sendmail configuration file: # sendmailconfigConfigure sendmail with the existing /etc/mail/sendmail.conf? [Y]y[…] Configure sendmail with the existing /etc/mail/sendmail.mc? [Y]y[…] Reload the running sendmail now with the new configuration? [Y]yNote33_
We would like to recommend you tested and proved virtual web hosting services, which you will surely find to be of great quality.

Leave a Reply