From owner-freebsd-questions@FreeBSD.ORG Mon Jun 1 23:28:05 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E9F186BD for ; Mon, 1 Jun 2015 23:28:05 +0000 (UTC) (envelope-from lenzi.sergio@gmail.com) Received: from mail-vn0-x231.google.com (mail-vn0-x231.google.com [IPv6:2607:f8b0:400c:c0f::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9ECDA1BFD for ; Mon, 1 Jun 2015 23:28:05 +0000 (UTC) (envelope-from lenzi.sergio@gmail.com) Received: by vnbg62 with SMTP id g62so18473013vnb.8 for ; Mon, 01 Jun 2015 16:28:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:from:to:in-reply-to:references:disposition-notification-to :content-type:date:message-id:mime-version; bh=XYdkVYneXpy8Z/GBIq9QbpXcevAIb2zhJGEpD/Uavsc=; b=yi/8N1ngKY9Ez6j7NCZZOFtjJstVEBTYwgk9qIZ7RcN/0f+dWhZBMqJ79mXnBSwi0H 4VXlbIPutAJftI07m4UbMdvQN233r7UGFTzmR2CCoeT3ouAV2A33fbVAu8FbOCaU9mpw E49aVgVDl7i5iVUnYgkpeTcylAVQlELQeHFnKpmoLsVun/DvQDR9pGcb9ZMRE32yiy8z NjCgNmNLJTpw5WfxIpfAveciN/TdZeck8vrQiYqAuUrzh5J2rGzKbHFJ11nnb1wtkUOy vMPlbw8MqQSIA+GCPt+IcH3iA2OBYO/OaDF5umonQC06S2vcRIWtfp3Viy8shHr5updb kLtQ== X-Received: by 10.52.136.66 with SMTP id py2mr32442287vdb.75.1433201284570; Mon, 01 Jun 2015 16:28:04 -0700 (PDT) Received: from [192.168.6.123] ([179.184.51.72]) by mx.google.com with ESMTPSA id q9sm23868387vdb.20.2015.06.01.16.28.02 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Mon, 01 Jun 2015 16:28:03 -0700 (PDT) Subject: Re: best options for a *WORKING* MTA From: sergio de Almeida Lenzi To: freebsd-questions@freebsd.org In-Reply-To: References: Date: Mon, 01 Jun 2015 20:27:59 -0300 Message-ID: <1433201279.97664.16.camel@lenzinote.lenzicasa> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jun 2015 23:28:06 -0000 Em Seg, 2015-06-01 às 12:48 -0400, Aryeh Friedman escreveu: > I have tried every which way I can find in the handbook and/or on the net > to get a working mail server and the best I can do get the default sendmail > to answer on localhost only (postfix seems to be completely broken). > Where can I find a good *SIMPLE* set of instructions on how to set up a > working mail server to accept mail for my domain? > I use the old and reliable sendmail just 3 files and it works all the files in the /etc/mail cd /etc/mail touch mailertable virtusertable access aliases than copy the files: sendmail.mc and localh-host-names into the /etc/mail edit /etc/rc.conf, be sure to have a line sendmail_enable="YES" in the /etc/mail.... command: make this will build the config files for sendmail than... start sendmail with the command: service sendmail restart DONE... every user you have in your machine will receive email with your login... for example: user@yourdomain.com bobuser@yourdomain.com just be shore that the file /etc/mail/local-host-names have the name of your host AND in another line the name of your domain. DONE ========sendmail.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 5.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.37.2.1.2.1 2009/10/25 01:10:29 kensmith Exp $') OSTYPE(freebsd6) DOMAIN(generic) FEATURE(access_db, `hash -o -T /etc/mail/access') FEATURE(blacklist_recipients) FEATURE(local_lmtp) FEATURE(mailertable, `hash -o /etc/mail/mailertable') FEATURE(virtusertable, `hash -o /etc/mail/virtusertable') define(`confCW_FILE', `-o /etc/mail/local-host-names') dnl Enable for both IPv4 and IPv6 (optional) DAEMON_OPTIONS(`Name=IPv4, Family=inet') dnl DAEMON_OPTIONS(`Name=IPv6, Family=inet6, Modifiers=O') define(`confDONT_PROBE_INTERFACES',`yes') define(`confBIND_OPTS', `WorkAroundBrokenAAAA') define(`confNO_RCPT_ACTION', `add-to-undisclosed') define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy') MAILER(local) MAILER(smtp) ===========local-host-names====edit as apropriate======== yourdomain.com your.host.name.com =================