LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-25-2011, 08:52 AM   #1
adrianTNT
LQ Newbie
 
Registered: Jul 2011
Posts: 12

Rep: Reputation: Disabled
Question Questions about Sendmail, logging and identifying bounces


Hello.
I have some questions about Sendmail (on CentOS) ...

In the /var/log/maillog there is a number next to ctladdr and I have no idea what is.

Code:
... to=John <john@example.com>, ctladdr=noreply@myserver.com (48/48), ...
1. What is the 48 of 48 ? Is there some kind of internal queue per sender? If so, where do I increase it?

2. Is there a reliable program that can analyze logs and list the bounce emails and date? I need it to filter old site subscribers.
By "reliable" I mean one that doesn't need 20 other components installed, because is a simple job of filtering a log file.

3. For the log filtering, maybe someone knows a SSH command that reads log, looks for " dsn=5.x.x" delivery error and saves the receiver and date to a text file.

Thanks.
 
Old 07-25-2011, 03:45 PM   #2
sandwormusmc
Member
 
Registered: Nov 2006
Distribution: Fedora 15 x86_64
Posts: 76

Rep: Reputation: 24
Quote:
Originally Posted by adrianTNT View Post
Hello.
I have some questions about Sendmail (on CentOS) ...

In the /var/log/maillog there is a number next to ctladdr and I have no idea what is.

Code:
... to=John <john@example.com>, ctladdr=noreply@myserver.com (48/48), ...
1. What is the 48 of 48 ? Is there some kind of internal queue per sender? If so, where do I increase it?

2. Is there a reliable program that can analyze logs and list the bounce emails and date? I need it to filter old site subscribers.
By "reliable" I mean one that doesn't need 20 other components installed, because is a simple job of filtering a log file.

3. For the log filtering, maybe someone knows a SSH command that reads log, looks for " dsn=5.x.x" delivery error and saves the receiver and date to a text file.

Thanks.
That may all sound like a simple job on the surface, but what happens when:

- The script/program runs every five minutes, and keeps finding the same entries in the log (so it keeps writing the same lines to the text file)?
- The script/program modifies the log file to mark that entry as found, and messes up a program that also currently has the log file open?

As for Sendmail, http://etutorials.org/Server+Administration/Sendmail/ seems to be a good reference manual for Sendmail options ... I didn't see anything that stood out right away, as the MaxRecipientsPerMessage is set to unlimited by default.
 
Old 07-25-2011, 04:32 PM   #3
adrianTNT
LQ Newbie
 
Registered: Jul 2011
Posts: 12

Original Poster
Rep: Reputation: Disabled
It doesnt need to run often, once a day or every 3 days.
A current temp solution might work ok though: Mail log is copied to a temp folder by chrontab and a php script is run to load and filter dates and bounces from that file, it saves all to database (bounce address and date) then on next run it can skip the ones older than last date from database.
Unless someone has a better solution I will use what I have.

The other question remains, anyone knows what is the 48/48 next to ctladdr ? I could not find any info. I also have it as "(0/0)" and I seen it somewhere, I think on other logs online as (35/35) or something similar.
It is part of the ctladdr because the next coma is after* it.

Code:
Jul 24 10:13:02 ip-10-170-14-112 sendmail[13169]: p6OAZZZ13169: to=SomeUser <someuser@example.com>, ctladdr=noreply@myserver.com (48/48), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=31046, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (p6OAZZZ13170 Message accepted for delivery)
 
Old 07-25-2011, 05:19 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,159
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
Hi,
Quote:
The other question remains, anyone knows what is the 48/48 next to ctladdr ? I could not find any info. I also have it as "(0/0)" and I seen it somewhere, I think on other logs online as (35/35) or something similar.
It's the control user and its uid/gid. For more details take a look here

Regards

Last edited by bathory; 07-25-2011 at 05:22 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
sendmail subject logging thope Linux - Server 7 08-09-2010 04:27 PM
Sendmail config questions + Sendmail not reflecting changes to access db wbuik Linux - Networking 2 03-26-2009 05:02 AM
Getting rid of double bounces in sendmail sewer_monkey Linux - Enterprise 3 07-07-2004 11:34 AM
sendmail reports bounces but mail is successfully delivered sohmc Linux - Software 0 07-06-2004 06:40 AM
sendmail logging finegan Linux - Software 2 06-01-2002 12:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:54 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