- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: 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
Discussions
Discussions
Forums
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
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
тАО08-10-2005 01:08 AM
тАО08-10-2005 01:08 AM
/home/fred/fred.3254
The file normally is present only for a few seconds, if that.
On occasion, my /home file directory slams up to 100%, and I find that most users have many of these files left behind, causing the file system to fill. Most of the temp files left behind are essentially copies of the entire mail file for the user.
I've discovered over time, it is caused by a single user's email - someone taking delivery of a malformed or very large email. Recently I had this happen whne a user was taking delivery of a 2mb file every 5 or 10 minutes.
Not sure of the specifics of that, but it seems that sendmail is trying over and over to deliver something, each time creating a new temp file, then when the disk is too full, all users that take deliver of any email get the same problem.
Does anyone know any more about this specific problem? Anything I can do (I already have a filesize limit).
Fred
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2005 01:30 AM
тАО08-10-2005 01:30 AM
Re: sendmail / temp files
You can redirect a certain users home elsewhere as well and this will solve the short term problem.
Messing around with where the mail system stores files will make it hard for others to udnerstand your system and let you take vacations and such.
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
тАО09-28-2005 08:51 AM
тАО09-28-2005 08:51 AM
Re: sendmail / temp files
Whenever the problem occurs there is always one inbox file that is over 2GB. Move it temporarily to another file system and the problem goes away.
So my original assessment is a little off.
It's not really an indivual email that causes this. Although, a very large incoming email is what usually puts the user's inbox over the top.
It then goes into what I'll call a 'crisis' mode, repeatedly copying the user's inbox to his home directory as I've already described.
Then it stars doing the same to other user's inboxes even if they're not large.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2005 02:17 AM
тАО09-30-2005 02:17 AM
Re: sendmail / temp files
This script will trim the mailbox leaving the messages in the current month .
thx,
bl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2005 02:28 AM
тАО09-30-2005 02:28 AM
Re: sendmail / temp files
There is no /home filesystem, just a /home folder.
In that folder are soft links to NAS/SAN storage that has much more disk available than any local machine.
Assuming there is storage available on your network, this can allow large temporary files to be transmitted. As to why the mail system needs really huge files, I don't know, most systems do have attachment limits and anti-spam message queue limits.
Large files as you originally report should not come from the mail system.
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
тАО10-03-2005 03:56 AM
тАО10-03-2005 03:56 AM
SolutionThe temp file should be a local delivery agent thing, not a sendmail thing.
Your local delivery agent is probably rmail (search for rmail in sendmail.cf).
[From man rmail] see if you can figure out what TMPDIR is when rmail attempts to deliver the mail locally.
==>When set, the TMPDIR environment variable ==>specifies a directory to be
==>used for temporary files, overriding the ==>default directory /tmp.
By default it's supposed to be /tmp.
/tmp/ma* Temporary file
<\SNIP>
If the environment variable is getting set to something else (e.g. a user's home directory), you might see unintended side effects.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2005 04:09 AM
тАО10-03-2005 04:09 AM
Re: sendmail / temp files
Man on rmail does mention TMPDIR but it's not defined in our environments.
Perhaps if undefined it defaults to /home/user, I'll have to read some more.
The idea that this is a local delivery thing instead of a sendmail issue, is something I hadn't considered. Thanks for that.
Fred
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2005 04:13 AM
тАО10-03-2005 04:13 AM
Re: sendmail / temp files
How is mail delivered? does it go to a central server (like exchange)? Or do you just deliver locally?
Look at the DS macro in your /etc/mail/sendmail.cf file...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2005 05:49 AM
тАО10-03-2005 05:49 AM
Re: sendmail / temp files
We do have an anti-spam gateway (SpamLion) between the unix box and the internet. So, DS is defined as:
DSspamlion
However, this issue pre-dates the installation of the SpamLion gateway.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2005 05:59 AM
тАО10-03-2005 05:59 AM
Re: sendmail / temp files
All my servers have Mlocal as:
Mlocal, P=/usr/bin/rmail, F=lsDFMAw5:/|@qm9, S=EnvFromL/HdrFromL, R=EnvToL/HdrToL,
And I never see tmp files in the user home dirs...(that would be terrible if your root account is at the default home dir of / as you could fill up your root file system!).
Looking at the man rmail, I see nothing to indicate temp files in $HOME
Rgds...Geoff