From owner-freebsd-questions@FreeBSD.ORG Tue Jan 12 17:36:57 2010 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 6FC36106566B for ; Tue, 12 Jan 2010 17:36:57 +0000 (UTC) (envelope-from kline@thought.org) Received: from ethic.thought.org (plato.thought.org [209.180.213.209]) by mx1.freebsd.org (Postfix) with ESMTP id 3667D8FC08 for ; Tue, 12 Jan 2010 17:36:56 +0000 (UTC) Received: from thought.org (tao.thought.org [10.47.0.250]) (authenticated bits=0) by ethic.thought.org (8.14.3/8.14.3) with ESMTP id o0CHarEs025170; Tue, 12 Jan 2010 09:36:53 -0800 (PST) (envelope-from kline@thought.org) Received: by thought.org (nbSMTP-1.00) for uid 1002 kline@thought.org; Tue, 12 Jan 2010 09:36:53 -0800 (PST) Date: Tue, 12 Jan 2010 09:36:53 -0800 From: Gary Kline To: Jim Message-ID: <20100112173653.GA98372@thought.org> References: <80f4f2b21001120900j7418c725k95221bb06cde0dc1@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <80f4f2b21001120900j7418c725k95221bb06cde0dc1@mail.gmail.com> User-Agent: Mutt/1.4.2.3i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 23 years of service to the Unix community. X-Spam-Status: No, score=-0.0 required=3.6 tests=ALL_TRUSTED,BAYES_00, FH_DATE_PAST_20XX, J_CHICKENPOX_41, J_CHICKENPOX_66 autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on ethic.thought.org Cc: freebsd-questions@freebsd.org Subject: Re: sendmail issues - make fails to create aliases.db in /etc/mail 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: Tue, 12 Jan 2010 17:36:57 -0000 On Tue, Jan 12, 2010 at 12:00:03PM -0500, Jim wrote: > make in /etc/mail fails (silently) to create aliases.db. I touched all > the source files I modified to make sure they would be rebuilt (since > the last rebuild failed). What I am finding is that the command > "/usr/sbin/sendmail -bi -OAliasFile=/etc/mail/aliases" is not creating > aliases.db, nor is it creating any errors. I tried running > `/usr/sbin/sendmail -v -bi -OAliasFile=/etc/mail/aliases`, but aw no > errors from that, either. > > Anyone experienced something like this before and have suggestions on > what I should examine next? > > Thanks, > -Jim Stapleton > What happens if you do a grep aliases in /etc/mail? In my sensmail files I see references to aliases in the config *.cf and Makefile, and the aliases file itself. Did you edit any of these files? Should work by default. gary > > [root@mail-jail /etc/mail]# ls > Makefile freebsd.mc mail-jail.submit.cf > README freebsd.submit.cf mail-jail.submit.mc > access freebsd.submit.mc mailer.conf > access.db helpfile mailertable.sample > access.sample local-host-names sendmail.cf > aliases mail-jail.cf submit.cf > freebsd.cf mail-jail.mc virtusertable.sample > [root@mail-jail /etc/mail]# touch aliases; touch access; touch > local-host-names ; touch sendmail.cf; touch virtusertable.sample > [root@mail-jail /etc/mail]# make > /usr/sbin/makemap hash access.db < access > chmod 0640 access.db > /usr/sbin/sendmail -bi -OAliasFile=/etc/mail/aliases > chmod 0640 /etc/mail/aliases.db > chmod: /etc/mail/aliases.db: No such file or directory > *** Error code 1 > > Stop in /etc/mail. > > [root@mail-jail /etc/mail]# /usr/sbin/sendmail -v -bi > -OAliasFile=/etc/mail/aliases > sendmail: -O option ignored > postalias: dict_eval: const mail > postalias: dict_eval: const ipv4 > postalias: dict_eval: const > postalias: dict_eval: const > postalias: dict_eval: const > postalias: dict_eval: const > postalias: name_mask: ipv4 > postalias: dict_eval: const mail-jail.localdomain > postalias: dict_eval: const localdomain > postalias: dict_eval: const Postfix > postalias: dict_eval: expand > ${multi_instance_name:postfix}${multi_instance_name?$multi_instance_name} > -> postfix > postalias: dict_eval: const postfix > postalias: dict_eval: const maildrop > postalias: dict_eval: expand $myhostname, localhost.$mydomain, > localhost -> mail-jail.localdomain, localhost.localdomain, localhost > postalias: dict_eval: expand $myhostname -> mail-jail.localdomain > postalias: dict_eval: const > postalias: dict_eval: const /usr/local/libexec/postfix > postalias: dict_eval: const /var/db/postfix > postalias: dict_eval: const /usr/local/sbin > postalias: dict_eval: const /var/spool/postfix > postalias: dict_eval: const pid > postalias: dict_eval: const all > postalias: dict_eval: const > postalias: dict_eval: const double-bounce > postalias: dict_eval: const nobody > postalias: dict_eval: const hash:/etc/aliases > postalias: dict_eval: const 20090828 > postalias: dict_eval: const 2.6.5 > postalias: dict_eval: const hash > postalias: dict_eval: const deferred, defer > postalias: dict_eval: const > postalias: dict_eval: expand $mydestination -> mail-jail.localdomain, > localhost.localdomain, localhost > postalias: dict_eval: expand $relay_domains -> mail-jail.localdomain, > localhost.localdomain, localhost > postalias: dict_eval: const TZ MAIL_CONFIG LANG > postalias: dict_eval: const MAIL_CONFIG MAIL_DEBUG MAIL_LOGTAG TZ > XAUTHORITY DISPLAY LANG=C > postalias: dict_eval: const host > postalias: dict_eval: const > postalias: dict_eval: const += > postalias: dict_eval: const -=+ > postalias: dict_eval: const > debug_peer_list,fast_flush_domains,mynetworks,permit_mx_backup_networks,qmqpd_authorized_clients,relay_domains,smtpd_access_maps > postalias: dict_eval: const > postalias: dict_eval: const bounce > postalias: dict_eval: const cleanup > postalias: dict_eval: const defer > postalias: dict_eval: const pickup > postalias: dict_eval: const qmgr > postalias: dict_eval: const rewrite > postalias: dict_eval: const showq > postalias: dict_eval: const error > postalias: dict_eval: const flush > postalias: dict_eval: const verify > postalias: dict_eval: const trace > postalias: dict_eval: const proxymap > postalias: dict_eval: const proxywrite > postalias: dict_eval: const > postalias: dict_eval: const 2 > postalias: dict_eval: const 100s > postalias: dict_eval: const 100s > postalias: dict_eval: const 100s > postalias: dict_eval: const 100s > postalias: dict_eval: const 3600s > postalias: dict_eval: const 3600s > postalias: dict_eval: const 5s > postalias: dict_eval: const 5s > postalias: dict_eval: const 1000s > postalias: dict_eval: const 1000s > postalias: dict_eval: const 10s > postalias: dict_eval: const 10s > postalias: dict_eval: const 1s > postalias: dict_eval: const 1s > postalias: dict_eval: const 1s > postalias: dict_eval: const 1s > postalias: dict_eval: const 500s > postalias: dict_eval: const 500s > postalias: dict_eval: const 18000s > postalias: dict_eval: const 18000s > postalias: dict_eval: const 1s > postalias: dict_eval: const 1s > postalias: name_mask: host > postalias: inet_addr_local: configured 1 IPv4 addresses > postalias: mynetworks: 192.168.1.4/32 > postalias: dict_eval: const 192.168.1.4/32 > postalias: open hash /etc/aliases > postalias: Compiled against Berkeley DB version 1 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 7.79a release of Jottings: http://jottings.thought.org/index.php