05-22-2006
/var/mail is compiled into the sendmail binary. I do not believe it can be overridden from sendmail.cf. I've used symlinks before for both /var/mail and /var/sadm and they work fine. If you have a free slice of sufficient size, you could also just create and mount a /var/mail file system.
Another option would be to download the sendmail source (or an equivalent) and compile that to suit your needs.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello guys,
I'm in desperate need. I need to write a script that behaves like a "mail" shell program.
I've a base of the program -menu and so on, but what I cannot do is how to read messages from /var/mail/user. I would like to separate them as "mail" program does, but I;m just a newbie and... (21 Replies)
Discussion started by: petoSVK
21 Replies
2. UNIX for Dummies Questions & Answers
The mail file in the directory var/spool/mail is very large. Can I zero this (>) without losing any unopened mails there may be? There are about 10 mail accounts. Using RedHat Linux.
Thanks in advance. (0 Replies)
Discussion started by: dennisheazle
0 Replies
3. Solaris
Dear All,
Now I use solaris 10 and I try to forward mail from /var/mail/username to their external mail so what should I do?
thank u in advance (2 Replies)
Discussion started by: unitipon
2 Replies
4. UNIX for Dummies Questions & Answers
How can I read mail sent to /var/spool/mail?
I do not have pine installed so forget about that...is there some generic utility I can use? (3 Replies)
Discussion started by: mojoman
3 Replies
5. BSD
I am currently running DesktopBSD as a live-CD and need to have a large /var partition because it is currently too small. I have a USB stick which is BSD formatted, and would like to have the /var partition moved over to it. How can this be done? Could I for instance use a symlink? (1 Reply)
Discussion started by: figaro
1 Replies
6. UNIX for Dummies Questions & Answers
Hi,
First Question: In our company our users have their mailboxes in /var/spool/mail
When I look at the users file it seems as if every email sent/received is in that user file! Is this because IMAP is being used or is that just how sendmail works?
Second Question: How is that when I create... (3 Replies)
Discussion started by: mojoman
3 Replies
7. UNIX for Dummies Questions & Answers
Hi,
How can i get my mail on either /var/spool/mail or /var/mail?
I use mail and sendmail command to send mail. But everytime I send mail it comes to my outlook inbox and when I check with mail command I get the message "No mail for siba". (Note siba is my user Id.) (2 Replies)
Discussion started by: siba.s.nayak
2 Replies
8. UNIX for Dummies Questions & Answers
Hi all...
We have a box that receives a lot of incoming emails. I have a .procmailrc file that in turn invokes a python script, which process each of these incoming email. All is nice and good.
However, before the .procmailrc and python script were in place, we still were receiving emails and... (0 Replies)
Discussion started by: khader69
0 Replies
9. Shell Programming and Scripting
Hi
When an entry will be made to the file /var/mail/<user-id> .
I have 100 scripts under a specific user id(dgircc) in cron .SO inrder to check the whether the script has sucessfully run or not and if not to generate an email
if i mention the code like
#!/bin/ksh -p
2 fsize=`ls -lrt... (0 Replies)
Discussion started by: mskalyani
0 Replies
10. Proxy Server
PHP mail() function doesn't work.
Nor does sendmail:
loaded system configuration file /etc/msmtprc
ignoring user configuration file /home/xi/.msmtprc: No such file or directory
falling back to default account
using account default from /etc/msmtprc
host = xsi
port = 25
proxy host = (not... (1 Reply)
Discussion started by: Xcislav
1 Replies
LEARN ABOUT OPENSOLARIS
conflict
CONFLICT(8) [nmh-1.5] CONFLICT(8)
NAME
conflict - search for alias/password conflicts
SYNOPSIS
/usr/lib/mh/conflict [-search directory] [-mail name] [-version] [-help] [aliasfiles ...]
DESCRIPTION
Conflict is a program that checks to see if the interface between nmh and the transport system is in good shape
Conflict also checks for maildrops in /var/mail which do not belong to a valid user. It assumes that no user name will start with `.', and
thus ignores files in /var/mail which begin with `.'. It also checks for entries in the group(5) file which do not belong to a valid user,
and for users who do not have a valid group number. In addition duplicate users and groups are noted.
If the -mail name switch is used, then the results will be sent to the specified name. Otherwise, the results are sent to the standard
output.
The -search directory switch can be used to search directories other than /var/mail and to report anomalies in those directories. The
-search directory switch can appear more than one time in an invocation to conflict.
Conflict should be run under cron(8), or whenever system accounting takes place.
FILES
/etc/nmh/mts.conf nmh mts configuration file
/etc/passwd List of users
/etc/group List of groups
/usr/bin/mh/mhmail Program to send mail
/var/mail/ Directory of mail drop
PROFILE COMPONENTS
None
SEE ALSO
mh-alias(5)
DEFAULTS
`aliasfiles' defaults to /etc/nmh/MailAliases
CONTEXT
None
MH.6.8 11 June 2012 CONFLICT(8)