Unable to remove mail from queue

2020-05-31 Thread Mischa Peters
Hi All,

I just noticed something strange on one of my mailservers running OpenSMTPd 
6.7.0p1  (OpenBSD 6.7).
The mailserver was trying to deliver a spam mailbounce to fedex, it kept 
failing so I removed it from the queue.
The logs kept showing it was being delivered, eventhough nothing was showing in 
the queue.
After a restart of smtpd the message did show up in the queue again. 

root@smtp1:~ # smtpctl show queue
cd9b0933db878954|local|mta|auth|@|prvs=1417a4ec2a=bou...@nds.fedex.com|prvs=1417a4ec2a=bou...@nds.fedex.com|1590676002|1590676002|1590937323|0|inflight|99|

root@smtp1:/var/spool/smtpd/queue/cd/cd9b0933 # smtpctl remove cd9b0933db878954
1 envelope removed
root@smtp1:/var/spool/smtpd/queue/cd/cd9b0933 # smtpctl remove cd9b0933db878954
0 envelope removed
root@smtp1:/var/spool/smtpd/queue/cd/cd9b0933 # ls -la
total 52
drwx--  2 _smtpq  wheel512 May 28 16:26 .
drwx--  3 _smtpq  wheel512 May 30 20:49 ..
-rw---  1 _smtpq  wheel316 May 28 16:26 cd9b0933db878954
-rw---  1 _smtpq  wheel  19296 May 28 16:26 message
root@smtp1:/var/spool/smtpd/queue/cd/cd9b0933 # smtpctl show queue
root@smtp1:/var/spool/smtpd/queue/cd/cd9b0933 # rcctl restart smtpd
smtpd(ok)
smtpd(ok)
root@smtp1:/var/spool/smtpd/queue/cd/cd9b0933 # smtpctl show queue
cd9b0933db878954|local|mta|auth|@|prvs=1417a4ec2a=bou...@nds.fedex.com|prvs=1417a4ec2a=bou...@nds.fedex.com|1590676002|1590676002|1590937456|0|inflight|1|
root@smtp1:/var/spool/smtpd/queue/cd/cd9b0933 # ls -la
total 52
drwx--  2 _smtpq  wheel512 May 28 16:26 .
drwx--  3 _smtpq  wheel512 May 30 20:49 ..
-rw---  1 _smtpq  wheel316 May 28 16:26 cd9b0933db878954
-rw---  1 _smtpq  wheel  19296 May 28 16:26 message

I assume this is not the expected result. :)
What else can I collect to pinpoint what is going on, before I rm the files?

Mischa




Re: Greylisting

2016-09-11 Thread Mischa Peters
Hi Peter,

That is indeed a great article. Thank you for writing it. It gave me a new 
appreciation for spamd again. :)

Mischa


> On 11 Sep 2016, at 12:17, Peter N. M. Hansteen  wrote:
> 
>> On 09/10/16 19:10, Silvio Siefke wrote:
>> I search with google but I found nothing with greylisting and most about
>> spam is with shell scripts and pf. 
> 
> If all you've found is 'shell scripts and pf' I don't think you've
> looked very closely.
> 
> As Mischa mentioned earlier, on OpenBSD and other OSes with PF there's
> spamd(8), which was (for example) quite capable of shielding all my
> users from the recent 'voicemail' scam using only its default
> greylisting (see
> http://bsdly.blogspot.com/2016/08/the-voicemail-scammers-never-got-past.html
> about that particular incident, links to other articles about spamd(8)
> greylisting and related topics therein).
> 
> - Peter
> -- 
> Peter N. M. Hansteen, member of the first RFC 1149 implementation team
> http://bsdly.blogspot.com/ http://www.bsdly.net/ http://www.nuug.no/
> "Remember to set the evil bit on all malicious network traffic"
> delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.
> 
> -- 
> You received this mail because you are subscribed to misc@opensmtpd.org
> To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
> 


Re: Greylisting

2016-09-10 Thread Mischa Peters
Hi Silvio,

Have a look at spamd.
https://www.openbsd.org/spamd/index.html

Also runs on non-OpenBSD. 

Mischa


> On 10 Sep 2016, at 19:10, Silvio Siefke  wrote:
> 
> Hello,
> 
> is greylisting available in opensmtpd? I have so much spam and I use
> blacklist but it will not really work. 
> 
> 
> triolan.net.ua
> tpasites.com
> sak-ura.net
> zwaan.nl
> ibece.net
> mccurdycandler.com
> fischbach.co.uk
> hv.be
> outlook.com
> fischbach.co.uk
> ecolelasource.ch
> bvniel...@ymail.com
> 
> Can i write so or must be complete address?
> 
> 
> # Deliver locally messages coming back in from scanner
> accept tagged Scanned from local for domain  virtual  deliver 
> to maildir "~/maildir"
> accept from local for local alias  deliver to maildir "~/maildir"
> reject tagged Scanned
> 
> I search with google but I found nothing with greylisting and most about
> spam is with shell scripts and pf. 
> 
> Nice day
> Silvio
> 
> -- 
> You received this mail because you are subscribed to misc@opensmtpd.org
> To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
> 


Re: Crashing once a day and not auto-starting back

2016-05-05 Thread Mischa Peters
Hi All,

There was an awesome utility once, daedalus. Written in Ruby though. :)

http://portsmon.freebsd.org/portoverview.py?category=sysutils=daedalus

Mischa

--

> On 05 May 2016, at 17:30, Edgar Pettijohn  wrote:
> 
> You could have a cron job check that it's running and if not restart it. Plus 
> the email cron sends would give you a time frame to look for in the logs.
> 
> Sent from my iPhone
> 
>>> On May 5, 2016, at 9:58 AM, Mariano Baragiola  
>>> wrote:
>>> 
>>> On 05/05/16 11:51, Gilles Chehade wrote:
>>> 
>>> No it shouldn't autostart when it crashes.
>>> It shouldn't crash either.
>>> 
>>> Can you provide more details ?
>>> logs before the crash ?
>> 
>> Noted. Is it a way to autostart it again
>> if it crashes?
>> 
>> I just added the verbosity flag to smtpd,
>> so I guess I'll have more log details if
>> and as soon as it crashes again.
>> 
>> 
>> -- 
>> You received this mail because you are subscribed to misc@opensmtpd.org
>> To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
> 
> 
> -- 
> You received this mail because you are subscribed to misc@opensmtpd.org
> To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
> 


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