AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only

sendmail and redirecting mail

  • 1.  sendmail and redirecting mail

    Posted Thu November 08, 2012 02:08 PM

    Originally posted by: SystemAdmin


    I am trying to redirect all email sent from my server to xxx.yyy.zzz to /dev/null but am not having any luck.

    In /etc/sendmail.cf tried:
    R$* xxx.yyy.zzz $*<tab>$#local $: nobody

    nobody is in /etc/mail/aliases as going to file /tmp/testfile

    I can mail -s "test" nobody < /etc/motd and get the email stored in /tmp/testfile. So I know the alias part is working. I just can't figure out the correct rule to rewrite to it.

    sendmail -C /etc/mail/sendmail.cf -bt
    blah@xxx.yyy.zzz returns No address!

    To clarify a little better....I want ALL mail directed at hostname xxx.yyy.zzz to go to this local file...

    Ideas?