Sendmail - FreeBSD Specifying Where Incoming Mail Is Stored

Posted on 2009-12-24
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
    LVL 6

    Accepted Solution

    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

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

    Thanks for your input.

    Author Closing Comment

    Thanks for your input. (See below my solution.)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
    Email signatures have numerous marketing benefits. Here are 8 top reasons to turn your email signature into a marketing channel.
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

    737 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

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now