divert(-1) dnl This is the macro config file used to generate the /etc/sendmail.cf dnl file. If you modify thei file you will have to regenerate the dnl /etc/sendmail.cf by running this macro config through the m4 dnl preprocessor: dnl dnl m4 /etc/sendmail.mc > /etc/sendmail.cf dnl dnl You will need to have the sendmail-cf package installed for this to dnl work. include(`/usr/lib/sendmail-cf/m4/cf.m4') define(`confDEF_USER_ID',``8:12'') OSTYPE(`linux') undefine(`UUCP_RELAY') undefine(`BITNET_RELAY') define(`confAUTO_REBUILD') define(`confTO_CONNECT', `1m') define(`confTRY_NULL_MX_LIST',true) define(`confDONT_PROBE_INTERFACES',true) define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail') FEATURE(`smrsh',`/usr/sbin/smrsh') FEATURE(`mailertable',`hash -o /etc/mail/mailertable') FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable') ################################################### añadido 8-3-01 FEATURE(`genericstable', `hash -o /etc/mail/genericstable')dnl GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')dnl ################################################### fin añadido 8-3-01 FEATURE(redirect) FEATURE(always_add_domain) FEATURE(use_cw_file) FEATURE(local_procmail) ################################################## añadido 12-3-01 FEATURE(`limited_masquerade') ################################################## fin añadido 12-3-01 ################################################## Pasado al final segun README # MAILER(procmail) # MAILER(smtp) ################################################## Pasado al final segun README FEATURE(`blacklist_recipients') 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 hav 24x7 DNS do need this. FEATURE(`accept_unresolvable_domains') dnl FEATURE(`relay_based_on_MX') # # Configuracion Local -- No tocar sin conocimiento de causa # LOCAL_CONFIG FEATURE(masquerade_envelope)dnl ################################################## Comentado 12-3-01 # MASQUERADE_AS(domain1.com)dnl ################################################## Fin Comentado 12-3-01 MASQUERADE_DOMAIN(domain1.com)dnl MASQUERADE_DOMAIN(domain2.com)dnl Cwdomain1.com # Add some privacy to our sendmail O PrivacyOptions=goaway # Define our userdb file for FQDN rewrites Kuserdb btree -o /etc/users.db define(confUSERDB_SPEC, /etc/users.db) FEATURE(notsticky) LOCAL_RULE_1 ######################################################### ### Local ruleset 1, rewrite sender header & envelope ## ######################################################### # Thanks to Bjart Kvarme S1 R$- $1 < @ $j . > user => user@localhost R$- < @ $=w . > $* $: $1 < @ $2 . > $3 ?? $1 user@localhost? R$+ ?? $+ $: $1 ?? $(userdb $2 : mailname $: @ $) R$+ ?? @ $@ $1 Not found R$+ ?? $+ $>3 $2 Found, rewrite MAILER(procmail) MAILER(smtp)