What Compile Options does Sendmail 14.1 Need?

What Compile Options does Sendmail 14.1 Need?

am 27.10.2007 04:01:15 von jimhermann

I compiled sendmail 14.1 with the default options.

# ./sendmail -d0.1
Version 8.14.1
Compiled with: DNSMAP LOG MATCHGECOS MILTER MIME7TO8 MIME8TO7
NAMED_BIND NETINET NETUNIX NEWDB PIPELINING SCANF USERDB XDEBUG

It's missing a bunch of options that come with the Sendmail 13.7 for
my Fedora Core 4.

# sendmail -d0.1
Version 8.13.7
Compiled with: DNSMAP HESIOD HES_GETMAILHOST LDAPMAP LOG MAP_REGEX
MATCHGECOS MILTER MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETINET6
NETUNIX NEWDB NIS PIPELINING SASLv2 SCANF SOCKETMAP STARTTLS
TCPWRAPPERS USERDB USE_LDAP_INIT

Am I missing anything important?

I'm pretty sure I need SASLv2 and STARTTLS for my configuration. FC4
comes with openldap installed but I don't think sendmail uses it.

Thanks.

Jim

Re: What Compile Options does Sendmail 14.1 Need?

am 27.10.2007 13:35:40 von per

In article <1193450475.634439.300150@57g2000hsv.googlegroups.com>
jimhermann@yahoo.com writes:
>I compiled sendmail 14.1 with the default options.
>
># ./sendmail -d0.1
>Version 8.14.1
>Compiled with: DNSMAP LOG MATCHGECOS MILTER MIME7TO8 MIME8TO7
>NAMED_BIND NETINET NETUNIX NEWDB PIPELINING SCANF USERDB XDEBUG
>
>It's missing a bunch of options that come with the Sendmail 13.7 for
>my Fedora Core 4.

Obviously the build wouldn't produce a sendmail that didn't work -
i.e. *it* doesn't *need* anything more (nor many of the above), what
*you* need - or want - you'll have to decide. Descriptions are in
sendmail/README in the distribution - or ask *specific* questions here.

># sendmail -d0.1
>Version 8.13.7
>Compiled with: DNSMAP HESIOD HES_GETMAILHOST LDAPMAP LOG MAP_REGEX
>MATCHGECOS MILTER MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETINET6
>NETUNIX NEWDB NIS PIPELINING SASLv2 SCANF SOCKETMAP STARTTLS
>TCPWRAPPERS USERDB USE_LDAP_INIT
>
>Am I missing anything important?
>
>I'm pretty sure I need SASLv2 and STARTTLS for my configuration. FC4
>comes with openldap installed but I don't think sendmail uses it.

It would (need to) if you asked it to do LDAP lookups (see cf/README).
MAP_REGEX can be generally handy, maybe SOCKETMAP too though it's a bit
more "advanced" perhaps.

--Per Hedeland
per@hedeland.org

Re: What Compile Options does Sendmail 14.1 Need?

am 27.10.2007 16:36:03 von jimhermann

On Oct 27, 6:35 am, p...@hedeland.org (Per Hedeland) wrote:
> In article <1193450475.634439.300...@57g2000hsv.googlegroups.com>
>
> jimherm...@yahoo.com writes:
> >I compiled sendmail 14.1 with the default options.
>
> ># ./sendmail -d0.1
> >Version 8.14.1
> >Compiled with: DNSMAP LOG MATCHGECOS MILTER MIME7TO8 MIME8TO7
> >NAMED_BIND NETINET NETUNIX NEWDB PIPELINING SCANF USERDB XDEBUG
>
> >It's missing a bunch of options that come with the Sendmail 13.7 for
> >my Fedora Core 4.
>
> Obviously the build wouldn't produce a sendmail that didn't work -
> i.e. *it* doesn't *need* anything more (nor many of the above), what
> *you* need - or want - you'll have to decide. Descriptions are in
> sendmail/README in the distribution - or ask *specific* questions here.
>
> ># sendmail -d0.1
> >Version 8.13.7
> >Compiled with: DNSMAP HESIOD HES_GETMAILHOST LDAPMAP LOG MAP_REGEX
> >MATCHGECOS MILTER MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETINET6
> >NETUNIX NEWDB NIS PIPELINING SASLv2 SCANF SOCKETMAP STARTTLS
> >TCPWRAPPERS USERDB USE_LDAP_INIT
>
> >Am I missing anything important?
>
> >I'm pretty sure I need SASLv2 and STARTTLS for my configuration. FC4
> >comes with openldap installed but I don't think sendmail uses it.
>
> It would (need to) if you asked it to do LDAP lookups (see cf/README).
> MAP_REGEX can be generally handy, maybe SOCKETMAP too though it's a bit
> more "advanced" perhaps.
>
> --Per Hedeland
> p...@hedeland.org


