From owner-freebsd-questions@freebsd.org Mon Jan 21 08:12:14 2019 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E18C9149BE16 for ; Mon, 21 Jan 2019 08:12:13 +0000 (UTC) (envelope-from plmahan@gmail.com) Received: from mail-vs1-xe2b.google.com (mail-vs1-xe2b.google.com [IPv6:2607:f8b0:4864:20::e2b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BD082749B8 for ; Mon, 21 Jan 2019 08:12:12 +0000 (UTC) (envelope-from plmahan@gmail.com) Received: by mail-vs1-xe2b.google.com with SMTP id t17so12077843vsc.8 for ; Mon, 21 Jan 2019 00:12:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xdxQo8wdzk+cy23d3Qlf/Eo66B+tKlWo2HBQlTEqh6Y=; b=bGSifNnAxfB70goM0cecED40qOuGeUMEkaD26nNbmB0c/gMr+z0oH19I83DvuI+o4z bS+RrsIwLdZ5I9q2V2hFzN0JUHrGpF+fPNbE2NEMgKdrz2ghHv638aRp4gxj/p5RljRC GifkOXun4EhJUQvryrQUugk/0oGNuKeZBoHUXtTr5TWQHaMyLRSSGI1qyg+xrYYosZWL KNOuIMqIWasCPyMp4ipEKZAoTIqg9Ka0Xb12/BEsfDqrxV6vwotSvricxMhQOSr/VPqM laHqgokKK8d6icrrKVJZ7/Hfg++Ytd2hYeSHk/gsNWpDalp8YF8V4/w00l7LJwi9W1ar 510w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xdxQo8wdzk+cy23d3Qlf/Eo66B+tKlWo2HBQlTEqh6Y=; b=g8hyzUe+KeyXyYsTtXqi43pww+BzPndStLM91vCN/SkS1Pw7EtgGnGzBXOzEU4uH/x hIvmqVE8YZJH/jDK4wdtOZyC3L2njw9yCCu8ZtIYnJ6y3Oqn57syY1dR4oZ7aFQZv2RL kMvnG+CrWrrOJgy6dXtVL3ljyQTWzLiwQtZQqs0kqVjq07hUYTSsuRXWJEjihY7wSgNT gid0WCI6DnYykqfaCnlTL1yBj5vQxgSoUHNVSLum5azedWbPZXpd0S1OT9nf68ileUx6 jDqaq03rCCJOF4+ByExnfVbgiqZxOIy/3SqK3Ev+wMrr3Q09wiLAJ7LtX85sQvofkHrC KqAA== X-Gm-Message-State: AJcUukeWwwz88dqyZ8KOSwqrOD6pzU0L6playZa4RHoby/A3EjR+Ny3L NzZ6mD9cB/7X+tdWNOtxpdK9w955Gg5wM1sOHKc= X-Google-Smtp-Source: ALg8bN56kMoNL7HzmZAZoN7DuxO/JfOaV2ODcfWGg0E0mi/fhcnlk3gxKhbC4Q1wU0aEhLLQRbkHfYpQIEPoO1GwjWA= X-Received: by 2002:a67:eed8:: with SMTP id o24mr10443831vsp.237.1548058332010; Mon, 21 Jan 2019 00:12:12 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Patrick Mahan Date: Mon, 21 Jan 2019 00:12:00 -0800 Message-ID: Subject: Re: Trying to understand some email issues To: Odhiambo Washington Cc: User Questions X-Rspamd-Queue-Id: BD082749B8 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=bGSifNnA; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of plmahan@gmail.com designates 2607:f8b0:4864:20::e2b as permitted sender) smtp.mailfrom=plmahan@gmail.com X-Spamd-Result: default: False [-6.76 / 15.00]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_SHORT(-0.98)[-0.975,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[b.2.e.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(-2.78)[ip: (-9.56), ipnet: 2607:f8b0::/32(-2.40), asn: 15169(-1.85), country: US(-0.08)]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jan 2019 08:12:14 -0000 Thanks, for the feedback. I have been reading the postfix documentation, though I agree I don't have a good hand on understand its logs. I am fairly certain, no local users are sending to these accounts. Which is why I am confused about these emails from the yahoo mail server. But thanks for the steer. Patrick On Sun, Jan 20, 2019 at 11:31 PM Odhiambo Washington wrote: > > > On Mon, 21 Jan 2019 at 09:35, Patrick Mahan wrote: > >> All, >> >> FreeBSD 11.2 >> >> Running postfix 3.3.2_1,1 >> >> I'm getting hammered with thousands of emails from yahoo.com - >> >> Here is an example - >> >> Jan 20 22:09:01 ns postfix/smtp[1308]: 2DA97A2E2EF: to=, >> relay=mx-aol.mail.gm0.yahoodns.net[98.137.157.43]:25, delay=13730, >> delays=13728/0.31/1.1/0.06, dsn=4.7.0, status=deferred (host >> mx-aol.mail.gm0.yahoodns.net[98.137.157.43] said: 421 4.7.0 [TSS04] >> Messages from 23.24.207.145 temporarily deferred due to user complaints - >> 4.16.55.1; see https://help.yahoo.com/kb/postmaster/SLN3434.html (in >> reply >> to MAIL FROM command)) >> >> I'm trying to determine if I am somehow relaying emails to yahoo.com, or >> is >> this someone attacking me. >> > > Your server's public IP address is 23.24.207.145, right? > Yahoo MX is "temporarily" (that is what SMTP Error Code 451 is. Code 550 > is "permanently") > rejecting mail from your server. > This is normal with Yahoo and you need to go to the given URL to > understand why and possible > ways of mitigating the issue. > The thing is that ultimately, after some retries, Yahoo servers may accept > the mail. > You need to check your Postfix logs for this particular, or other such > emails to see if they are > originated by your legit users/IPs. > > > >> I am pretty sure I have postfix to avoid acting like a relay for >> unauthenticated connections. But this maybe something I have messed up. >> This has been happening only since I upgraded to 11.2 (I was at 9.x). I >> also just recently switch from sendmail to postfix as well. >> > > You just need to sit down and read Postfix documentation and understand > it's internals, > especially the logs. Without a clear understanding of the logs, you should > be very worried > as a Mail SysAdmin, very worried! :-) > I am NOT a Postfix Admin, but I understand some stuff about it. I use Exim > as my preferred MTA. > > >> I can provide my postfix config on request if needed. >> > > Not necessary for this case. > However, I would advise you to sit easy if you followed a proper howto in > setting up your MTA. > Just take your time now to read about and understand the logging. > > >> >> Pointers to other mail-lists are welcomed. I decided to start here before >> jumping on the postfix mailing list. >> >> No problem. > > > -- > Best regards, > Odhiambo WASHINGTON, > Nairobi,KE > +254 7 3200 0004/+254 7 2274 3223 > "Oh, the cruft.", grep ^[^#] :-) >