Mailer definitions Mail Delivery Agents (MDAs) are described (My space web page)

Mailer definitions Mail Delivery Agents (MDAs) are described in the Mailer Definitions section. Specifically, the section enables you to define Mlocal and Mprog MDAs as other than the procmail and smrsh programs, respectively: Mlocal, P=/usr/bin/procmail, F=lsDFMAw5:/|@qSPfhn9, S=EnvFromL/HdrFromL, R=EnvToL/HdrToL, T=DNS/RFC822/X-Unix, A=procmail -Y -a $h -d $u Mprog, P=/usr/sbin/smrsh, F=lsDFMoqeu9, S=EnvFromL/HdrFromL, R=EnvToL/HdrToL, D=$z:/, T=X-Unix/X-Unix/X-Unix, A=smrsh -c $u In general, you shouldn t need to modify the options specified in the mailer definitions. However, the Mlocal and Mprog mailer definitions, shown previously, are worthy of note. The Mlocal definition is for delivering messages to a local account. The procmail MDA is used (rather than the UNIX standard of /bin/mail) to place the file in the appropriate user s mailbox. The Mprog mailer definition is used when the recipient of a message is actually a program (as in the case of majordomo, described in the next section). To direct a message to a program, sendmail uses a program called smrsh (SendMail Restricted Shell). Allowing mail to be piped directly into a program is not a great idea from a security standpoint, but smrsh makes the process a bit safer. For the program to successfully execute, a link to the program must exist within the /etc/smrsh directory. This restriction ensures that only programs installed by the administrator can directly receive mail, and other random executable programs are denied. Using the m4 macro preprocessor Although using an m4 preprocessor macro file doesn t make configuring sendmail a simple task, it is at least considerably more intuitive. For example, the cryptic sendmail.cf file described in this chapter was generated by the following text file (the /etc/mail/sendmail.mc file): divert(-1) dnl This is the sendmail macro config file. If you make changes to this file, dnl you need the sendmail-cf rpm installed and then have to generate a dnl new /etc/sendmail.cf by running the following command: dnl dnl m4 /etc/mail/sendmail.mc > /etc/sendmail.cf dnl include(`/usr/lib/sendmail-cf/m4/cf.m4′) VERSIONID(`linux setup for Red Hat Linux’)dnl OSTYPE(`linux’) define(`confDEF_USER_ID’,“8:12′’)dnl undefine(`UUCP_RELAY’)dnl undefine(`BITNET_RELAY’)dnl define(`confAUTO_REBUILD’)dnl define(`confTO_CONNECT’, `1m’)dnl define(`confTRY_NULL_MX_LIST’,true)dnl define(`confDONT_PROBE_INTERFACES’,true)dnl define(`PROCMAIL_MAILER_PATH’,`/usr/bin/procmail’)dnl define(`ALIAS_FILE’,'/etc/aliases’)dnl define(`STATUS_FILE’, `/var/log/sendmail.st’)dnl define(`UUCP_MAILER_MAX’, `2000000′)dnl define(`confUSERDB_SPEC’, `/etc/mail/userdb.db’)dnl define(`confPRIVACY_FLAGS’, `authwarnings,novrfy,noexpn,restrictqrun’)dnl define(`confAUTH_OPTIONS’, `A’)dnl dnl TRUST_AUTH_MECH(`DIGEST-MD5 CRAM-MD5 LOGIN PLAIN’)dnl dnl define(`confAUTH_MECHANISMS’, `DIGEST-MD5 CRAM-MD5 LOGIN PLAIN’)dnl dnl define(`confTO_QUEUEWARN’, `4h’)dnl dnl define(`confTO_QUEUERETURN’, `5d’)dnl
Searching for affordable and reliable webhost to host and run your web applications? Go to our java web server services and you will be pleased.

Leave a Reply