Sponsored Content
Full Discussion: maillog extract
Top Forums UNIX for Advanced & Expert Users maillog extract Post 302091446 by new2ss on Tuesday 3rd of October 2006 04:28:38 AM
Old 10-03-2006
maillog extract

Hi all, below are some text extracted from maillog. I have a cronjob running at 1720 daily and it will send mails to me. it was working fine on the 27 Sept.
Code:
Sep 27 17:20:01 venus sendmail[32711]: k8R9K0OR032710: from=user1, size=580, class=0, nrcpts=1, msgid=<200609270920.k8R9K0OR032710@venus.domain.com>, relay=user1@localhost
Sep 27 17:20:01 venus sendmail[32711]: k8R9K0OR032710: to=user1, ctladdr=user1 (502/502), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30580, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Sep 27 17:20:01 venus sendmail[32716]: k8R9K1Vq032713: from=user1, size=175, class=0, nrcpts=6, msgid=<200609270920.k8R9K1Vq032713@venus.domain.com>, relay=user1@localhost
Sep 27 17:20:01 venus sendmail[32716]: k8R9K1Vq032713: to=abccba@hotmail.com, ctladdr=user1 (502/502), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=180175, relay=mail.domain.com. [111.11.111.111], dsn=2.0.0, stat=Sent (k8R9K2vh015544 Message accepted for delivery)

However, on the 30 Sept, i have stopped receiving mails.
Code:
Sep 30 17:20:02 venus sendmail[7453]: k8U9K0AH007413: from=user1, size=580, class=0, nrcpts=1, msgid=<200609300920.k8U9K0AH007413@venus.domain.com>, relay=user1@localhost
Sep 30 17:20:02 venus sendmail[7453]: k8U9K0AH007413: to=user1, ctladdr=user1 (502/502), delay=00:00:02, xdelay=00:00:00, mailer=relay, pri=30580, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]

I don't recall making any changes to my scripts. From the maillog on 30 sept, it seems that the relay field is set to the host itself. It is not supposed to be the case.
(1)Does anyone know how are the various fieldnames set?
(2)I also realise that the dsn values for success sending is 2.0.0 and failure sending is 4.0.0. Can i infer any clue here?
(3)is there anyway i can retrieve the message based on the msgid?

Last edited by new2ss; 10-03-2006 at 05:37 AM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

maillog - Error Message

dear expert Im using shell script to send mail from unix server. My script like below: #! /bin/sh -f # Set necessary variables #export PATH #PATH=/bin:/usr/bin:/usr/ucb:/usr/local/bin:/usr/contrib/bin PATH=/bin:/usr/bin:/usr/ucb:/usr/local/bin:/usr/contrib/bin:$PATH; export PATH... (0 Replies)
Discussion started by: unknown2205
0 Replies

2. UNIX for Dummies Questions & Answers

extract only filename

Hi, I want to display only the file names of the ls command with a delimiter of comma. For example:- ls /etc/dir/N* gives the following output /etc/dir/N1 /etc/dir/N2 /etc/dir/N3 I want the output as N1,N2,N3,-->Here i need the final comma also. Also, here /etc/dir is being... (2 Replies)
Discussion started by: dnat
2 Replies

3. UNIX for Advanced & Expert Users

maillog errrors

Watching my maillog this morning i have discovered some errors but I cant track down whats causing them. Jun 16 11:04:12 ws096 sendmail: m5GExW7e006613: Milter (spamass-milter): timeout before data read Jun 16 11:04:12 ws096 sendmail: m5GExW7e006613: Milter (spamass-milter): to error state Jun... (3 Replies)
Discussion started by: mcraul
3 Replies

4. Solaris

How to Extract

Hi All, How to extract User,Process Name,Arguments from the output of "/usr/ucb/ps -auxww" on Solaris? Please Reply... Thanks In Advance... Harikrishna (3 Replies)
Discussion started by: Harikrishna
3 Replies

5. UNIX for Advanced & Expert Users

