- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sendmail / temp files
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 08:51 AM
02-20-2003 08:51 AM
fred.23123
fred.1123
They look like copies of the user's /var/mail file.
Can someone explain what these files are, and how they get to be left behind?
Also if there is information about the files in the O'Reily Sendmail book, give me a chapter or page number....
Thanks
Fred
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 10:14 AM
02-20-2003 10:14 AM
Re: sendmail / temp files
I can't keep home at less than 100%
What is causing this?
Fred
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 10:21 AM
02-20-2003 10:21 AM
Re: sendmail / temp files
As far as I know there is not anything in sendmail its sef that would put the files in the home dir of the user. There is an option in the sendmail.cf that specifies where the files go but if the orginal files are still in /var/mail and they are only copies in /home/fred then I would think that it is some kind of script that is putting them there.
check cron
crontab -l
also do a
ps -ef|grep cp
ps-ef|grep fred
do an ll on the files and see if the time they were created has anything to do with the extention. It could be a date/time stamp.
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 10:26 AM
02-20-2003 10:26 AM
Re: sendmail / temp files
Are you running a "plug-in" like procmail? If so, ensure that /*#define MAILSPOOLHOME "/.mail" /* is not uncommented in the authenticate.c file. If it was compiled with this option enabled, it is spooling mail to /home/username as well as /var/mail. This is called home directory mail spooling.
Regards.
RZ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 10:27 AM
02-20-2003 10:27 AM
Re: sendmail / temp files
Run
ps -ef | grep mail
See if someone or cron is running mail -f & specifying a non-default mail file.
Also users can define an alternate $HOME/mbox for saved mail. Users might be auto-reading their mail & saving it to this "mbox" in their home dir.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 10:37 AM
02-20-2003 10:37 AM
Re: sendmail / temp files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 10:44 AM
02-20-2003 10:44 AM
Re: sendmail / temp files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 10:50 AM
02-20-2003 10:50 AM
Re: sendmail / temp files
root 22532 22517 0 13:48:11 ? 0:00 sendmail: NAA22532 host-63-149-24-82.norco-usa.com [63.149.24.8
Never seen anything like that before.
Fred
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 10:56 AM
02-20-2003 10:56 AM
Re: sendmail / temp files
I really think this is a sendmail breach of some sort; if you've seen my other sendmail threads in this area of the forum you'll know I've been having problems with huge amounts of spam, etc. the last few weeks. I just yesterday started locking down some sendmail settings (denying expn and vrfy for example).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 10:58 AM
02-20-2003 10:58 AM
Re: sendmail / temp files
There is no sendmail process running continuously except for the one sendmail service that I start at boot time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 11:04 AM
02-20-2003 11:04 AM
Re: sendmail / temp files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 11:08 AM
02-20-2003 11:08 AM
Re: sendmail / temp files
What do you see in /var/adm/syslog/mail.log if you grep for the ip
63.149.24.82 or usa.com?
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 11:12 AM
02-20-2003 11:12 AM
Re: sendmail / temp files
If a user got a dollar prompt, and typed elm, a .mail directory would be created and what looks like a subset of the mail file will be downloaded.
Do your users have dollar prompt access or the ability to break out of some process?
If they can telnet, they can create the conditions you report. If there is no need for telnet access, why do they have it?
You can replace it with secure shell for authorized users.
Off the top of my head, I have the following enhancement suggestions.
Secure shell(link here, cookbook attached).
https://payment.ecommerce.hp.com/cgi-bin/swdepot_parser.cgi/cgi/try.pl?productNumber=T1471AA&date=
A security hardening tool, Bastille that will do some of what you are trying to do.
https://payment.ecommerce.hp.com/cgi-bin/swdepot_parser.cgi/cgi/try.pl?productNumber=B6849AA&date=
Security Patch Check
https://payment.ecommerce.hp.com/cgi-bin/swdepot_parser.cgi/cgi/try.pl?productNumber=B6834AA&date=
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 11:19 AM
02-20-2003 11:19 AM
Re: sendmail / temp files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 12:09 PM
02-20-2003 12:09 PM
Re: sendmail / temp files
I don't really have any evidence but I'm guessing that something filled up /var, which forced sendmail to deliver mail to /home/user instead of /var/mail/user. Or something like that.
Everything went away before I could figure it out unfortunately.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 01:51 PM
02-20-2003 01:51 PM
Re: sendmail / temp files
It was a disk space issue after all!
Someone emailed out a word document containing graphics and objects. Size was 44 MB.
They Cc'd it to several people -locally- as well.
The receiving server rejected it due to size and -bounced-it-back- with the attachment.
User -tried-again- to send it due to rejection, and Cc'd it -again-, it -bounced-back-again- .......
Well when all was said and done, there where many many copies of this file on our server, /var/mail was full, then /home got full (I was right, sendmail was delivering to temp files in user's homes after /var got full).
Just shoot me now.
fred
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 02:23 PM
02-20-2003 02:23 PM
Re: sendmail / temp files
NO, in this case, it's shoot the USER!
I do believe it's time for a little end-user *education* - if you know what I mean?
Explain to this user that the next time they bring the server to it's knees, you'll be glad to immediately let ALL other users know what happened & WHO did it.
A little well applied peer pressure never hurts ;~)
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2003 09:43 AM
02-21-2003 09:43 AM
Re: sendmail / temp files
If you don't set this for the server handling inbound mail from outside, you're a sitting duck for a DOS attack from outside regardless of who you shoot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2003 07:49 AM
02-24-2003 07:49 AM
Re: sendmail / temp files
I'm assuming that means all remote systems, even though they're on my network - for example a PC that pops in to this HP-UX sendmail server. If a PC user sends an email to another local user it will be sent to this server, and I assume would truncate an over-sized email.
Does that sound right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2003 08:03 AM
02-24-2003 08:03 AM
SolutionIt won't truncate, it will reject the message.
Local users to other local users - it all depends if this server acts as a hub for your company. If both users are on the same server, chances are the message won't touch your "mail server", but will be delivered locally.
rgds, Robin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2003 08:19 AM
02-24-2003 08:19 AM
Re: sendmail / temp files
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2003 08:26 AM
02-24-2003 08:26 AM
Re: sendmail / temp files
I'll test it anyway to see which it does.