Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I have used grep to produce a file from the mail log, but I would like to know if it is possible to just show the contents within < >, ie, the email address only and just print that to a file.
Jun 27 00:50:08 245ML postfix/error: EF1A2189E88: to=<firstname.lastname@example.org>, relay=none, delay=18141,
delays=0.5/18140/0/0.01, dsn=4.4.3, status=deferred (delivery temporarily suspended: Host or domain name not found. Name
service error for name=email.com type=MX: Host not found, try again)
Been trying but not been able to also add another two search strings.
Most of the errors we get are said: 550 or said: said: 550-5.1.1, so how can I add these two? So it would:
- Print the email address
- Print either of the two errors for the relevant email
Jun 28 13:51:19 245ML postfix/smtp: 230D77011DE: to=<email@example.com>, relay=gmail-smtp-in.l.google.com[18.104.22.168]:25, delay=27310, delays=24856/2447/3.4/3.1, dsn=5.1.1, status=bounced (host gmail-smtp-in.l.google.com[22.214.171.124] said: 550-5.1.1 The email account that you tried to reach does not exist. Please try 550-5.1.1 double-checking the recipient's email address for typos or 550-5.1.1 unnecessary spaces. Learn more at 550 5.1.1 http://support.google.com/mail/bin/a...py?answer=6596 r42si4452088eep.122 - gsmtp (in reply to RCPT TO command))
Jun 28 13:52:31 245ML postfix/smtp: E0A3C16A7F2: to=<firstname.lastname@example.org>, relay=mx2.hotmail.com[126.96.36.199]:25, delay=1361, delays=1179/151/31/0.43, dsn=5.0.0, status=bounced (host mx2.hotmail.com[188.8.131.52] said: 550 Requested action not taken: mailbox unavailable (in reply to RCPT TO command))
Jun 28 13:57:09 245ML postfix/smtp: 62A4517AA13: to=<email@example.com>, relay=mail.xxxxx.xx[184.108.40.206]:25, delay=3.2, delays=0.01/0/3.2/0.04, dsn=5.1.1, status=bounced (host mail.xxxxx.xx[220.127.116.11] said: 550 5.1.1 <firstname.lastname@example.org> is not a valid mailbox (in reply to RCPT TO command))