best options for a *WORKING* MTA
sergio de Almeida Lenzi
lenzi.sergio at gmail.com
Mon Jun 1 23:28:06 UTC 2015
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
touch mailertable virtusertable access aliases
than copy the files: sendmail.mc and localh-host-names into
edit /etc/rc.conf, be sure to have a line
in the /etc/mail.... command: make
this will build the config files for sendmail
start sendmail with the command: service sendmail restart
every user you have in your machine will receive email
with your login...
user at yourdomain.com
bobuser at 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.
# 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
# 3. All advertising materials mentioning features or use of this
# 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
# may be used to endorse or promote products derived from this
# without specific prior written permission.
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS''
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
# 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
# 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
VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 184.108.40.206.2.1
2009/10/25 01:10:29 kensmith Exp $')
FEATURE(access_db, `hash -o -T<TMPF> /etc/mail/access')
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)
dnl DAEMON_OPTIONS(`Name=IPv6, Family=inet6, Modifiers=O')
===========local-host-names====edit as apropriate========
More information about the freebsd-questions