/var/log/maillog isn't updating. Postfix related

can someone please help me figure how i can get maillog to start updating again? it just all of a sudden stopped. and postfix isn't writing to it anymore. I'm running a Ubuntu box 8.04 thanks (2 Replies)
Discussion started by: SkySmart
2 Replies

6. Shell Programming and Scripting

how to extract the value

hi i have a file which has following content: <config> <key>Protocol</key> <value>SIP</value> <config> i want a script which will see the value of Protocol is SIP. Can any one pls help me? (1 Reply)
Discussion started by: Aditya.Gurgaon
1 Replies

7. Solaris

Flood Messages in maillog

Hi All, I am getting large number of messages in below file /www/wls8/logs/HOSTS/tswebd01-zd01/maillog/maillog In past 24 hours, it has been increased by near to 1 GB. Can somebody help in finding, from where these messages are being generated and how to I stop them ? Same kind of messages... (11 Replies)
Discussion started by: solaris_1977
11 Replies

8. Shell Programming and Scripting

Search for a pattern,extract value(s) from next line, extract lines having those extracted value(s)

I have hundreds of files to process. In each file I need to look for a pattern then extract value(s) from next line and then search for value(s) selected from point (2) in the same file at a specific position. HEADER ELECTRON TRANSPORT 18-MAR-98 1A7V TITLE CYTOCHROME... (7 Replies)
Discussion started by: AshwaniSharma09
7 Replies

9. Shell Programming and Scripting

Grep out ONLY subject from maillog

I have the following entries in maillog. I need to grep out only the subject part from the following entries. Maillog contain following entries. 2013-11-14 03:30:02 1Vgnd4-001qwZ-36 <= user@domain.com U=user P=local S=9797 id=cd3732bbd0fbda5cb16384bb7d5b465d@localhost.localdomain T="Subject... (3 Replies)
Discussion started by: anil510
3 Replies

10. Shell Programming and Scripting

Filter maillog

Hi, I need to take them all fields SendTo and ip address from a file maillog First I look at all emails from containing the empty field. # zcat /var/log/mail/maillog-20140331.server1.gz | grep "from=<>" | awk '{print $6}' > 1.txt output: Mar 30 23:31:24 servidor1 postfix/smtpd:... (2 Replies)
Discussion started by: Jomeaide
2 Replies
MAILSTATS(8)						      System Manager's Manual						      MAILSTATS(8)

NAME
mailstats - display mail statistics SYNOPSIS
mailstats [-c] [-o] [-p] [-P] [-C cffile] [-f stfile] DESCRIPTION
The mailstats utility displays the current mail statistics. First, the time at which statistics started being kept is displayed, in the format specified by ctime(3). Then, the statistics for each mailer are displayed on a single line, each with the following white space separated fields: M The mailer number. msgsfr Number of messages from the mailer. bytes_from Kbytes from the mailer. msgsto Number of messages to the mailer. bytes_to Kbytes to the mailer. msgsrej Number of messages rejected. msgsdis Number of messages discarded. msgsqur Number of messages quarantined. Mailer The name of the mailer. After this display, a line totaling the values for all of the mailers is displayed (preceded with a ``T''), separated from the previous information by a line containing only equals (``='') characters. Another line preceded with a ``C'' lists the number of TCP connections. The options are as follows: -C Read the specified file instead of the default sendmail configuration file. -c Try to use submit.cf instead of the default sendmail configuration file. -f Read the specified statistics file instead of the statistics file specified in the sendmail configuration file. -P Output information in program-readable mode without clearing statistics. -p Output information in program-readable mode and clear statistics. -o Don't display the name of the mailer in the output. The mailstats utility exits 0 on success, and >0 if an error occurs. FILES
/etc/mail/sendmail.cf The default sendmail configuration file. /etc/mail/statistics The default sendmail statistics file. SEE ALSO
mailq(1), sendmail(8) $Date: 2002/06/27 22:47:29 $ MAILSTATS(8)
All times are GMT -4. The time now is 06:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy