On Mon, 2005-02-14 at 02:47, Andrea Barisani wrote:
> On Sun, Feb 13, 2005 at 08:41:16PM -0600, Michael Sullivan wrote:
> > I'm pretty sure I've got mailman working now, so I move on to preparing
> > sendmail for use by my remote users.  I looked at /etc/mail/sendmail.mc
> > and couldn't help but notice that it was much much shorter than my
> > Fedora Core 1 /etc/mail/sendmail.mc file was out-of-the-box.  I was
> > wondering what features Gentoo's sendmail package provides
> > out-of-the-box, and if it would harm sendmail if I were to copy over my
> > server PC's sendmail.mc and .cf files.  Would this work, or is sendmail
> > already like I need it to be?
> 
> Our sendmail.mc is pretty simple and it contains only the basic directives
> for defining the OS and the Local Delivery Agent. We are considering adding a
> commented sendmail-gentoo.mc (or some official doc) in the future even if we 
> prefer to keep it very light, it's my personal opinion that all users should 
> read and understand the configuration before deploying an MTA.
> 
> Anyway that configuration works out of the box just fine, simply all the
> advanced features and configuration tweaks are not specified.
> 
> If you copy the Fedora .mc file it should be able to generate a valid .cf
> file for your gentoo box, be sure that all specified paths are valid. Don't
> move the .cf file, all .cf files should be manually generated from the .mc
> one with `m4 sendmail.mc > sendmail.cf`.
> 
> Cheers

Perhaps this sendmail.mc file I use for an example will be of help

Notice the <-change stuff, change it and remove the <-change whatever.

I found this on http://www.hserus.net/pop_smtp.html

divert(-1)
dnl This is the macro config file used to generate sendmail.cf
dnl file. If you modify this file you will have to regenerate 
dnl sendmail.cf by running this macro config through the m4
dnl preprocessor:
dnl
dnl        m4 /home/fancy/Documents/sendmail.mc > /etc/sendmail.cf
<--Change to your path
dnl
dnl You will need to have the sendmail-cf RPM installed for this
dnl to work, if you use an rpm build of sendmail
dnl
dnl include(`../m4/cf.m4')
dnl
dnl If you compile sendmail from a tarball, use the include above.
dnl In this setup, you should create the file as cf/cf/config.mc 
dnl (in the sendmail source tree: eg. /usr/src/sendmail-8.11.6/cf/cf
dnl Now give the command "sh Build config.cf".  Now copy the file
dnl config.cf as /etc/mail/sendmail.cf (please backup first!)
dnl
dnl If you are using the RPM build of sendmail, use the 
dnl include statement given below instead
dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')
define(`confDEF_USER_ID',``8:12'')
OSTYPE(`linux')
undefine(`UUCP_RELAY')
undefine(`BITNET_RELAY')
define(`confCF_VERSION',`dialup-1.3')
define(`SMART_HOST', `smtp.yourisp.com') <--Change this
define(`confAUTO_REBUILD')
define(`confTO_CONNECT', `1m')
define(`confTO_IDENT',0)
define(`confTRY_NULL_MX_LIST',true)
define(`confDONT_PROBE_INTERFACES',true)
define(`confCON_EXPENSIVE',true)
define(`confDELIVERY_MODE', `queued')
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')
define(`ALIAS_FILE',`/etc/mail/aliases')
MASQUERADE_AS(`yourisp.com') <--Change this
FEATURE(`masquerade_envelope')
FEATURE(`smrsh',`/usr/sbin/smrsh')
FEATURE(`mailertable',`hash -o /etc/mail/mailertable')
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')
FEATURE(redirect)
FEATURE(always_add_domain)
FEATURE(use_cw_file)
FEATURE(`use_ct_file')
FEATURE(local_procmail)
MAILER(smtp)
MAILER(procmail)
FEATURE(`access_db')
FEATURE(`blacklist_recipients')
FEATURE(`accept_unresolvable_domains')
FEATURE(`accept_unqualified_senders')
dnl FEATURE(`relay_based_on_MX')


-- 
Phil
Our 2nd CD: http://www.cdbaby.com/naomisfancy
Naomi's Fancy performances: http://naomisfancy.virtualave.net/schedule.html


--
gentoo-user@gentoo.org mailing list

Reply via email to