From owner-freebsd-questions@freebsd.org Thu Jul 9 12:38:06 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 84A8B369EA5 for ; Thu, 9 Jul 2020 12:38:06 +0000 (UTC) (envelope-from contact@evilham.com) Received: from yggdrasil.evilham.com (yggdrasil.evilham.com [46.19.33.155]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4B2bLP1C0Nz3yqy for ; Thu, 9 Jul 2020 12:38:04 +0000 (UTC) (envelope-from contact@evilham.com) Received: from yggdrasil.evilham.com (localhost [IPv6:::1]) by yggdrasil.evilham.com (Postfix) with ESMTP id 4B2bLF3m7qz12Z1 for ; Thu, 9 Jul 2020 14:37:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=evilham.com; h=from:to :subject:references:in-reply-to:date:message-id:mime-version :content-type; s=mail; bh=/EdAVw8P04TYyNEOgxoYMQGRpPo=; b=t2lwB9 5RNBFH28Fs/Vgu2VLxFPPmLQpuANQgOmsZpkrRlJM9V8tR50D+GU0isgeEUPK4F6 guIbEt3Rm4HAqeQnH2s0cZulaU2pp/40YDDzU236KfAasQtpOFTaBmtU4o7v434r zBKdVgJHEn1RAEIiq1Aa81O06lABA21VZWvZw= Received: from yggdrasil.evilham.com (unknown [IPv6:2a0a:e5c1:121:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by yggdrasil.evilham.com (Postfix) with ESMTPSA id 4B2bLF0Qykz12Z0 for ; Thu, 9 Jul 2020 14:37:56 +0200 (CEST) From: Evilham To: freebsd-questions@freebsd.org Subject: Re: Sending system mail to remote mail server References: <5FD21AAE-BEB7-4FAB-9F01-70403A59AA7D@kreme.com> <7cc8380a-9d6b-ca3e-4611-fa675bf5983c@beepc.ch> In-reply-to: <7cc8380a-9d6b-ca3e-4611-fa675bf5983c@beepc.ch> Date: Thu, 09 Jul 2020 14:37:55 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Rspamd-Queue-Id: 4B2bLP1C0Nz3yqy X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=fail (headers rsa verify failed) header.d=evilham.com header.s=mail header.b=t2lwB9 5; dmarc=pass (policy=none) header.from=evilham.com; spf=pass (mx1.freebsd.org: domain of contact@evilham.com designates 46.19.33.155 as permitted sender) smtp.mailfrom=contact@evilham.com X-Spamd-Result: default: False [-3.40 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.983]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_DKIM_REJECT(0.00)[evilham.com:s=mail]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.05)[-1.048]; RCVD_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx]; DKIM_TRACE(0.00)[evilham.com:-]; DMARC_POLICY_ALLOW(0.00)[evilham.com,none]; NEURAL_HAM_SHORT(-0.57)[-0.565]; DMARC_POLICY_ALLOW_WITH_FAILURES(-0.50)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:196752, ipnet:46.19.32.0/21, country:NL] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jul 2020 12:38:06 -0000 On dj., jul. 09 2020, xpetrl wrote: >> I'd like to setup my machines to send the local system mail to >> the mail server (things like the weekly repots to root, cron >> output, etc), which means setting up submission on these >> machines. I don't even know where to start on this. >> > You can start from here: > > https://www.freebsd.org/doc/handbook/outgoing-only.html I'd use dma, it's simple to automate and configure and is in base (unlike ssmtp). man 8 dma should get you started and there is also /usr/share/examples/dma/mailer.conf which tells you how to setup mailer.conf (see man 5 mailer.conf). -- Evilham