How do I determine if my system is using HESIOD or NIS?

How do I determine if LDAP lookups are being requested?

How do I determine if something is using TCPWRAPPERS or MATCHGECOS?

How do I determine if sendmail is using MAP_REGEX or SOCKETMAP?

Jim

Here is my existing sendmail.mc file:

divert(-1)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`Setup for Red Hat Linux virtualhosting')dnl
OSTYPE(`linux')dnl
define(`confDEF_USER_ID',``8:12'')dnl
undefine(`UUCP_RELAY')dnl
undefine(`BITNET_RELAY')dnl
define(`confTO_CONNECT', `1m')dnl
define(`confTRY_NULL_MX_LIST',true)dnl
define(`confDONT_PROBE_INTERFACES',true)dnl
define(`confDELIVERY_MODE', `queueonly')dnl
define(`QUEUE_DIR', `/home/virtual/FILESYSTEMTEMPLATE/services/
sendmail/mqueue')dnl
define(`confDOUBLE_BOUNCE_ADDRESS',`')dnl
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
define(`ALIAS_FILE', `/etc/aliases')dnl
define(`UUCP_MAILER_MAX', `2000000')dnl
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confPRIVACY_FLAGS',
`authwarnings,novrfy,noexpn,restrictqrun,nobodyreturn')dnl
define(`confAUTH_OPTIONS', `A')dnl
define(`confCACERT_PATH', `/etc/mail/certs')dnl
define(`confCACERT', `/etc/mail/certs/cacert.pem')dnl
define(`confSERVER_CERT', `/etc/mail/certs/cert.pem')dnl
define(`confSERVER_KEY', `/etc/mail/certs/key.pem')dnl
define(`confCLIENT_CERT', `/etc/mail/certs/cert.pem')dnl
define(`confCLIENT_KEY', `/etc/mail/certs/key.pem')dnl
define(`LUSER_RELAY', `local:undeliverable')dnl
TRUST_AUTH_MECH(`LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `LOGIN PLAIN')dnl
define(`confTO_IDENT', `0')dnl
FEATURE(`no_default_msa',`dnl')dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
FEATURE(`genericstable',`hash -o /etc/mail/genericstable.db')dnl
FEATURE(redirect)dnl
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl
FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl
FEATURE(`access_db',`hash -T -o /etc/mail/access.db')dnl
FEATURE(`dnsbl',`list.dsbl.org',`"550 Denied RBL " $&{client_addr} "
by list.dsbl.org"')dnl
FEATURE(`dnsbl',`zen.spamhaus.org',`"550 Denied RBL " $&{client_addr}
" by zen.spamhaus.org"')dnl
FEATURE(`delay_checks')dnl
INPUT_MAIL_FILTER(`dk-filter',
`S=local:/var/run/milter/dk-filter.sock')dnl
INPUT_MAIL_FILTER(`milter-greylist',
`S=local:/var/milter-greylist/milter-greylist.sock')dnl
define(`confMILTER_MACROS_CONNECT', `j, {if_addr}')dnl
define(`confMILTER_MACROS_HELO', `{verify}, {cert_subject}')dnl
define(`confMILTER_MACROS_ENVFROM', `i, {auth_authen}')dnl
define(`confMILTER_MACROS_ENVRCPT', `{greylist}')dnl
define(`_FFR_MILTER', `1')dnl
INPUT_MAIL_FILTER(`milter-null',
`S=unix:/var/run/milter/milter-null.socket, T=C:30s;E:30s')dnl
define(`_FFR_MILTER', `1')dnl
INPUT_MAIL_FILTER(`milter-link',
`S=unix:/var/run/milter/milter-link.socket, T=C:30s;R:1m;E:
5m')dnl
define(`_FFR_MILTER', `1')dnl
INPUT_MAIL_FILTER(`milter-spiff',
`S=unix:/var/run/milter/milter-spiff.socket, T=C:10s;S:10s;R:
4m;E:10s')dnl
FEATURE(`blacklist_recipients')dnl
EXPOSED_USER(`root')dnl
DAEMON_OPTIONS(`Name=MTA')dnl
DAEMON_OPTIONS(`Port=submission, Name=MSA, M=Ea')dnl
DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')dnl
CLIENT_OPTIONS(`Family=inet, Address=0.0.0.0')dnl
LOCAL_DOMAIN(`localhost.localdomain')dnl
FEATURE(`relay_hosts_only')dnl
define(`SMTP_MAILER_FLAGS', `k')dnl
D{usr_id}
D{grp_id}
LOCAL_CONFIG
Kdomainmap text -k0 -v2 /etc/virtualhosting/mappings/
sendmail.domainmap
Kquotacheck program /usr/lib/opcenter/sendmail/quotacheck
Kadv_quotacheck program /usr/lib/opcenter/sendmail/adv_quotacheck
Kmount_table text -a -k1 -v0 /etc/mtab
Kstore_it_in macro
Ksleep program /bin/sleep
# SENDMAIL_ADD_MAPS BEGIN
# SENDMAIL_ADD_MAPS END

D{DEVICE}


LOCAL_RULESETS
SLocal_check_rcpt
R$* $: $1 $| $>"Virtuser_check_rcpt" $1
R$* $| $#$* $#$2
R$* $| $* $: $1
SVirtuser_check_rcpt
R$* $: $>ParseRecipient $1
R $+ < @ $* > $: $(domainmap $2 $: $) $1
R $* $@ VirtUserOK
R$- $+ $: $(dequote $1"_u" $) $(dequote
$1"_a" $) $1 $2
R $- $- $- $+ $: $($2 $4 $: $) $1 $2 $3 <
mail > < $4 >
R $- $- $- < $+ > < $+ > $: $($1 $5 $: $) $1 $2 $3 <
$5 > < $4 >
R $- $- $- < $+ > < $+ > $: $($2 catch-all $: $) $1 $2 $3 <
mail > < $5 >
R $- $- $- < $+ > < $+ > $: $(sleep 2 $)
R $* $#error $@ 5.1.1 $: "550 User unknown"
R$+ $- $- $- < $+ > < $+ > $: $2 $(dequote $4"_g" $) $5
R$- $- $+ $: $($1 $3 $) $($2 $3 $)
R$- $- $: $( store_it_in {usr_id} $@ $1 $) $
( store_it_in {grp_id} $@ $2 $) $1 $2
R$- $- $: $(quotacheck $1 $2 $)
R $@ VirtUserOK
R $#error $@ 4.2.2 $: "452 Disk quota
exceeded"
R$* $#error $@ 4.3.5 $: "451 Internal
error: quota check"

Sget_device
R $: $( mount_table /home/virtual $: $)
R $: $( mount_table /home $: $)
R $: $( mount_table / $: $)
R$* $@ $( store_it_in {DEVICE} $@ $1 $)

Scheck_compat
R<$+> $| $+ $: $1 $| $2
R$+ $| <$+> $: $1 $| $2
R$+ $| $+ $: $>ParseRecipient $2
R $+ < @ $* > $: $(domainmap $2 $: $) $1
R $* $@ ok
R$- $+ $: $(dequote $1"_u" $) $(dequote
$1"_a" $) $1 $2
R $- $- $- $+ $: $($2 $4 $: $) $1 $2 $3 <
mail > < $4 >
R $- $- $- < $+ > < $+ > $: $($1 $5 $: $) $1 $2 $3 <
$5 > < $4 >
R $- $- $- < $+ > < $+ > $: $($2 catch-all $: $) $1 $2 $3 <
mail > < $5 >
R $- $- $- < $+ > < $+ > $: $(sleep 2 $)
R$+ $- $- $- < $+ > < $+ > $: $2 $(dequote $4"_g" $) $5
R$- $- $+ $: $($1 $3 $) $($2 $3 $)
R$- $- $: $( store_it_in {usr_id} $@ $1 $) $
( store_it_in {grp_id} $@ $2 $) $1 $2
R$- $- $: $1 $2 $> get_device $&{DEVICE}
R$- $- $: $(adv_quotacheck $&{usr_id}
$&{grp_id} $&{msg_size} $&{DEVICE} $)
R$- $- $@ ok
R$- $- $:
R$- $- $:
R $:
R $@ $#error $@ 5.2.2 $: "554 Mail
system full."
R $@ $#error $@ 5.2.2 $: "554 Mail box
full."
R $@ $#error $@ 5.2.2 $: "554 Internal
error adv_quota check."

define(`POP_B4_SMTP_TAG', `')
include(`/usr/lib/opcenter/sendmail/install/popauth.m4')
MAILER(smtp)dnl
MAILER(procmail)dnl
LOCAL_CONFIG
Cwlocalhost.localdomain
H?h?X-ClientAddr: ${client_addr}
FR -o /etc/virtualhosting/mappings/sendmail.domainmap %[^][ ]
MAILER_DEFINITIONS
Mvirthostmail, P=/usr/bin/virthostmail, F=mDFMuXah, S=11/31, R=21, E=
\r\n,
L=990, T=DNS/RFC822/SMTP,
A=virthostmail $h $&{client_addr} 1 /usr/sbin/sendmail
-bs

Thanks.

Jim

Re: What Compile Options does Sendmail 14.1 Need?

am 28.10.2007 03:06:17 von Bill Cole

In article <1193495763.514621.30270@19g2000hsx.googlegroups.com>,
jimhermann@yahoo.com wrote:

> On Oct 27, 6:35 am, p...@hedeland.org (Per Hedeland) wrote:
> > In article <1193450475.634439.300...@57g2000hsv.googlegroups.com>
> >
> > jimherm...@yahoo.com writes:
> > >I compiled sendmail 14.1 with the default options.
> >
> > ># ./sendmail -d0.1
> > >Version 8.14.1
> > >Compiled with: DNSMAP LOG MATCHGECOS MILTER MIME7TO8 MIME8TO7
> > >NAMED_BIND NETINET NETUNIX NEWDB PIPELINING SCANF USERDB XDEBUG
> >
> > >It's missing a bunch of options that come with the Sendmail 13.7 for
> > >my Fedora Core 4.
> >
> > Obviously the build wouldn't produce a sendmail that didn't work -
> > i.e. *it* doesn't *need* anything more (nor many of the above), what
> > *you* need - or want - you'll have to decide. Descriptions are in
> > sendmail/README in the distribution - or ask *specific* questions here.
> >
> > ># sendmail -d0.1
> > >Version 8.13.7
> > >Compiled with: DNSMAP HESIOD HES_GETMAILHOST LDAPMAP LOG MAP_REGEX
> > >MATCHGECOS MILTER MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETINET6
> > >NETUNIX NEWDB NIS PIPELINING SASLv2 SCANF SOCKETMAP STARTTLS
> > >TCPWRAPPERS USERDB USE_LDAP_INIT
> >
> > >Am I missing anything important?
> >
> > >I'm pretty sure I need SASLv2 and STARTTLS for my configuration. FC4
> > >comes with openldap installed but I don't think sendmail uses it.
> >
> > It would (need to) if you asked it to do LDAP lookups (see cf/README).
> > MAP_REGEX can be generally handy, maybe SOCKETMAP too though it's a bit
> > more "advanced" perhaps.
> >
> > --Per Hedeland
> > p...@hedeland.org
>
>
> How do I determine if my system is using HESIOD or NIS?

Get a minimally competent sysadmin to look at your system?

More simply: if you don't know, then it is extremely unlikely that you
need support for either, unless this machine has to integrate to a
larger local environment using rather obsolete technologies.


> How do I determine if LDAP lookups are being requested?

See cf/README and look at your sendmail.mc

> How do I determine if something is using TCPWRAPPERS or MATCHGECOS?

See cf/README and look at your sendmail.mc


> How do I determine if sendmail is using MAP_REGEX or SOCKETMAP?

You need to start by reading the documentation for Sendmail, rather than
by posting here in the hope that someone can make it simpler for you. It
isn't simpler.

--
Now where did I hide that website...