1844106 Members
2914 Online
110227 Solutions
New Discussion

spam

 
Lana Cameli
Advisor

spam

Hi there;
I have a user that has complained of receving spam in her mail folder. I have checked others and it appears that she's the only one and I have just removed over 4500+ emails from her account (not a typo)

Is there anyway I could set up HP-UX so that her emails get blocked or bounced back to sender, or perhaps redirected to another email account?
4 REPLIES 4
Geoff Wild
Honored Contributor

Re: spam

Well - if you don't need to receive email from the outside, why not disable the sendmail daemon?

/etc/rc.config.d/mailservs

export SENDMAIL_SERVER=0
export SENDMAIL_SERVER_NAME=
export SENDMAIL_RECVONLY=0
export SENDMAIL_SENDONLY=0

/sbin/init.d/sendmail stop

You will still be able to receive on the local system as well as send email out.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Steven E. Protter
Exalted Contributor

Re: spam

Shalom Lana,

If the user doesn't need mail on that system, stop sendmail from listening as shown by Geoff.

If for some reason the system does need to accept mail, change the users username.

Close the old account, all the spam will bounce "User Unknown"

They spammers love that, trust me.

I use throwaway mail accounts for about a year at a time. When the spam piles up, I change them out.

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
Lana Cameli
Advisor

Re: spam

Is there a way to disable sendmail to just one user?
Geoff Wild
Honored Contributor

Re: spam

To disable for one id requires setting up an access db file.

in a file called /etc/mail/access

userid@yourdmian.com ERROR:"553 reject...wrong email address..."

Thats a TAB between the email addy and the ERROR

Then create the hash:

makemap hash /etc/mail/access
Then stop/start sendmail:

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

I can't remember off of the top of my head if by default access.db is compiled with HP-UX sendmail...

If not, you will have to download the source and compile it yourself...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.