tips:linux:sendmailcfg
How to create a sendmail configuration file?
Create thauvin.mc in /usr/share/sendmail-cf/
cf with:
undefine(`ALIAS_FILE')dnl include(`../m4/cf.m4')dnl VERSIONID(`$Id$')dnl MASQUERADE_AS(thauvin.net)dnl FEATURE(smrsh, `/usr/sbin/smrsh')dnl FEATURE(`nouucp', `reject')dnl FEATURE(allmasquerade)dnl FEATURE(masquerade_envelope)dnl FEATURE(`access_db', `hash -T<TMPF> /etc/mail/access')dnl FEATURE(`delay_checks')dnl OSTYPE(linux)dnl DOMAIN(thauvin)dnl define(`LOCAL_RELAY', `nix.thauvin.net')dnl define(`MAIL_HUB', `nix.thauvin.net')dnl define(`confCOPY_ERRORS_TO', `Postmaster')dnl define(`confMAX_HOP', `30')dnl define(`confQUEUE_LA', `8')dnl define(`confREFUSE_LA', `12')dnl define(`confDEF_USER_ID', 21:21)dnl define(`confMAX_MESSAGE_SIZE', `5242880')dnl define(`confTIME_ZONE', `USE_SYSTEM')dnl define(`confHOSTS_FILE', `/etc/hosts')dnl define(`confSAFE_QUEUE', `True')dnl define(`confCHECKPOINT_INTERVAL', `10')dnl define(`confSAVE_FROM_LINES', `False')dnl define(`confMATCH_GECOS', `False')dnl define(`confFORWARD_PATH', `$z/.forward')dnl define(`confCHECK_ALIASES', `True')dnl define(`confPRIVACY_FLAGS', `goaway')dnl
Create thauvin.m4 in /usr/share/sendmail-cf/domain
with:
divert(0) VERSIONID(`$Id$') define(`BITNET_RELAY', `relay1.uu.net')dnl define(`LOCAL_RELAY', `nix.thauvin.net')dnl FEATURE(redirect)dnl FEATURE(use_cw_file)dnl FEATURE(always_add_domain)dnl MAILER(`local')dnl MAILER(`smtp')dnl
In /usr/share/sendmail-cf/cf
execute:
m4 thauvin.mc >! /etc/mail/sendmail.cf
tips/linux/sendmailcfg.txt · Last modified: 2009/06/08 15:27 by erik