Operating System - HP-UX
1833750 Members
2481 Online
110063 Solutions
New Discussion

Disable Mail Delivery Subsystem emails with sendmail.

 
someone_4
Honored Contributor

Disable Mail Delivery Subsystem emails with sendmail.

Hello,

I was wondering if there was a way to disable Mail Delivery Subsystem emails going to root or postmaster? I am checking postmaster email and getting alot of junk I dont want from Mail Delivery Subsystem.

In /etc/mail/aliases
I have
MAILER-DAEMON : /dev/null

And that is not doing it for me.

Anyone have any ideas?

thanks
richard
6 REPLIES 6
Jeff Schussele
Honored Contributor

Re: Disable Mail Delivery Subsystem emails with sendmail.

Hi richard,

In that same aliases file make sure that the alias for root doesn't point to you. And verify that postmaster goes to root at the same time - problem solved.
Then don't forget to run newaliases

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Steven E. Protter
Exalted Contributor

Re: Disable Mail Delivery Subsystem emails with sendmail.

root has a legitimate reason to get mail, but for security reasons its best to forward it.

put an entry in aliases on linux its /etc on HP-UX its /etc/mail

root yourname@yourdomain.net


save it

newaliases

/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jeff Schussele
Honored Contributor

Re: Disable Mail Delivery Subsystem emails with sendmail.

On reflection just make sure the postmaster alias doesn't point to root.
You probably should receive non-sendmail related root mail.
Just setup an account for postmaster on the system(s) & let the postmaster mail go there & check it from time to time.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
someone_4
Honored Contributor

Re: Disable Mail Delivery Subsystem emails with sendmail.

I tried that and i still get Mail Delivery Subsystem. I check postmaster email but dont want Mail Delivery Subsystem.


Richard
Uday_S_Ankolekar
Honored Contributor

Re: Disable Mail Delivery Subsystem emails with sendmail.

In roots home directory create ".forward" file
with a valid e-mail id in it.
All the mails will deliver it to that account related to root.

-USA..
Good Luck..
someone_4
Honored Contributor

Re: Disable Mail Delivery Subsystem emails with sendmail.

hmmm i tried that but the header says it is not going to root. It is comming from root to postmaster.


From: Mail Delivery Subsystem
Message-Id:
To: postmaster


richard