maillog extract


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users maillog extract
# 1  
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..
# 2  
Old 10-05-2006
Try looking at your sendmail configuration - on Sept 27, the mail is being sent to a relay. On the 30th, it doesn't show that at all.

/usr/lib/sendmail -d0.1 -bt < /dev/null may give you a clue. Also check if any of your config files were changed between the 27th and 30th (config files may be in /etc/mail/).
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
Login or Register to Ask a Question