dnl define(`confQUEUE_LA’, `12′)dnl dnl define(`confREFUSE_LA’, `18′)dnl dnl FEATURE(delay_checks)dnl (Tomcat web server)

dnl define(`confQUEUE_LA’, `12′)dnl dnl define(`confREFUSE_LA’, `18′)dnl dnl FEATURE(delay_checks)dnl FEATURE(`no_default_msa’,`dnl’)dnl FEATURE(`smrsh’,`/usr/sbin/smrsh’)dnl FEATURE(`mailertable’,`hash -o /etc/mail/mailertable’)dnl FEATURE(`virtusertable’,`hash -o /etc/mail/virtusertable’)dnl FEATURE(redirect)dnl FEATURE(always_add_domain)dnl FEATURE(use_cw_file)dnl FEATURE(use_ct_file)dnl FEATURE(local_procmail)dnl FEATURE(`access_db’,`hash -o /etc/mail/access.db’)dnl FEATURE(`blacklist_recipients’)dnl EXPOSED_USER(`root’)dnl dnl This changes sendmail to only listen on the loopback device 127.0.0.1 dnl and not on any other network devices. Comment this out if you want dnl to accept email over the network. DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA’) dnl NOTE: binding both IPv4 and IPv6 daemon to the same port requires dnl a kernel patch dnl DAEMON_OPTIONS(`port=smtp,Addr=::1, Name=MTA-v6, Family=inet6′) dnl We strongly recommend to comment this one out if you want to protect dnl yourself from spam. However, the laptop and users on computers that do dnl not have 24×7 DNS do need this. FEATURE(`accept_unresolvable_domains’)dnl dnl FEATURE(`relay_based_on_MX’)dnl MAILER(smtp)dnl MAILER(procmail)dnl Compared with the sendmail.cf file, it almost looks readable. Through a series of includes, defines, undefines, and features, this file brings the template-like m4 macro files together to form the sendmail.cf file. The dnl command is used to comment out entries, but the technical definition is “Delete through New Line.” Notice that the dnl command is also used to terminate commands. The include command uses the cf.m4 file as a prototype, and the OSTYPE command sets any Red Hat Linux specific configuration options. The define commands perform the same task as setting similar options within the sendmail.cf file. For example, beginning with confAUTO_REBUILD, the options and macros that are equivalent to those in the preceding define commands are, in order, AutoRebuildAliases, Timeout.connect, TryNullMXList, DontProbeInterfaces, and the Mprocmail mailer specification. This sendmail.mc file is finally turned into the sendmail.cf file with the following command: m4 /etc/mail/sendmail.mc > /etc/sendmail.cf Details on the configuration options available through the m4 macro preprocessor can be found at www.sendmail.org/m4/tweakingoptions.html. The .forward file One way for users to redirect their own mail is through the use of the .forward file, as described within the previously listed sendmail.cf file. The format of a plain-text .forward file is a comma-separated list of mail recipients. Common uses of the .forward file include: Piping mail to a program to filter the mailbox contents: “| /usr/bin/procmail”
You need excellent and relaible webhost company to host your web applications? Then pay a visit to Inexpensive Web Hosting services.

Leave a Reply