Carlos Mennens a écrit :
> I was wondering if there is a simple way to have Postfix send all
> 'reject' messages regardless of the reason to a specific email like
> '[email protected]' and then in my /etc/aliases file just route all
> mail to 'reject' to a known recipient? I was looking to see what the
> best suggestion would be for setting this up via Postfix? I just have
> 5 users on my server and from time to time I notice rarely  there are
> some rejects but I would like to know about them rather than searching
> through logs. Anyone have any suggestions?
> 

what do you mean by "reject"? you'd like to get mail for things like:

Apr 21 00:02:31 imlil postmx/smtpd[41698]: NOQUEUE: reject: RCPT from
unknown[190.167.122.44]: 550 5.1.1 <[email protected]>:
Recipient address rejected: User unknown;
from=<[email protected]> to=<[email protected]>
proto=ESMTP helo=<jyqlmi.com>

or this:

Apr 21 00:19:04 imlil postmx/smtpd[41856]: NOQUEUE: reject: RCPT from
226.4.54.77.rev.vodafone.pt[77.54.4.226]: 554 5.7.1 Service unavailable;
Client host [77.54.4.226] blocked using zen.spamhaus.org;
http://www.spamhaus.org/query/bl?ip=77.54.4.226;
from=<[email protected]> to=<[email protected]> proto=ESMTP
helo=<vodafone.pt>

If it's so, then write a script that parses the logs and sends you mail
for each "NOQUEUE: reject:"

but do you really want that?

Reply via email to