Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sendmail
Message
Information générale
Forum:
Linux
Catégorie:
Autre
Titre:
Divers
Thread ID:
00635357
Message ID:
00636004
Vues:
24
Hi
#
divert(-1)
include(`/usr/lib/sendmail-cf/m4/cf.m4')
OSTYPE(`linux')dnl
define(`confDEF_USER_ID',``8:12'')
define(`ALIAS_FILE',`/etc/aliases')dnl
define(`confPRIVACY_FLAGS', `authwarnings,needmailhelo,noexpn,novrfy')dnl
define(`confTO_QUEUERETURN', `4d')dnl
define(`confTO_QUEUEWARN', `1h')dnl
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
undefine(`UUCP_RELAY')dnl
undefine(~BITNET_RELAY')dnl
FEATURE(redirect)dnl
FEATURE(`always_add_domain')dnl
dnl FEATURE(`genericstable', `hash -o /etc/mail/genericstable')dnl
FEATURE(`use_cw_file')dnl
FEATURE(`local_procmail')dnl
FEATURE(`nouucp', `reject')dnl
FEATURE(`mailertable', `hash -o /etc/mail/mailertable')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')dnl
FEATURE(`access_db', `hash -o /etc/mail/access')dnl
FEATURE(`blacklist_recipients')dnl
FEATURE(dnsbl,`rbl.maps.vix.com',`Mail from $&{client_addr} rejected; see http://www.mail-abuse.org/rb;/')dnl
FEATURE(dnsbl,`dul.maps.vix.com',`Mail from $&{client_addr} rejected; see http://www.mail-abuse.org/dul/')dnl
FEATURE(dnsbl,`relays.mail-abuse.org',` Mail from $&{client_addr} rejected; see http://www.mail-abuse.org/rss/')dnl
FEATURE(`accept_unresolvable_domains')dnl
FEATURE(`relay_based_on_MX')dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
The above is what my nuconfig.mc text file looks like. On a Red Hat Linux 7.2 box the nuconfig.mc file should be in the /usr/lib/sendmail-cf/cf/ directory. You might change your nuconfig.mc file to the above. Then do the following:
cd /usr/lib/sendmail-cf/cf/
cp /etc/sendmail.cf /etc/sendmail.cf.bak
m4 nuconfig.mc > /etc/sendmail.cf
/etc/rc.d/init.d/sendmail restart
This will create the new sendmail.cf program file and restart sendmail using it.

Be careful about paths. There was a change in Red Hat 7.2 from Red Hat 7.1 as follows:

Red hat 7.1:
/usr/share/sendmail-cf/cf/
Red Hat 7.2:
/usr/lib/sendmail-cf/cf/
Leland F. Jackson, CPA
Software - Master (TM)
smvfp@mail.smvfp.com
Software Master TM
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform