No comments, suggestions ?
Philip M. Gollucci wrote:
Issue:
The www/apache22 integration seems to be fine; however, the sendmail
integration isn't quite right.
client computer:
$ echo `uname -a` | mail -s "`date`" [EMAIL PROTECTED]
Mail Server:
/var/log/maillog
m25JwCEk065018: m25JwCEl065018: DSN: unknown mailer error 255
m25JwCEl065018: to=<[EMAIL PROTECTED]>, delay=00:00:00 \
xdelay=00:00:00, mailer=mailman, pri=32149, \
relay=lists.p6m7g8.net, dsn=5.3.0, stat=unknown mailer error 255
m25JwCEm065018: return to sender: unknown mailer error 255
The setup:
---------------------------------------------------------
/etc/make.conf
[snipped]
# SASL (cyrus-sasl v2) sendmail build flags...
SENDMAIL_CFLAGS=-I/usr/local/include -DSASL=2
SENDMAIL_LDFLAGS=-L/usr/local/lib
SENDMAIL_LDADD=-lsasl2
# Adding to enable alternate port (smtps) for sendmail...
SENDMAIL_CFLAGS+= -D_FFR_SMTP_SSL
.if ${.CURDIR:M*/usr/ports/mail/mailman*}
WITH_SENDMAIL= yes
WITH_HTDIG= yes
.endif
.if ${.CURDIR:M*/usr/ports/www/apache22*}
WITH_SSL= yes
WITH_APR_FROM_PORTS= yes
WITH_FULLBUILD= yes
WITH_MYSQL= yes
WITH_PCRE_FROM_PORTS= yes
WITH_LOG_FORENSIC= yes
WITH_PROXY_CONNECT= yes
WITH_PROXY_FTP= yes
WITH_PROXY_HTTP= yes
WITH_PROXY_AJP= yes
WITH_PROXY_BALANCER= yes
WITHOUT_MEM_CACHED= yes
.endif
---------------------------------------------------------
/var/db/pkg
[snipped]
apache-2.2.8
apr-nothr-1.2.8_2
bash-static-3.2.33
mailman-with-htdig-2.1.9_5
mysql-client-5.1.23
pcre-7.6
python25-2.5.2_1
cyrus-sasl-2.1.22
cyrus-sasl-saslauthd-2.1.22
users:
id mailnull
uid=26(mailnull) gid=26(mailnull) groups=26(mailnull)
id mailman
uid=91(mailman) gid=91(mailman) groups=91(mailman)
id www
uid=80(www) gid=80(www) groups=80(www)
---------------------------------------------------------
/etc/mail/host.mc
[snipped]
define(`ALIAS_FILE', `/etc/mail/aliases,/etc/mail/lists')
FEATURE(`smrsh')
FEATURE(mailertable, `hash -o /etc/mail/mailertable')
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')
VIRTUSER_DOMAIN(`lists.domain.tld')
dnl FEATURE(`limited_masquerade')
dnl MASQUERADE_AS(`lists.domain.tld')
Mmailman, P=/etc/mail/mm-handler, F=rDFMhlqSu, U=mailman:mailman,
S=EnvFromL, R=EnvToL/HdrToL,
A=mm-handler $h $u
---------------------------------------------------------
$ whereis smrsh
smrsh: /usr/libexec/smrsh
$ strings /usr/libexec/smrsh | grep bin |head -1
/usr/libexec/sm.bin
$ ls -l /usr/libexec/sm.bin/
lrwxr-xr-x 1 root wheel - 31B Mar 4 18:43:32 2008 mailman@ ->
/usr/local/mailman/mail/mailman
$ ls -l /usr/local/mailman/mail/mailman
-rwxr-sr-x 1 root mailman - 15K Mar 4 12:45:40 2008
/usr/local/mailman/mail/mailman*
$ /usr/local/mailman> sudo bin/check_perms -f
No problems found
$ cat /etc/mail/mailertable
lists.domain.tld mailman:lists.domain.tld
$ ls -l /etc/mail/mm-handler
-rwxr-xr-x 1 root wheel - 5.8K Mar 4 19:10:53 2008 mm-handler*
---------------------------------------------------------
/etc/rc.conf
[snipped]
sendmail_enable="YES"
mailman_enable="YES"
apache22_enable="YES"
apache22_http_accept_enable="YES"
---------------------------------------------------------
/usr/local/mailman/Mailman/mm_cfg.py
from Defaults import *
MTA = None
DEFAULT_EMAIL_HOST = 'lists.domain.tld'
DEFAULT_URL_HOST = 'lists.domain.tld'
DEFAULT_URL_PATTERN = 'http://%s/mailman/'
---------------------------------------------------------
/usr/local/etc/apache22/httpd.conf
User www
Group www
/usr/local/etc/apache22/vhosts/tld.domain.lists.conf
<VirtualHost *>
ServerName lists.domain.tld
DocumentRoot /usr/local/mailman
Alias /icons/ "/usr/local/mailman/icons/"
Alias /pipermail/ "/usr/local/mailman/archives/public/"
ScriptAlias /mailman/ "/usr/local/mailman/cgi-bin/"
ErrorLog "/usr/local/mailman/logs/httpd-error_log"
CustomLog "/usr/local/mailman/logs/httpd-access_log" common
CustomLog "/usr/local/mailman/logs/httpd-combined_log" combined
<Directory "/usr/local/mailman">
Options FollowSymLinks ExecCGI
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
---------------------------------------------------------
$ uname -a
FreeBSD host.domain.tld 8.0-CURRENT FreeBSD 8.0-CURRENT #1: Sun Mar 2
09:48:59 EST 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/HOST
i386
--
------------------------------------------------------------------------
Philip M. Gollucci ([EMAIL PROTECTED])
o:703.549.2050x206
Senior System Admin - Riderway, Inc.
http://riderway.com / http://ridecharge.com
1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB B89E 1324 9B4F EC88 A0BF
Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"