Solved

Change Mail Spool Directory

Posted on 1998-03-30
8
355 Views
Last Modified: 2013-12-16
By default, my SGI writes incoming mail to /usr/mail. Suppose the disk space here is limited and I want to write mail elsewhere e.g. /sparedisk. Is there any way I can get sendmail to do this?

I have looked in the Costales book 'Sendmail', but I can't find a reference.

Can anyone think of a hack? e.g. links

Thanks in advance
0
Comment
Question by:cpranderia
8 Comments
 

Expert Comment

by:vkg063097
ID: 1812960
1. look at this in sendmail.cf

# queue directory
O QueueDirectory=/var/spool/mqueue

2. make a link to /sparedisk from /usr/mail
0
 

Author Comment

by:cpranderia
ID: 1812961
Hi,

I'm afraid I don't think you've answered my question. You have shown me how to specify the queue directory, not the spool directory. Yes, it is easy to re-define where sendmail puts its outbound mail using OQ in sendmail.cf. However, I wanted to know how to change the location of the spool directory where mail being delivered _to_ my machine is being placed.
0
 
LVL 10

Accepted Solution

by:
rbr earned 50 total points
ID: 1812962
Copy all your folders from /usr/mail to /sparedisk
remove all contents of /usr/mail
ln -S /sparedisk /usr/mail
0
 

Author Comment

by:cpranderia
ID: 1812963
Thanks for the answer. That's the 'hack' way of doing it I suppose, But there is no way to configure this in sendmail?

By the way, shouldn't it be 'ln -s' (small s) and shouldn't the target be /sparedisk and the file being copied /usr/mail. i.e.

'ln -s /usr/mail /sparedisk'
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 84

Expert Comment

by:ozo
ID: 1812964
Isn't that the job of the delivery agent?
What do you have in
Mlocal

0
 

Author Comment

by:cpranderia
ID: 1812965
Yes, I suppose it is the job of the delivery agent. Does that mean it is the configuration of that I must change?

Mlocal points to a /usr/lib/mail.local i.e.

Mlocal P=/usr/lib/mail.local, F=flsSDFMmnp, s=10, r=20, A=mail.local, -d $u
0
 

Expert Comment

by:vkg063097
ID: 1812966
Yup,
mails in /usr/mail are being appended by delivery agent.
normally /bin/mail. It may be something else in your
machine. /usr/mail path may be hardcoded in these program.
You need to recompile it with different path depending upon
the delivery agent you are using.
/bin/mail as "f" option that defines the mailbox path.
Pls note that if you do this you may need to change this
path in your frontend mail readers also.
0
 

Author Comment

by:cpranderia
ID: 1812967
In that case, it is probably easier to go the 'links' way. What however are the implocations for other linked directories e.g. /usr/mail is also linked to /var/mail?


0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
removing nim resources 5 48
AIX Server 10 78
Host issue and need to move VM's 2 240
How to clone solaris 10 machine 33 111
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

914 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

20 Experts available now in Live!

Get 1:1 Help Now