Chapter 24 . Running a Mail Server 625 (Abyss web server)

Chapter 24 . Running a Mail Server 625 The following lines cause sendmail to rewrite the domain in the return path of all outgoing messages: FEATURE(`always_add_domain )dnl MASQUERADE_AS(`mail.example.com )dnl FEATURE(`allmasquerade )dnl FEATURE(`masquerade_envelope )dnl This 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 )dnl dnl MASQUERADE_AS(`mail.example.com )dnl dnl FEATURE(`allmasquerade )dnl dnl FEATURE(`masquerade_envelope )dnl The 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 they are added toward the end of the file. MAILER(local)dnl MAILER(smtp)dnl The following lines tell sendmail how to communicate with the milter processes. The INPUT_MAIL_FILTER ones define the connection parameters for the individual milters, and the define statement specifies the order in which they will be processed. INPUT_MAIL_FILTER(`spamassassin , `S=local:/var/run/sendmail/spamass.sock, F=, T=S:4m;R:4m;E:10m )dnl INPUT_MAIL_FILTER(`clamav , `S=local:/var/run/clamav/clamav-milter.ctl, F=, T=S:4m;R:4m )dnl define(`confINPUT_MAIL_FILTERS , `spamassassin,clamav )dnl The F= option tells sendmail to continue message processing even if it is unable to communicate with the milter. Replace it with F=T if you need to have messages temporarily fail in such an event (but make sure you watch your mail logs closely when doing so). 9. Make sure that any domains for which your server will be accepting mail are listed, one per line, in /etc/mail/local-host-names. 10. Regenerate the sendmail configuration file: # sendmailconfig Configure 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]y Note
Visit our web design programs services for an affordable and reliable webhost to suit all your needs.

Leave a Reply