From owner-freebsd-questions@FreeBSD.ORG Mon Mar 10 03:17:04 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B31371065674 for ; Mon, 10 Mar 2008 03:17:04 +0000 (UTC) (envelope-from pgollucci@p6m7g8.com) Received: from EXHUB015-3.exch015.msoutlookonline.net (exhub015-3.exch015.msoutlookonline.net [207.5.72.95]) by mx1.freebsd.org (Postfix) with ESMTP id AFB768FC15 for ; Mon, 10 Mar 2008 03:17:04 +0000 (UTC) (envelope-from pgollucci@p6m7g8.com) Received: from philip.hq.rws (74.93.213.161) by smtpx15.msoutlookonline.net (207.5.72.103) with Microsoft SMTP Server (TLS) id 8.1.240.5; Sun, 9 Mar 2008 20:17:04 -0700 Message-ID: <47D4A82F.20900@p6m7g8.com> Date: Sun, 9 Mar 2008 23:17:03 -0400 From: "Philip M. Gollucci" Organization: P6 Web Applications User-Agent: Thunderbird 2.0.0.6 (X11/20070919) MIME-Version: 1.0 To: FreeBSD Questions References: <47CF03A8.9030404@p6m7g8.com> In-Reply-To: <47CF03A8.9030404@p6m7g8.com> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Freebsd7, mail/mailman, www/apache22, and sendmail [take 2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Mar 2008 03:17:04 -0000 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`" mailman@lists.domain.tld > > Mail Server: > /var/log/maillog > m25JwCEk065018: m25JwCEl065018: DSN: unknown mailer error 255 > > m25JwCEl065018: to=, 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 > > > 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 > > > Options FollowSymLinks ExecCGI > AllowOverride None > Order allow,deny > Allow from all > > > > --------------------------------------------------------- > $ uname -a > FreeBSD host.domain.tld 8.0-CURRENT FreeBSD 8.0-CURRENT #1: Sun Mar 2 > 09:48:59 EST 2008 root@builder.domain.tld:/usr/obj/usr/src/sys/HOST > i386 > > > -- ------------------------------------------------------------------------ Philip M. Gollucci (philip@ridecharge.com) 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.