# svcadm disable smtp:sendmail
# cd /lib/svc/method
# cp smtp-sendmail smtp-sendmail.orig
# {Editor} smtp-sendmail <- use your Editor Program.
----------------
Find
----------------
$SENDMAIL $MODE -q$QUEUEOPTION$QUEUEINTERVAL $OPTIONS &
----------------
Modify
----------------
OPTIONS="-OPrivacyOptions=noetrn -ODeliveryMode=queueonly -OQueueDirectory=/var/spool/mqueue.in"
$SENDMAIL $MODE -q$QUEUEOPTION$QUEUEINTERVAL $OPTIONS &
----------------
Save
----------------
# svcadm enable smtp:sendmail
[ 發表回應 ] ( 60預覽 ) | 常註連結 | ( 2.9 / 2090 )
檢驗 saslauthd 這支程式是否可行!
# 在 cyrus-sasl 的原始碼裡面提供了一支小程式用來判斷 saslauthd 的認證機制
# 是否成功的啟動了,這個小程式就是 testsaslauthd 囉!在剛剛原始碼目錄下,
# 所以你可以這樣做:
[root@test sasl2]# /usr/local/cyrus-sasl2/sbin/saslauthd -a shadow
# 執行之後, saslauthd 的 PID 會被紀錄到 /var/run/mux.pid 這個檔案!
[root@test sasl2]# cd /usr/local/src/cyrus-sasl-2.1.12/saslauthd/
[root@test saslauthd]# make testsaslauthd
[root@test saslauthd]# ./testsaslauthd -u userID -p 'yours.passwd'
0: OK "Success."
# 若顯示 OK 的話!那麼就是成功啦!
[ 發表回應 ] ( 50預覽 ) | 常註連結 | ( 2.9 / 2019 )
Put in
/usr/local/build/sendmail-8.14.5/devtools/Site/site.config.m4
APPENDDEF(`confENVDEF', `-DSASL=2')
APPENDDEF(`conf_sendmail_LIBS', `-lsasl2')
ReBuild sendmail
cd /usr/local/build/sendmail-8.14.5/sendmail
sh Build -c
sh Build install
cd /usr/local/build/sendmail-8.14.5
sh Build -c
sh Build install
[ 發表回應 ] ( 11預覽 ) | 常註連結 | ( 3 / 2027 )
env LIBS="-lsocket -lnsl" LDFLAGS="-R/usr/local/ssl" ./configure --disable-krb4 --disable-gssapi --enable-login --enable-pwcheck --with-saslauthd=/var/run
It's an old problem with solaris+sasl. You need to call configure with
LIBS="-lsocket -lnsl" and perhaps with LDFLAGS="-R/usr/local/ssl" if you
are using shared ssl and the ssl directory isn't in the library search path.
In order to get openssl as shared, you must built it using "./config
shared". It works for me ( solaris9 + gcc ) and you'll avoid many future
problems with sasl and other packages using openssl.
Notice that you are using BDB 4.2. I don't know if it's supported with
sasl 2.1.17.
[ 發表回應 ] ( 15預覽 ) | 常註連結 | ( 2.9 / 2003 )
divert(-1)
#
# Copyright (c) 1998, 1999, 2001 Sendmail, Inc. and its suppliers.
# All rights reserved.
# Copyright (c) 1983 Eric P. Allman. All rights reserved.
# Copyright (c) 1988, 1993
# The Regents of the University of California. All rights reserved.
#
# By using this file, you agree to the terms and conditions set
# forth in the LICENSE file which can be found at the top level of
# the sendmail distribution.
#
#
#
# This is a generic configuration file for SunOS 5.x (a.k.a. Solaris 2.x
# and Solaris 7 through the present version).
#
# It has support for local and SMTP mail only. If you want to
# customize it, copy it to a name appropriate for your environment
# and do the modifications there.
#
divert(0)dnl
VERSIONID(`$Id: generic-solaris.mc,v 8.13 2001/06/27 21:46:30 gshapiro Exp $')
OSTYPE(solaris2)dnl
DOMAIN(generic)dnl
FEATURE(`virtusertable', `dbm /etc/mail/virtusertable')dnl
FEATURE(`use_cw_file')
FEATURE(`access_db', `dbm -T<TMPF> /etc/mail/access')dnl
FEATURE(relay_hosts_only)
define(`confTRY_NULL_MX_LIST',true)
FEATURE(`blacklist_recipients')
FEATURE(dnsbl, `blackholes.mail-abuse.org', `Rejected - see http://www.mail-abuse.org/rbl/')dnl
FEATURE(dnsbl, `dialups.mail-abuse.org', `Dialup - see http://www.mail-abuse.org/dul/')dnl
FEATURE(dnsbl, `relays.mail-abuse.org', `Open spam relay - see http://www.mail-abuse.org/rss/')dnl
FEATURE(`delay_checks')dnl
FEATURE(`accept_unresolvable_domains')dnl
define(`confTO_IDENT',`0s')dnl
define(`confSMTP_LOGIN_MSG', `$j server ready at $b')
TRUST_AUTH_MECH(`LOGIN PLAIN DIGEST-MD5')dnl
define(`confAUTH_MECHANISMS', `LOGIN PLAIN DIGEST-MD5')dnl
dnl define(`confDEF_AUTH_INFO', `/etc/mail/auth/auth-info')
FEATURE(`no_default_msa')dnl
DAEMON_OPTIONS(`Port=25, Name=MTA')dnl
DAEMON_OPTIONS(`Port=587,Name=MSA,M=Ea')dnl
MAILER(local)dnl
MAILER(smtp)dnl
[ 發表回應 ] ( 22預覽 ) | 常註連結 | ( 3 / 1899 )