Re: Recommended method for blasting the queue clean- can smtpctl be used?

2016-02-25 Thread Gilles Chehade
On Thu, Feb 25, 2016 at 10:17:55AM -0800, Seth wrote:
> On Tue, 23 Feb 2016 21:44:22 -0800, Sunil Nimmagadda 
> wrote:
> >This was committed the same day as I shared the diff on list...
> >
> >commit 376147cc2686eca13e1ade1d121be2c5074c178b
> >Author: Sunil Nimmagadda 
> >Date:   Thu Jul 2 19:38:07 2015 +0530
> >
> >Let "resume envelope", "pause envelope" and "remove" subcommands
> >accept "all" as a valid argument.
> 
> That's odd because it does not seem to be available in the 5.7.3 release
> 
> $ sudo smtpd -h
> version: OpenSMTPD 5.7.3
> usage: smtpd [-dhnv] [-D macro=value] [-f file] [-P system] [-T trace]
> 
> $ sudo smtpctl remove all
> possibilities are:
> remove 
> remove 
> 

yes, the release was a bugfix release, new features were not backported.

remove all will be part of the next major release scheduled in 2 months.

in the meantime (untested):

   smtpctl show queue |\
   cut -d\| -f1 |\
   while read line; do smtpctl remove ${line}; done

-- 
Gilles Chehade

https://www.poolp.org  @poolpOrg

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: forwarding email server & gmail

2016-02-25 Thread Ryan Kavanagh
I'm afraid I don't have an answer to your particular question. In case
nothing else comes up and you decide to reconsider the idea of running a
spam filter, I've been using bgp-spamd[0] quite successfully on a
machine with very few resources and have been getting virtually no spam.
At the very least, even if you decide to continue forwarding everything
to Gmail, it would eliminate much of the spam you're currently
forwarding to Gmail and would hopefully get your non-spam to spam ratio
to an acceptable level.

Best,
Ryan

[0] http://bgp-spamd.net/

-- 
|_)|_/  Ryan Kavanagh   | Debian Developer
| \| \  http://ryanak.ca/   | GPG Key 4A11C97A

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



forwarding email server & gmail

2016-02-25 Thread Jason A. Donenfeld
Hi guys,

I've been running OpenSMTPD for a long time now forwarding mail to my
gmail account. It's a pretty basic rig - there are just a series of
forwarding rules, and different @somedomain.com emails get forwarded
to different @gmail.com emails.  I have DKIM, SPF, and even DMARC all
set up correctly. Outgoing emails that an authorized user on the MTA
sends are DKIM signed. Forwarding emails aren't, which is the correct
behavior.

It turns out this all is a lot harder than I initially thought. Gmail
often blocks spam at the SMTP level. My server tries to deliver to my
gmail account a piece of spam email, gmail's SMTP servers say "no way
josé here's error 502", and then my server generates a bounce email.
This bounce email contains the spam contents of the email that was
initially sent, meaning now my server is sending spam across the
Internet! My fix for this was to patch [1] OpenSMTPD not to include
the body of the email, but rather only the headers. This prevents my
IP from being blacklisted _too_ quickly. But still, bounce messages
are sent, and sometimes my IP does get banned by an organization I
send email to, and I have to apply for whitelisting and it's a
tremendous PITA. The other issue is that Google is now in the habit of
replying "you're forwarding spam; don't do that; bye" to my server,
and it doesn't know that my server is just forwarding the message. As
such, my IP's reputation with Google is steadily becoming horrible
over time.

Is there a good one-stop fix for this? The whole reason I'm still
using Gmail is because I like its spam filter! I certainly don't want
to run an additional spam filter on my OpenSMTPD machine. Are there
other configuration things I can do to make the situation better?

Thanks,
Jason



[1] https://bpaste.net/show/fbcc2134cfda

--
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org