From nobody Tue Oct 12 23:50:43 2021 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 724DF1804644 for ; Tue, 12 Oct 2021 23:50:47 +0000 (UTC) (envelope-from rcarter@pinyon.org) Received: from h2.pinyon.org (h2.pinyon.org [65.101.20.170]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4HTXVF6pp0z4sfK for ; Tue, 12 Oct 2021 23:50:45 +0000 (UTC) (envelope-from rcarter@pinyon.org) Received: from [10.0.10.15] (unknown [10.0.10.15]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by h2.pinyon.org (Postfix) with ESMTPSA id 508981734B for ; Tue, 12 Oct 2021 16:50:44 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pinyon.org; s=dkim; t=1634082644; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=t3s2fCmM7URibYC1fcPBusQhTzk0vrcRe9zxZH8m5nU=; b=Bvqc41ho4D6w+sl9NDq6LmgozkaYvswHFzfyV4xdFeAxDZfrVEfFq6hYbQiU7svWajLyL5 lDno3OUjbTrtlY0Gfsa9RMlwx2uDdoqtTKZyzsC7i28sMxqaHLRGePs7nyRGdFv/W2Sh61 pHvdxOrVw3/fTKXZFJqqHxhPa9Lu4SY= Message-ID: <2d7b22a2-8452-702b-0ea9-4195deca8480@pinyon.org> Date: Tue, 12 Oct 2021 16:50:43 -0700 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Firefox/91.0 Thunderbird/91.2.0 Subject: Re: Mail Traffic Content-Language: en-US To: questions@freebsd.org References: <20211012080454.f14bb36b1d92b67aaf7e1c78@web.de> <619c32af-ff87-70ac-a02f-ae1c6f7ed319@pp.dyndns.biz> From: "Russell L. Carter" In-Reply-To: <619c32af-ff87-70ac-a02f-ae1c6f7ed319@pp.dyndns.biz> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.23 X-Rspamd-Server: h2 X-Rspamd-Queue-Id: 4HTXVF6pp0z4sfK X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=pinyon.org header.s=dkim header.b=Bvqc41ho; dmarc=none; spf=pass (mx1.freebsd.org: domain of rcarter@pinyon.org designates 65.101.20.170 as permitted sender) smtp.mailfrom=rcarter@pinyon.org X-Spamd-Result: default: False [-3.11 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[pinyon.org:s=dkim]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.65)[-0.647]; DMARC_NA(0.00)[pinyon.org]; DKIM_TRACE(0.00)[pinyon.org:+]; NEURAL_HAM_SHORT(-0.98)[-0.977]; NEURAL_HAM_MEDIUM(-0.99)[-0.989]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:209, ipnet:65.101.0.0/18, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 10/12/21 16:39, Morgan Wesström wrote: > On 2021-10-12 08:04, Silvio Siefke wrote: >> Hello, >> >> I have VPS as webhost which blocked port 25 by ISP. Is there a chance >> to route the traffic over the vpn Network? >> >> My Mailserver had the internal IP 192.168.0.109. I had try it with hosts >> file but it will not work. >> >> Is there a chance to make it with pf? >> >> Thank you for ideas. >> >> Silvio >> > > I didn't fully understand your first paragraph but this is how I do it > and I hope I understood your question correctly. :) > > My ISP blocks outgoing port 25 too (like most ISPs do these days). I > have a VPS on RamNode, who doesn't block anything, and I run my > mail-server there. I connect my LAN and that VPS through an OpenVPN > tunnel and I can now send and receive mail from any machine on my LAN > with no problems. > > In pf I just do a pass all on the tun interfaces but nothing stops you > from creating a rule that just pass the data on port 25/587. We had a related discussion back in February about this and the use of SMTP forwarders. I've been using duocircle's free tier and it so far is perfect. If you're interested I think this might be a good entry point in the archives: https://docs.freebsd.org/cgi/getmsg.cgi?fetch=47674+0+archive/2021/freebsd-questions/20210307.freebsd-questions Russell > > Regards > Morgan >