Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Just gone live with a new Postfix mail server, sat in front of an Exchange box for inbound mail only.

It's set up to reject email for unknown recipients, which works fine, but I want to get a log of exactly what destination email addresses have been rejected, just to be sure no domains/recipients have been missed.

I've had a Google but come up blank. Is there a decent simple way to do this?

Thanks.

share|improve this question

3 Answers 3

up vote 6 down vote accepted

pflogsumm.pl is a great application to parse and produce statistics from postfix log files.

share|improve this answer
    
Just what I needed - thanks very much. –  tomfanning Jun 5 '09 at 11:11
    
Use it on 2 x MX Proxy servers (similar to your config) and has a number of good knob defaults (I mostly use the daily summary log.) p.s. Postfix works well as an outgoing proxy as well as the incoming that you're using it for now. –  samt Jul 4 '09 at 13:59

there are few tools that might help - http://www.postfix.org/addon.html#logfile

but the first step would be to check mail log, /var/log/mail.log or in similar directory, depending on how you have configured it and there you should see NOQUEUE: reject: lines with the information you need.

good luck! m

share|improve this answer

Try this : http://www.onlamp.com/pub/a/onlamp/2004/01/22/postfix.html quite simple..

share|improve this answer
    
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. –  Mark Henderson Jul 12 '12 at 22:25

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.