Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Jun 2015 08:06:36 +0800 (CST)
From:      "cherry zhang" <lechensales@vip.163.com>
To:        freebsd-questions@freebsd.org
Subject:   smart home base device
Message-ID:  <5a5d13d4.15423.14db1975c27.Coremail.lechensales@vip.163.com>

next in thread | raw e-mail | index | archive | help
CgoKRGVhciAsCgpZb3Ugd2lsbCB1c2Ugc21hcnQgZGV2aWNlIGluIHlvdXIgaG91c2UgaW4gdGhl
IGZlYXR1cmUgLHRoZSBQTEMgKFBvd2VybGluZSBjb21tdW5pY2F0aW9uICkgd2lsbCBiZSB5b3Vy
IGJlc3QgY2hvaWNlIGZvciBuZXR3b3JrIGNvbnN0cnVjdGlvbi4KCldlIGFyZSB0aGUgbWFudWZh
Y3R1cmVyIG9mIFBPRSArUExDLCB3aGljaCAgY2FuIHN1cHBseSBEQyA1NVYsMzBXIHRvIHlvdXIg
ZGV2aWNlIHdpdGhvdXQgYW55IHBvd2VyIHVuaXQuICxJRUVFODAyLjMgYXQmYWYgc3RhbmRhcmQg
IGJvdGggYXJlIGF2YWlsYWJsZS5Ob3cgd2UgYWxzbyBoYXZlIERDMTJWLDFBIFBvZSBwb3dlcmxp
bmUgYWRhcHRlci4KCllvdSBhbHNvIGNhbiBtYXRjaCB3aXRoIG1hc3RlciB0byBjb25zdHJ1Y3Qg
eW91ciBvd24gbmV0d29yayBvciBzdXBwbHkgc2VydmljZSB0byB5b3VyIGNsaWVudHMgY29udmVu
aWVudGx5LkluZHVzdHJ5IE1WIDEwMDBNIHBvd2VybGluZSBhZGFwdGVyIChHLmhuKSBhbmQgNzQ1
MCBob21lcGx1ZyBBVjIgIHBvd2VybGluZSBhZGFwdGVycyBhcmUgYWxzbyBhdmFpbGFibGUuCgpZ
b3UgY2FuIGNvbm5lY3QgbmV0d29yayBmcm9tIGFueXdoZXJlIHlvdSBjYW4gZmluZCBhIG91dGxl
dCAgLk91ciBwcm9kdWN0cyBjYW4gYmUgdXNlZCBpbiBmYW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jb20vCkVtYWlsOmNoZXJyeS56aGFuZ0B3b25kZXJ0ZWsu
Y29tCiAgICAgICAgICBsZWNoZW5zYWxlc0B2aXAuMTYzLmNvbQpza3lwZTpsZWNoZW50ZWsKVEVM
Ois4Ni01MTItODM2NzAwNzgtMTAxNgogICA=
From owner-freebsd-questions@FreeBSD.ORG  Tue Jun  2 01:20:56 2015
Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
Delivered-To: freebsd-questions@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by hub.freebsd.org (Postfix) with ESMTPS id 1A70CDE2
 for <freebsd-questions@freebsd.org>; Tue,  2 Jun 2015 01:20:56 +0000 (UTC)
 (envelope-from freebsd-questions@m.gmane.org)
Received: from plane.gmane.org (plane.gmane.org [80.91.229.3])
 (using TLSv1 with cipher AES256-SHA (256/256 bits))
 (Client did not present a certificate)
 by mx1.freebsd.org (Postfix) with ESMTPS id CE08016E9
 for <freebsd-questions@freebsd.org>; Tue,  2 Jun 2015 01:20:55 +0000 (UTC)
 (envelope-from freebsd-questions@m.gmane.org)
Received: from list by plane.gmane.org with local (Exim 4.69)
 (envelope-from <freebsd-questions@m.gmane.org>) id 1Yzask-0004Uy-Lm
 for freebsd-questions@freebsd.org; Tue, 02 Jun 2015 03:20:43 +0200
Received: from 171.5.95.201 ([171.5.95.201])
 by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
 id 1AlnuQ-0007hv-00
 for <freebsd-questions@freebsd.org>; Tue, 02 Jun 2015 03:20:42 +0200
Received: from myawaddy by 171.5.95.201 with local (Gmexim 0.1 (Debian))
 id 1AlnuQ-0007hv-00
 for <freebsd-questions@freebsd.org>; Tue, 02 Jun 2015 03:20:42 +0200
X-Injected-Via-Gmane: http://gmane.org/
To: freebsd-questions@freebsd.org
From: AnthonyL <myawaddy@163.com>
Subject: Re: best options for a *WORKING* MTA
Date: Tue, 2 Jun 2015 01:20:20 +0000 (UTC)
Lines: 45
Message-ID: <mkj0cj$89h$1@ger.gmane.org>
References: <CAGBxaXn2OLg0ON8-YsNQbSDnJ8jEyqV6gFJANVyvtGtURSo8eg@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Complaints-To: usenet@ger.gmane.org
X-Gmane-NNTP-Posting-Host: 171.5.95.201
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2)
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.20
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/>;
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 02 Jun 2015 01:20:56 -0000

On Mon, 01 Jun 2015 12:48:46 -0400, Aryeh Friedman wrote:

> 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).

It's not simple. I've always found online blogger's tutorials to be a 
waste of my time. You should be reading only the documentation provided 
by Postfix.org itself and also your distribution's Postfix specific 
documentation; FreeBSD, Debian etc. Read both, and make sure you are 
reading the documentation for the correct versions of both your distro 
and Postfix.

For me, there really were many hours of frustration caused by overlooking 
the simple gotchas written in bold print in both Postfix's and my 
distro's documentation. These are often missing from the blogger's 
tutorials you will find by querying the search engines for "Postfix 
Configuration How To."

Don't try to do it all at once with TLS/Cryus-sasl/Spamassasin/Dovecot on 
your first attempt. I've always succeeded taking it one step at a time 
and testing each config change with either telnet or "openssl s_client," 
before adding more changes. When testing I send test messages to 
mailinator.com instead of a real email address to avoid being blacklisted 
for sending too many test messages.

Make one configuration change, then test that it works, then back it up. 
This way you can rollback to a working configuration if the next change 
fails. Take baby steps; Is the port open? Is it firewalled? Is anybody 
listening on that port? Is Postfix even running?

I've found the simplest way by far to set up a working mailserver is to 
read the fine manual [RTFM]. Postfix's documentation is excellent.

I could kick myself in the head for each time I've goggled for a quick 
and easy "how to" tutorial instead of reading the manuals.

The tutorials never tell you to trun off your partially tested mailserver 
when you are not actually testing it. Spammers found one of my partially 
configured Postfix mailservers that I left running overnight on a VPS and 
sent out 40k plus messages before my VPS was banned/closed and my IP was 
blacklisted. Ha!

Good luck.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5a5d13d4.15423.14db1975c27.Coremail.lechensales>