Learn how to a build a cloud-first strategyRegister Now


Sendmail - FreeBSD Specifying Where Incoming Mail Is Stored

Posted on 2009-12-24
Medium Priority
Last Modified: 2013-12-17

I'm using FreeBSD (7.x) and Sendmail as the MTA. (ProcMail is also used to parse SPAM)

I recently noticed/discovered that MY mail is stored inside my $HOME folder, filename mbox.

Then I noticed others mail is stored (and left) in the folder /var/mail/$USERID.

Where is it that I specify where the incoming mail is stored? and/or how could mine be different?

This might be a little vague, I hope I explained my situation well enough - and appreciate your help. A big motivator here is that my '/var' partition is getting VERY full whereas my '/usr' folder has plenty of space.

I've tried searching - I find a slew of "maybe" solutions, but it seems that nothing this specific.

Question by:BillFinkNC
  • 2

Accepted Solution

jghelfman40 earned 1500 total points
ID: 26134409
I believe the storage would be something that is tuned on the server side of the mta, however if you have a mua of some sort (or mua utility, such as procmail), you have the ability to control where your mail is "saved."

I know with mutt and procmail, you can do this, however I don't know about all mail user-agents or utilities. When you read mail with either of these two facilities, they would possibly attempt to write to an mbox file in your home directory.

Author Comment

ID: 26134974
I decided to make a SYMLINK from /var/mail -> /usr/mail ... I'm safe for another 100GBs.

Thanks for your input.

Author Closing Comment

ID: 31669833
Thanks for your input. (See below my solution.)

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One-stop solution for Exchange Administrators to address all MS Exchange Server issues, which is known by the name of Stellar Exchange Toolkit.
Steps to fix “Unable to mount database. (hr=0x80004005, ec=1108)”.
To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses
Course of the Month21 days, 3 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question