From owner-freebsd-net@FreeBSD.ORG Fri Oct 10 16:16:12 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 84D0C16A4B3 for ; Fri, 10 Oct 2003 16:16:12 -0700 (PDT) Received: from smtp4.clb.oleane.net (smtp4.clb.oleane.net [213.56.31.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 62ECB43FA3 for ; Fri, 10 Oct 2003 16:16:10 -0700 (PDT) (envelope-from michel.gravey@orange.fr) Received: from smtp4.clb.oleane.net (localhost [127.0.0.1]) by smtp4.clb.oleane.net (antivirus) with ESMTP id h9ANG9xB025819 for ; Sat, 11 Oct 2003 01:16:09 +0200 Received: from VAIO (zenith.theblinis.net [213.56.44.213]) (authenticated) by smtp4.clb.oleane.net with ESMTP id h9ANG7uS025803 for ; Sat, 11 Oct 2003 01:16:08 +0200 Message-ID: <008401c38f84$7b0f9660$c801a8c0@VAIO> From: "Michel Gravey" To: Date: Sat, 11 Oct 2003 01:16:05 +0200 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0081_01C38F95.3E307CD0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: Sendmail virtuser problem X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Oct 2003 23:16:12 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_0081_01C38F95.3E307CD0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hello all, I have a strange problem with a sendmail (+milter +spamcop). Attached are my conf files. I have a stable box with a public ip address and, on this box, I run a jail with a private ip address, firewalled and natted. I would like to have a domain (domain.com) on my box which redirect every mail for this domain to the jail. The jail and the box are running different instances of the sendmail daemon. The box is a mail server for multiple domain and just one of them should go to the jail. I tried the %1@jail flag, in the virtuser table (after having rebuilt virtusertable and reloaded sendmail) but with no success. I still get unknown user and the mail is not redirected to the jail. Any suggestions? Thanks in advance, Michel ------=_NextPart_000_0081_01C38F95.3E307CD0 Content-Type: application/octet-stream; name="virtusertable" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="virtusertable" # $FreeBSD: src/etc/mail/virtusertable.sample,v 1.1.2.2 2000/11/03 = 07:23:50 dirk Exp $ # # Map one or all usernames at a source hostname to a specific (or the = same) # username at another target hostname. Remember to add the source = hostname # to /etc/mail/local-host-names so that sendmail will accept mail for = the # source hostname. # @domain.com %1@jail ------=_NextPart_000_0081_01C38F95.3E307CD0 Content-Type: application/octet-stream; name="freebsd.mc" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="freebsd.mc" divert(-1) # # Copyright (c) 1983 Eric P. Allman # Copyright (c) 1988, 1993 # The Regents of the University of California. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the = distribution. # 3. All advertising materials mentioning features or use of this = software # must display the following acknowledgement: # This product includes software developed by the University of # California, Berkeley and its contributors. # 4. Neither the name of the University nor the names of its = contributors # may be used to endorse or promote products derived from this = software # without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' = AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR = PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE = LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR = CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE = GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, = STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY = WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # # # This is a generic configuration file for FreeBSD 4.X and later = systems. # If you want to customize it, copy it to a name appropriate for your # environment and do the modifications there. # # The best documentation for this .mc file is: # /usr/share/sendmail/cf/README or # /usr/src/contrib/sendmail/cf/README # divert(0) VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.10.2.18 2003/04/24 = 16:57:30 gshapiro Exp $') OSTYPE(freebsd4) DOMAIN(generic) dnl Jail stuff to listen only on server public address define(`confDONT_PROBE_INTERFACES', `True') dnl DAEMON_OPTIONS(`Name=3Dtheblinis.net, Addr=3Dnikita.theblinis.net, = Family=3Dinet') DAEMON_OPTIONS(`Port=3Dsmtp,Addr=3Dmyhostname.net, Name=3DMTA, = Family=3Dinet') DAEMON_OPTIONS(`Port=3D587,Addr=3Dmyhostname.net, Name=3DMSA, M=3DE, = Family=3Dinet') DAEMON_OPTIONS(`Name=3Dlocalhost, Addr=3Dlocalhost, Family=3Dinet') FEATURE(`no_default_msa') FEATURE(access_db, `hash -o -T /etc/mail/access') FEATURE(blacklist_recipients) FEATURE(local_lmtp) FEATURE(mailertable, `hash -o /etc/mail/mailertable') dnl FEATURE(relay_based_on_MX) FEATURE(virtusertable, `hash -o /etc/mail/virtusertable') dnl Uncomment to allow relaying based on your MX records. dnl NOTE: This can allow sites to use your server as a backup MX without dnl your permission. dnl FEATURE(relay_based_on_MX) dnl DNS based black hole lists dnl -------------------------------- dnl DNS based black hole lists come and go on a regular basis dnl so this file will not serve as a database of the available servers. dnl For that, visit dnl = http://directory.google.com/Top/Computers/Internet/Abuse/Spam/Blacklists/= dnl Uncomment to activate Realtime Blackhole List dnl information available at http://www.mail-abuse.com/ dnl NOTE: This is a subscription service as of July 31, 2001 dnl FEATURE(dnsbl) dnl Alternatively, you can provide your own server and rejection = message: dnl FEATURE(dnsbl, `blackholes.mail-abuse.org', `"550 Mail from " = $&{client_addr} " rejected, see http://mail-abuse.org/cgi-bin/lookup?" = $&{client_addr}') FEATURE(`enhdnsbl', `bl.spamcop.net', `"Spam blocked see: = http://spamcop.net/bl.shtml?"$&{client_addr}', `t')dnl=20 dnl Dialup users should uncomment and define this appropriately dnl define(`SMART_HOST', `your.isp.mail.server') dnl Uncomment the first line to change the location of the default dnl /etc/mail/local-host-names and comment out the second line. dnl define(`confCW_FILE', `-o /etc/mail/sendmail.cw') define(`confCW_FILE', `-o /etc/mail/local-host-names') dnl Uncomment both of the following lines to listen on IPv6 as well as = IPv4 dnl DAEMON_OPTIONS(`Name=3DIPv4, Family=3Dinet') dnl DAEMON_OPTIONS(`Name=3DIPv6, Family=3Dinet6') define(`MILTER', 1) INPUT_MAIL_FILTER(`milter-amavis', = `S=3Dlocal:/var/amavis/amavis-milter.sock, F=3DT, = T=3DS:10m;R:10m;E:10m') define(`confLOG_LEVEL',`98') define(`confBIND_OPTS', `WorkAroundBrokenAAAA') define(`confNO_RCPT_ACTION', `add-to-undisclosed') define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy') MAILER(local) MAILER(smtp) ------=_NextPart_000_0081_01C38F95.3E307CD0--