LinuxQuestions.org
Visit Jeremy's Blog.
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 12-07-2011, 02:36 AM   #1
SpeedyKun
LQ Newbie
 
Registered: Dec 2011
Posts: 23

Rep: Reputation: Disabled
Logwatch - Postfix issues


Hi all,

In section Postfix is this:

unverified_recipient_tempfail_action = defer_if_permit
unknown_address_tempfail_action = defer_if_permit
unknown_helo_hostname_tempfail_action = defer_if_permit
unverified_sender_tempfail_action = defer_if_permit

Does somebody know how to solve that?
Thank you.
 
Old 12-07-2011, 10:18 AM   #2
SpeedyKun
LQ Newbie
 
Registered: Dec 2011
Posts: 23

Original Poster
Rep: Reputation: Disabled
really nobody can help?
 
Old 12-21-2011, 03:29 PM   #3
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Update the postfix filter:

http://logreporters.sourceforge.net/
 
Old 12-22-2011, 04:59 AM   #4
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
What was the original problem at all - what needs to be solved there?
 
Old 12-22-2011, 05:54 AM   #5
SpeedyKun
LQ Newbie
 
Registered: Dec 2011
Posts: 23

Original Poster
Rep: Reputation: Disabled
I solved it I added that lines into logwatch ignore.conf file.
I really don't feel to compile that new filter for postfix.
 
Old 12-22-2011, 10:41 AM   #6
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
I believe the problem IDOL sees is unmatched log lines when setting the aforementioned postfix directives. These directives were added back in mid-2009. I believe these are handed in postfix-logwatch's postfix filter, and the OP probably has a very old version.

@IDOL - there is nothing to compile - there are only two text files to add / replace. Plus you'll get some documentation. :-)

Can you verify the version of the postfix filter you have installed?

Can you provide some sample log lines so that I can verify the filter handles these? This will help you and others.
 
Old 12-22-2011, 11:37 AM   #7
SpeedyKun
LQ Newbie
 
Registered: Dec 2011
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Mr. C. View Post

Can you verify the version of the postfix filter you have installed?
Well, postfix mail_version = 2.7.0, it's the same for filter?


Can you provide some sample log lines so that I can verify the filter handles these? This will help you and others.
What kind of logs u mean?

there is nothing to compile - there are only two text files to add / replace.
so u mean, all i hafto do is, i need to put postfix-logwatch and postfix-logwatch into /etc/logwatch/scripts/ directory?
 
Old 12-22-2011, 12:35 PM   #8
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Let's check your current version of the postfix filter being used by logwatch. This is independent of postfix itself.

The version of the file should be located in the file:

/usr/share/logwatch/scripts/services/postfix

You can try to run:

perl -T /usr/share/logwatch/scripts/services/postfix --version

but if your version is very old, try this:

grep -i version /usr/share/logwatch/scripts/services/postfix

What you'll do is download the gzip'd postfix-logwatch archive, extract the files, and there is a README inside the archive to guide you to install.
 
Old 12-23-2011, 02:36 AM   #9
SpeedyKun
LQ Newbie
 
Registered: Dec 2011
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Mr. C. View Post
Let's check your current version of the postfix filter being used by logwatch. This is independent of postfix itself.

The version of the file should be located in the file:

/usr/share/logwatch/scripts/services/postfix

You can try to run:

perl -T /usr/share/logwatch/scripts/services/postfix --version

but if your version is very old, try this:

grep -i version /usr/share/logwatch/scripts/services/postfix

What you'll do is download the gzip'd postfix-logwatch archive, extract the files, and there is a README inside the archive to guide you to install.
well so, here is the output: postfix: 1.38.01
 
Old 12-23-2011, 10:50 AM   #10
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Pretty old version: 2010-03-02 (version: 1.39.01)

I'd suggest updating to the latest. Then, you shouldn't need to ignore those lines in your ignore.conf file.
 
Old 12-24-2011, 03:22 AM   #11
SpeedyKun
LQ Newbie
 
Registered: Dec 2011
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Mr. C. View Post
Pretty old version: 2010-03-02 (version: 1.39.01)

I'd suggest updating to the latest. Then, you shouldn't need to ignore those lines in your ignore.conf file.
well, so i tried to copy those files into */scripts directory, but the problem persists now
 
Old 12-24-2011, 10:43 AM   #12
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Can you post a couple of the exact log lines that are being reported as Unmatched?
 
Old 12-24-2011, 11:59 AM   #13
SpeedyKun
LQ Newbie
 
Registered: Dec 2011
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Mr. C. View Post
Can you post a couple of the exact log lines that are being reported as Unmatched?
yeh, sure, here is it:

**Unmatched Entries**

1 Dec 23 03:56:01 localhost postfix/smtpd[7014]: unverified_recipient_tempfail_action = defer_if_permit
1 Dec 23 13:01:55 localhost postfix/smtpd[8678]: unknown_address_tempfail_action = defer_if_permit
1 Dec 23 08:03:21 localhost postfix/smtpd[7740]: reject_invalid_hostname: ham-cannon.twitter.com
1 Dec 23 14:52:37 localhost postfix/smtpd[9062]: unverified_recipient_tempfail_action = defer_if_permit
1 Dec 23 04:46:48 localhost postfix/smtpd[7052]: reject_invalid_hostname: ns304586.ovh.net

and so on.
 
Old 12-24-2011, 05:03 PM   #14
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Ah, ok you've enabled debug output in postfix, so these typically would not be in the log file normally.

There are many possible debug diagnostics that are output at different; some I've handled, others I haven't.

If you'd like me to add some additional ones, can you send me a log file? You can send them to the email address on the logreporters site or contained in the README.

I'll update the filter to include those mentioned above.
 
Old 01-11-2012, 08:22 PM   #15
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
I've posted a new release that resolves these issues.

http://logreporters.sourceforge.net/
 
  


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
Logwatch, postfix, message sent... Please read... sblantipodi Linux - Server 8 07-19-2009 07:46 PM
Logwatch and Postfix fukawi2 Linux - Newbie 13 03-29-2009 01:47 PM
Postfix Logwatch garbled output after upgrade etch to lenny siggma Linux - Server 3 07-29-2008 12:10 AM
Logwatch & Postfix Question msjenkins Linux - General 0 11-27-2005 08:04 PM

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

All times are GMT -5. The time now is 02:05 PM.

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