Date: Mon, 01 Jun 2015 20:27:59 -0300 From: sergio de Almeida Lenzi <lenzi.sergio@gmail.com> To: freebsd-questions@freebsd.org Subject: Re: best options for a *WORKING* MTA Message-ID: <1433201279.97664.16.camel@lenzinote.lenzicasa> In-Reply-To: <CAGBxaXn2OLg0ON8-YsNQbSDnJ8jEyqV6gFJANVyvtGtURSo8eg@mail.gmail.com> References: <CAGBxaXn2OLg0ON8-YsNQbSDnJ8jEyqV6gFJANVyvtGtURSo8eg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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<TMPF> /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 =================
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1433201279.97664.16.camel>