LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-11-2015, 02:17 AM   #1
said76
Member
 
Registered: Aug 2011
Posts: 113

Rep: Reputation: Disabled
Send notification to administrator when blacklisted IP sender


Hi,

I'm wondering if it's possible to send a notification email when an incoming email (which has been blacklisted) was intercepted before it got into my inbox.

Yesterday, I received this in my mail.log file
NOQUEUE: reject: RCPT from mail-hk2apc01on0094.outbound.protection.outlook.com[xxx.xxx.xxx.xxx]: 554 5.7.1 Service unavailable; Client host [xxx.xxx.xxx.xxx] blocked using ix.dnsbl.manitu.net; Your e-mail service was detected by mail.ixlab.de (NiX Spam) as spamming at Fri, 03 Jul 2015 02:50:32 +0200. Your admin should visit http://www.dnsbl.manitu.net/lookup.php?value

Unfortunately, this was a legitimate email which I was expecting to receive.

I don't want to send a notification email back to the sender but to myself as an administrator.

Would this be possible to do?

I'm running Postfix, Dovecot, Amavis, Spamassassin on my ubuntu Server 12.04.5 32bit.

Thank you very much in advance
 
Old 07-11-2015, 07:43 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Let me get this straight. Whenever you block an email you would like to receive an email instead of bouncing it? There is in fact a very simple solution which even includes the content of the blocked email.
 
Old 07-12-2015, 08:13 PM   #3
said76
Member
 
Registered: Aug 2011
Posts: 113

Original Poster
Rep: Reputation: Disabled
Thank you Smallpond for your reply.

Yes, What I want to be able to do is whenever incoming emails got rejected, I don't want to bounce them back to the senders (just drop it) but I want to be able to receive an email telling me there has been some emails being rejected. Then, I can decide what to do from there.

Would you care to share that solution with me?

Thank you very much
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Opensuse :postfix error: sender non-delivery notification , Email bounced xlimonta Linux - Software 6 07-17-2013 01:21 AM
blacklisted (see ssh-vulnkey(1)); refusing to send it cccc Programming 2 07-26-2009 07:51 AM
problem with an autoreply script that is send 2 times to the sender thierry_b Linux - Software 1 05-20-2009 03:47 AM
gmail notification, that can festival the sender ? frenchn00b Linux - General 1 10-26-2007 03:18 AM
LXer: Bonded Sender Overhauled As Google Nixes Pay-To-Send LXer Syndicated Linux News 0 04-25-2006 05:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration